Configuring pip

How to configure the pip package manager

This page explains how to configure the pip package manager to pull packages from the Seal artifact server based on your existing setup.

Make sure you have the access token for the server ready.

Pull directly from the PyPI repository

There are three main ways to configure the PyPI server:

  1. If you're using the command line, replace the existing URL with (where SEAL_TOKEN stands for your token):

https://PROJECT_ID:SEAL_TOKEN@pypi.sealsecurity.io/simple
  1. If you're using a configuration file (usually ~/.pip/pip.conf), replace the existing index-url key value with (where SEAL_TOKEN stands for your token and PROJECT_ID should be the name of your project):

index-url = https://PROJECT_ID:SEAL_TOKEN@pypi.sealsecurity.io/simple
  1. If you're using the requirements.txt, replace the existing --index-url line with (where SEAL_TOKEN stands for your token and PROJECT_ID should be the name of your project):

--index-url https://PROJECT_ID:SEAL_TOKEN@pypi.sealsecurity.io/simple

Pull from JFrog's Artifactory

  1. Go to JFrog's Artifactory configuration and create a new remote PyPI repository.

    1. In the Basic configuration, choose whatever Repository Key you like.

    2. In the URL field set https://pypi.sealsecurity.io/.

    3. In the User Name field use jfrog.

    4. In the Password / Access Token field paste the Production token you created earlier.

    5. In the Registry URL field (under PyPI Settings) set https://pypi.sealsecurity.io/.

  2. Click the Test button. This will test whether the connection and authentication to the Seal artifact server is configured properly.

  3. Save the new repository, and set it as the top priority remote repository in the virtual repository you're using.

Last updated