Skip to main content
All providers

PyPI

Developer

pypi.org

Python package metadata from PyPI: project and release details, requirements, distribution files and their hashes.

Capabilities (5)

GET /v1/data/pypi/distributions1 credit

Returns the PEP 691 Simple API document for a project: the complete ordered versions array, the project-status block (active, quarantined or archived), and every distribution file ever uploaded with its download URL, size, upload-time, hashes, requires-python, yanked flag, PEP 658 core-metadata digests and PEP 740 provenance URL when one exists.

name
GET /v1/data/pypi/project1 credit

Returns the full PyPI record for a project: an info block (summary, author, license, classifiers, requires_dist, requires_python, project_urls, yanked state), current owners and maintainers under ownership.roles, OSV vulnerabilities affecting the latest release, the latest release's files under urls, and the whole release history under the deprecated releases map.

name
GET /v1/data/pypi/provenance1 credit

Returns the PEP 740 provenance object for one uploaded distribution file: the attestation bundles with their Sigstore signatures, signing certificates and Rekor transparency-log entries, each bundled with the Trusted Publisher identity (for example the GitHub repository and workflow) that produced the file.

nameversionfilename
GET /v1/data/pypi/release1 credit

Returns the PyPI record for one pinned version of a project: that version's info block, the vulnerabilities known to affect that specific version, and only the sdist and wheel files published under it, each with URL, size, packagetype, python_version, SHA256/MD5/BLAKE2b digests, core-metadata digests and ISO upload timestamp.

nameversion
GET /v1/data/pypi/stats1 credit

Returns PyPI's own repository-wide storage figures: total_packages_size, the total bytes of all hosted distribution files, and top_packages, the 100 projects consuming the most storage, each with its size in bytes.

No parameters

Response example

The shape of data from pypi/distributions (Distribution index (PEP 691)). A sample, not live data.

Example truncated, full shape in JSON from the API.

JSON
{
  "files": [
    {
      "core-metadata": false,
      "data-dist-info-metadata": false,
      "filename": "requests-0.2.0.tar.gz",
      "hashes": {
        "sha256": "813202ace4d9301a3c00740c700e012fb9f3f8c73ddcfe02ab558a8df6f175fd"
      },
      "provenance": null,
      "requires-python": null,
      "size": 5533,
      "upload-time": "2011-02-14T08:49:42.641660Z",
      "url": "https://files.pythonhosted.org/packages/ba/bb/dfa0141a32d773c47e4dede1a617c59a23b74dd302e449cf85413fc96bc4/requests-0.2.0.tar.gz",
      "yanked": false
    },
    {
      "core-metadata": false,
      "data-dist-info-metadata": false,
      "filename": "requests-0.2.1.tar.gz",
      "hashes": {
        "sha256": "d54eb33499f018fc6bd297613bf866f8d134629c8e02964aab6ef951f460e41e"
      },
      "provenance": null,
      "requires-python": null,
      "size": 12715,
      "upload-time": "2011-02-14T16:38:12.392550Z",
      "url": "https://files.pythonhosted.org/packages/4b/ad/d536b2e572e843fda13e4458c67f937b05ce359722c1e4cdad35ba05b6e3/requests-0.2.1.tar.gz",
      "yanked": false
    },
    {
      "core-metadata": false,
      "data-dist-info-metadata": false,
      "filename": "requests-0.2.2.tar.gz",
      "hashes": {
        "sha256": "b3289694b2ddf6adb4f7e1f470b9771330c76125611222b9c702f0e2e9733cbc"
      },
      "provenance": null,
      "requires-python": null,
      "size": 13049,
      "upload-time": "2011-02-14T18:58:40.410171Z",
      "url": "https://files.pythonhosted.org/packages/82/3c/3b5beca192da920c0c2ba67119d66ba1e4b1e766f40898e5e684d697ca1c/requests-0.2.2.tar.gz",
      "yanked": false
    },
    {
      "core-metadata": false,
      "data-dist-info-metadata": false,
      "filename": "requests-0.2.3.tar.gz",
      "hashes": {
        "sha256": "8e374b75aaae7f85325e9bb126e96cb77a3bfc17e81ee74a0e96916aac1cc2ba"
      },
      "provenance": null,
      "requires-python": null,
      "size": 13255,
      "upload-time": "2011-02-15T15:47:29.058010Z",
      "url": "https://files.pythonhosted.org/packages/6f/7e/5c2d7d9102c6ab847bd1215f96255e894fbfc81c8abf2c1714ae2a504913/requests-0.2.3.tar.gz",
      "yanked": false
    },
    {
      "core-metadata": false,
      "data-dist-info-metadata": false,
      "filename": "requests-0.2.4.tar.gz",
      "hashes": {
        "sha256": "ef1bd1a81022e9bf574ecfe69cbd8597e79371b890d29bd3847dd946102c8eed"
      },
      "provenance": null,
      "requires-python": null,
      "size": 13653,
      "upload-time": "2011-02-19T07:03:14.518479Z",
      "url": "https://files.pythonhosted.org/packages/dc/02/789859c27162bb91ecf6b72ed4ce1af3ed1710255265ad0901c4d4e25666/requests-0.2.4.tar.gz",
      "yanked": false
    },
    {
      "core-metadata": false,
      "data-dist-info-metadata": false,
      "filename": "requests-0.3.0.tar.gz",
      "hashes": {
        "sha256": "57eed745eb2a2e3c7e1dd935ccd49eb2eac51cfcdace4a97fb44de5da70f0035"
      },
      "provenance": null,
      "requires-python": null,
      "size": 15021,
      "upload-time": "2011-02-25T14:58:38.361577Z",
      "url": "https://files.pythonhosted.org/packages/96/2b/88e9d6bf2e9d75cda77bf4fdc03720f4ba262beb532f9510a4a7f3e45660/requests-0.3.0.tar.gz",
      "yanked": false
    },
    {
      "core-metadata": false,
      "data-dist-info-metadata": false,
      "filename": "requests-0.3.1.tar.gz",
      "hashes": {
        "sha256": "05dddfd656d25b7738778d2b4e8fa72e53b5357a2f80a319e6e1fa59edb03339"
      },
      "provenance": null,
      "requires-python": null,
      "size": 15275,
      "upload-time": "2011-04-01T20:55:03.064666Z",
      "url": "https://files.pythonhosted.org/packages/5e/c0/76fac9445cd8b6394eacae1e098ca0c97767cc0112e45e68521f553df003/requests-0.3.1.tar.gz",
      "yanked": false
    },
    {
      "core-metadata": false,
      "data-dist-info-metadata": false,
      "filename": "requests-0.3.2.tar.gz",
      "hashes": {
        "sha256": "78ecf812ee865b62be106100a3c6f24058c7901ad995351b8818f18ea97ce848"
      },
      "pro

Ask with this source

A prompt for your agent that names this source and how to call it through the crw MCP.

  • Distribution index (PEP 691)

    Use PyPI (pypi) from fastCRW Pergamon, capability "Distribution index (PEP 691)" (distributions). You are resolving, pinning or mirroring a package and need the authoritative list of every version and every downloadable file, rather than the project's latest state. Example options: name=requests. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "pypi" and capability "distributions". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Project metadata

    Use PyPI (pypi) from fastCRW Pergamon, capability "Project metadata" (project). You have a Python package name and need its current version, dependencies, license, maintainers or release history. Example options: name=requests. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "pypi" and capability "project". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • File provenance attestations

    Use PyPI (pypi) from fastCRW Pergamon, capability "File provenance attestations" (provenance). You are checking whether a specific wheel or sdist was built by a verifiable publisher and want the signed attestation proving which repository and workflow uploaded it. Example options: name=sampleproject, version=4.0.0, filename=sampleproject-4.0.0.tar.gz. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "pypi" and capability "provenance". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Single release metadata

    Use PyPI (pypi) from fastCRW Pergamon, capability "Single release metadata" (release). You have a package pinned to an exact version and need that version's own metadata, files or vulnerability status rather than the project's latest state. Example options: name=requests, version=2.32.3. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "pypi" and capability "release". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

Licence

you grant the PSF, its legal successors and assigns, and all other users of the Service an irrevocable, worldwide, royalty-free, nonexclusive license to reproduce, distribute, transmit, display, perform, and publish the Content, including in digital form.

https://policies.python.org/pypi.org/Terms-of-Service/

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: Python Package Index (PyPI)

Cache: up to 3600s