Skip to main content
https://raw.githubusercontent.com/Nekmo/pypi-manage/master/logo.png

Latest Travis CI build status Latest PyPI version Python versions Code Climate Test coverage Requirements Status

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.

Metadata

Release files for pypi-manage 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypi-manage 0.1.0
File Size Uploaded Provenance Actions
pypi-manage-0.1.0.linux-x86_64.tar.gz 18.9 kB Without provenance Details for pypi-manage-0.1.0.linux-x86_64.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pypi-manage 0.1.0
File Interpreter ABI Platform Actions
pypi_manage-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for pypi_manage-0.1.0-py2.py3-none-any.whl

Total release size: 31.4 kB

Release files / pypi-manage-0.1.0.linux-x86_64.tar.gz

Download URL pypi-manage-0.1.0.linux-x86_64.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
63627b468152bcc2159560665966904fed0a0926b6c0f26802e4e0c8e5482ead
BLAKE2b-256 checksum
How to use checksums
81544d2edae8384c0b5b7691001cb8de8d485d46b76a21f3840736ea0881fcfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.8

Release files / pypi_manage-0.1.0-py2.py3-none-any.whl

Download URL pypi_manage-0.1.0-py2.py3-none-any.whl
Size 12.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
94edb4b5481334a7b2684ea4f87feb1c101e7d86d6eeafdf198f3eb62912490a
BLAKE2b-256 checksum
How to use checksums
7c17a9eb2907b19498996af7edc14e8e89527625cfdf056ab9f1314959f3101e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.8

Security for pypi-manage 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page