0

I am new on building Python package

I am going through this tutorial to build my first package.

I have a question of how to build the package that can be used by anyone in my organization. From here, I can understand package can be written at user level.

My package has to be written for the organization. Can someone help me?

Thanks in advance!

Karthick Raju
  • 757
  • 8
  • 29
  • https://www.google.com/search?q=private+%22pypi%22+server+%22stackoverflow%22+site:stackoverflow.com&hl=en&pws=0&sa=X&ved=2ahUKEwjNvtbj2ujfAhUkh6YKHTWNAlIQrQIoBDAAegQIChAM&biw=1590&bih=689 – phd Jan 12 '19 at 16:57
  • Possible duplicate of [How to manage private team shared libraries/packages in Python?](https://stackoverflow.com/questions/34665699/how-to-manage-private-team-shared-libraries-packages-in-python) – phd Jan 12 '19 at 16:58

2 Answers2

1

If you don't want people outside of your organization to see and use the package, you can use a private github repository to host the package, instead of uploading it to pypi.org.

Make the setup.py file, and put your package on github (if you haven't done so already).

You can then use pip install git+https://github.com/your-organization/your-repository.git to install the package. (You do need to have pip and git installed)

user8181134
  • 466
  • 2
  • 4
1

You can self hosted python package index use something like pypiserver. Make it private that can be accessed only by your own organization.