{
  "id": "pypi_token",
  "kind": "datatype",
  "status": "draft",
  "name": "PyPI API token",
  "doc": "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": "access_token",
  "is_pii": false,
  "categories": [
    "secrets"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^pypi-[A-Za-z0-9_-]{85,}$",
  "examples": [
    {
      "value": "pypi-AgEIcHlwaS5vcmcExampleTokenNotReal",
      "description": "Too short",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://docs.pypi.org/api/secrets/"
    },
    {
      "type": "other",
      "url": "https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml"
    }
  ],
  "detected_by": {
    "tools": [
      "detectsecrets",
      "gitleaks",
      "trufflehog"
    ]
  },
  "quality": {
    "score": 70,
    "missing": [
      "examples",
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/secrets/pypi_token.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/secrets/pypi_token.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/secrets/pypi_token.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/pypi_token",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/pypi_token.json"
  }
}