Create an account on pypi to publish python package. [https://pypi.org]
Now, open your code editor terminal:-
Run pip install setuptools wheel twine
What it does? Well! it prepare your environment for packaging your own python package.
Analogy:-
Think of as you have Cake Parlour where you bake a cake, pack it up and sell to customer.
- Seuptools helps you prepare the cake.
- Wheel boxes it up.
- twine ship it safely to the customer.
Now create project structure
package/ ├── package/ │ ├── __init__.py │ └── main.py ├── setup.py └── README.md
main.py def hello(): print("Hello from datatoinfinity")
__init__.py from .main import hello
Top comments (0)