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
| Value | Description |
|---|---|
| pypi-AgEIcHlwaS5vcmcExampleTokenNotReal invalid | Too short |
Sources
- doc: https://docs.pypi.org/api/secrets/
- other: https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/pypi_token - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/secrets/pypi_token.yamlon GitHub