Getting started on Gemfury with Python

Install packages with pip

You can configure your Python project to use Gemfury as the primary source of packages. To start, add Gemfury as the main index to the top of your project’s requirements.txt:

--index-url https://pypi.fury.io/USERNAME/
--extra-index-url https://pypi.org/simple/
private-package==0.0.1
...

This configuration will look for named packages in your Gemfury account with fallback to the public index.

Accessing private packages

To authenticate into your private repository, you can use environment variable expansion in the source URL of the configuration above: 1

--index-url https://${FURY_AUTH}:@pypi.fury.io/USERNAME/

And then populate FURY_AUTH environment variable with a deploy token:

$ FURY_AUTH=TOKEN pip install -r ./requirements.txt

  1. Supported by pip 9.0+ ↩︎


Next