Modern Python Projects Transcripts
Chapter: Let's build a package
Lecture: Private PyPI

Login or purchase this course to watch this video and the rest of the course contents.
0:00 And one last little tip from this chapter. In case you're wondering, what if I have some private code that I can't share
0:08 publicly, but I still want to make a Python package so I can use it in my other projects? Well,
0:14 there is a tool called pypi Server, that you can use to create your own private pypi server. You can go to the GitHub page,
0:23 and when you scroll down, you will see that what it does. It basically starts a Web server where people can publish packages and other pip can download
0:33 packages using pip. It's a perfect tool, for example, when you work in a company that can't open source their code,
0:40 but it still wants to share it with other teams. So you can set up your own private pypi server and then use it in
0:48 your code. Once you have it up and running and you want to install packages from there, you just have to add this extra index URL that we
0:56 used two lessons ago. It's also possible to put some authentication like the user name
1:02 and password, in case you want to protect this private pypi server from unauthenticated users.


Talk Python's Mastodon Michael Kennedy's Mastodon