Using a package

Using a package uploaded to pryv is pretty simple. You will need pip to be installed.

To install a package uploaded to pryv, use the following:

pip install myproject --index-url http://username:password@127.0.0.1:5555/simple

Note

If your pryv server is accessed by HTTPS, you might consider using:

pip install myproject \
--index-url https://username:password@pryv.host.com/simple \
--trusted-host pryv.host.com

Alternatively, if you don’t want to write the URL to your pryv server each time you install a package, you can use a pip.conf file located under ~/.pip (i.e. ~/.pip/pip.conf). Set its content to:

[global]
extra-index-url = https://username:password@pryv.host.com/simple
trusted-host = pryv.host.com

Now, you are able to install packages as usual, directly from your pryv repository:

pip install myproject