Skip to content

Instantly share code, notes, and snippets.

@fcurella
fcurella / Readme.md
Last active December 14, 2017 02:01
pip downstream private packages

Using Private Packages in Python

With companies moving to microservices, it's becoming common to have a system scattered across multiple repositories. It's frequent to abstract common patterns and code into private repositories that are then included in each service.

But using packages from private repos with Python can be tricky. This guide will guide you through the necessary steps to correctly use private package with pip or pipenv. We have also built a little app that will generate the right incantations for you to copy and paste.

Figuring out the URL

First you need to choose which format you want to use: tarball (ie: .zip) or vcs (most likely git). I prefer just downloading the tarball because it doesn't require any additional vcs software. But if use pipenv, you'll have to use vcs (see below).

Keybase proof

I hereby claim:

  • I am fcurella on github.
  • I am fcurella (https://keybase.io/fcurella) on keybase.
  • I have a public key ASDgkzAb5h2laxl5MptKT1k5o8b1uUhoBwYyEH6GJEaxHQo

To claim this, I am signing this object: