How/where to publish Python package

后端 未结 2 695
星月不相逢
星月不相逢 2021-01-20 05:44

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 aft

2条回答
  •  花落未央
    2021-01-20 06:03

    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

提交回复
热议问题