Modern Python Projects Transcripts
Chapter: Let's build a package
Lecture: Private PyPI
0:00 And one last little tip from this chapter.
0:03 In case you're wondering, what if I have some private code that I can't share
0:07 publicly, but I still want to make a python package so I can use it
0:11 in my other projects? Well,
0:13 there is a tool called pypi Server, that you can use to create your own
0:18 private pypi server. You can go to the GitHub page,
0:22 and when you scroll down, you will see that what it does.
0:26 It basically starts a Web server where people can publish packages and other pip can download
0:32 packages using pip. It's a perfect tool,
0:35 for example, when you work in a company that can't open source their code,
0:39 but it still wants to share it with other teams.
0:43 So you can set up your own private pypi server and then use it in
0:47 your code. Once you have it up and running and you want to install packages
0:51 from there, you just have to add this extra index URL that we
0:55 used two lessons ago. It's also possible to put some authentication like the user name
1:01 and password, in case you want to protect this private pypi server from unauthenticated users.