Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How/where to publish Python package

Tags:

python

package

If one creates a useful Python package, how/where does one publish/advertise it for other people to use?

I've put it on hithub, but even Google does not find it after a few weeks. The package is neat & complete, I made it for my personal use and would be a shame not to share it with others :)

like image 973
Jake B. Avatar asked May 28 '26 11:05

Jake B.


2 Answers

Here is the PyPI guide. https://python-packaging-user-guide.readthedocs.org/en/latest/distributing.html

PyPI is the place for putting your Python packages up for others to find. The built-in tool pip references it to install packages for you, and at least one IDE uses pip in the background to give you a GUI for doing this. (PyCharm)

like image 58
Joe Avatar answered May 31 '26 16:05

Joe


So, to make the package available to a pip install, you have to register it in the Python Package Index (PyPI): https://pypi.python.org/pypi

There's also the test environment, where you can upload your packages to test if your setup is ok before going to the real deal: https://testpypi.python.org/pypi

You create an account in one of the servers and will be able to upload your package. But, before that, you will have to build your package using setuptools. Here's the documentation for packaging and distributing: https://packaging.python.org/distributing/

The proccess can be little boring, so I wrote a little tool to make it simpler. Maybe it's of some use to you: https://github.com/hugollm/foster

like image 42
Hugo Mota Avatar answered May 31 '26 15:05

Hugo Mota



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!