1

I have a python package project 'webapi' and I want to set up in a way so that other people can "pip install webapi". If I want to put it on a private server with a specific ip: xx.xx.xx.xx. So other people with the access right don't need to git clone the project and install it locally into their virtual environment. Instead, they can simply do:

pip install webapi

And they can start to use it, just as use other public python libraries. In order to do this, how can I start with this? Is there some tutorial to help with this? I tried a few keywords to search for instruction, but haven't found something useful.

marlon
  • 6,029
  • 8
  • 42
  • 76
  • Quick search shows [this](https://www.linode.com/docs/applications/project-management/how-to-create-a-private-python-package-repository/) but someone else may have a better idea. – Phix Oct 20 '20 at 00:40
  • 1
    You can also use pip to install directly from a github repo https://stackoverflow.com/a/15268990/7284763 – steviestickman Oct 20 '20 at 00:44
  • 1
    @steviestickman or any git repo, doesn't have to be github. OP could set up a git server for people to run pip against. – Jared Smith Oct 20 '20 at 00:49
  • I believe the question asked just needs some rewording. I understand @marlon asking, "How do I setup a A minimal PyPI server for use with pip/easy_install for access only to users on a private network?" – zerocog Aug 22 '22 at 21:57

3 Answers3

1

I guess the question is unclear, if you want to upload your webapi package to PyPi you can read this article. But this will make your package public and i'm not quite sure that's what you want. If what you want is a private pypi server then checkout this package private-pypi. There's a whole description of how to set your server and use it in the documentation.

0

It seems like you need a software repository management application such as Pulp take a look at their plugin section and their documentation is here. I use it as a private python repository for systems that for security reason are isolated from the internet but it can also host your own custom Python packages.

eorochena
  • 176
  • 12
0

Linode provides another way of setting up a private pip repos. Most important is to work with your team to decide which package dependencies that need to be maintained.

guides/how-to-create-a-private-python-package-repository/

zerocog
  • 1,703
  • 21
  • 32