Get Python Packages
Connect to the repository in Space:
Add a repository link to the pip config file. For example:
[global] extra-index-url = https://pypi.pkg.jetbrains.space/mycompany/p/my-python-project/mypypi/simple
Use the keyring tool to save the generated token. For example, if your Space username is
Anna
:keyring set https://pypi.pkg.jetbrains.space/mycompany/p/my-python-project/mypypi/simple Anna
When asked for a password, provide the generated token.
An alternative to the
keyring
tool would be storing the token in the pip config file. Note that this way is less secure. For example, if your username isAnna
and the token isabc1234
:[global] extra-index-url = Anna:abc1234@https://pypi.pkg.jetbrains.space/mycompany/p/my-python-project/mypypi/simple
Install a Python package with one of the following ways:
Add a dependency to the requirements.txt file.
Use the
pip
command-line tool:mypackage
:pip install package-name
Thanks for your feedback!