Create and Upload a Python Package for Gaussian / Binomial Distributions
Requirements: Python (twine)
Video of instructions: https://youtu.be/4uosDOKn5LI
- Copy all files to a directory (linux, etc.)
- Register and create an account on pypi.org
- Go to root and type "python setup.py sdist". This createst dist folder with tar inside.
- "pip install twine"
- "twine upload --repository-url https://test.pypi.org/legacy/ dist/*"
- "pip install --index-url https://test.pypi.org/simple/ thy-probability"
- "twine upload dist/*"
- From any computer: "pip install thy-probability"
- From python window: "from thy_probability import Gaussian, Binomial"
This python package creates the binomial and gaussian distribution class and methods.
Note* the thy-probability name is already used on pypi. To do this, you have to change the name of thy-probability on the install, setup.py, and directory name. Note** The dash, '-' in the thy-probability becomes a "_" when importing with python
Generaldistribution.py - The base, abstract class Binomialdistribution.py - Class that inherit from the base class Gaussiandistribution.py - Class that inherit from the base class init.py - Necessary for Binomial and Gaussian classes to be imported with package