Pypi Warehoise API manage
Project description
pypi-manage
Manage your Pypi warehouse account from console or using a awesome Python API. For example use the command line to create an upload token for an app:
$ pypi-manage tokens create "Token name" my-project
Use this command with other programs. For example you can use it together with Travis:
$ travis encrypt $(pypi-manage tokens create "Token name" my-project)
Create a token from Python:
from pypi_manage.session import PypiSession, get_pypirc_login
from pypi_manage.manage import PypiClient
from pypi_manage.exceptions import PypiTwoFactorRequired
session = PypiSession(*get_pypirc_login()) # get username/password from pypirc
# Optional: use session.restore_session() instead session.login()
try:
session.login()
except PypiTwoFactorRequired:
session.two_factor(input('Insert TOTP: '))
# Optional: use session.save_session()
manage = PypiClient(session)
token = manage.tokens.create('Token name', 'my-project')
print(f'{token.token_id}: {token.token}')
To install pypi-manage, run this command in your terminal:
$ python -m pip -U install pypi-manage
This is the preferred method to install pypi-manage, as it will always install the most recent stable release.
Current features
List, create or delete tokens. Get help using pypi-manage tokens --help.
List project collaborators. Use pypi-manage collaborators <project name> all.
List project history (events). Use pypi-manage events <project name> all.
List project releases. Use pypi-manage releases <project name> all.
List projects. Use pypi-manage projects.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pypi-manage-0.1.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63627b468152bcc2159560665966904fed0a0926b6c0f26802e4e0c8e5482ead |
|
MD5 | 44d6d4195fc2182b85c55415b6111ddf |
|
BLAKE2b-256 | 81544d2edae8384c0b5b7691001cb8de8d485d46b76a21f3840736ea0881fcfa |
Hashes for pypi_manage-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94edb4b5481334a7b2684ea4f87feb1c101e7d86d6eeafdf198f3eb62912490a |
|
MD5 | 9e5d4115c0dceeec8bad3f2f6618ff25 |
|
BLAKE2b-256 | 7c17a9eb2907b19498996af7edc14e8e89527625cfdf056ab9f1314959f3101e |