How to create your first python module – Part 2

In the part 1 of this tutorial I have shown you how to create a python module and then install it in the python local path. In this tutorial I will show you how to share your python module with the rest of the world so the other programmer can use the module you have created as well.

First of all you will need to register an account with https://pypi.python.org/pypi so you can upload your module and share it with the rest of the world. Go ahead and register with pypi with the same author name you have entered into the setup.py file of the previous module.

Next open up the windows command prompt and then browsed to the folder where you have kept the python module and type in the below command into the command prompt

python setup.py register

Select 1 after you have been presented with below screen

login to pipy
login to pypi

Enter the username and password you have just created on pypi then press enter.

Register PyPI
Register PyPI (Status of 200 means OK)

That is it! Now it is time to upload the python module to PyPI with below command.

upload module
upload module
uploading...
uploading…

Now that python module is up there for the world to use, you can start to create your own module now and share it with the rest of the world after this tutorial. With that this concludes the two part series of how to create your very first python module tutorial, hope you like this one!