From their website:
The Python Package Index (PyPI) is a repository of software for the Python programming language.
PyPI helps you find and install software developed and shared by the Python community. Learn about installing packages.
Package authors use PyPI to distribute their software. Learn how to package your Python code for PyPI.
There are several ways to do this, I am going to show you the simplest way: upload with libtool python library.
From the PyPi website:
libtool is a Python library for creating a Python library, and also manages versions and uploading to PyPi with twine