Datatypes

PyPI API token

ID pypi_token

DatatypeNot PIIidentifierDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

API token of the Python Package Index, used to upload packages. It is a serialized macaroon with the prefix pypi-; PyPI documents that the part after the prefix is at least 85 characters long. Tokens of pypi.org begin with pypi-AgEIcHlwaS5vcmc. Examples are left out because GitHub push protection rejects token-shaped values, even constructed ones.

Parent datatype
Access token access_token
Categories
Secrets and credentials (passwords, keys, tokens)
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
70/100 · missing: examples, mapping (Wikidata, Schema.org, ...), translation
Metacrafter rules
no detection rule yet
Supported by tools
detect-secrets, Gitleaks, TruffleHog

Regular expression

^pypi-[A-Za-z0-9_-]{85,}$

Python re syntax.

Examples

ValueDescription
pypi-AgEIcHlwaS5vcmcExampleTokenNotReal invalidToo short

Sources

Use this record