Skip to main content

pypiwrap

PyPI - Downloads per week PyPI - Latest Release PyPI - Supported Python Versions GitHub - License

Documentation · PyPI · Changelog

pypiwrap is an API wrapper for the Python Package Index (PyPI) providing interfaces for retrieving project information, releases and statistics from the PyPI JSON API, the Statistics API, and the Index API. pypiwrap also parses information from the PyPI RSS feeds.

Installation

pypiwrap requires Python 3.10 or later and can be installed with pip:

  • python3 -m pip install pypiwrap (Linux/Mac)
  • py -3 -m pip install pypiwrap (Windows)

Examples

import pypiwrap

# Fetching data from the PyPI API
with pypiwrap.PyPIClient() as pypi:
    project = pypi.get_project("requests")

    print(project.name)  # requests
    print(project.author)  # Kenneth Reitz
    print(project.summary)  # Python HTTP for Humans.

    stats = pypi.get_stats()
    print(stats.total_size.si)  # 24.61 TB


# Fetching data from the Index API
with pypiwrap.SimpleRepoClient() as repo:
    page = repo.get_project_page("requests")
    
    print(page.files[-1].url)  # https://files.pythonhosted.org/packages/63/70/[...]
    print(page.files[-1].size.si)  # 131.22 KB


# Fetching data from the RSS feeds
with pypiwrap.PyPIFeedClient() as rss:
    feed = rss.get_newest_packages()

    print(feed.title)  # PyPI newest packages

    for item in feed.items:
        print(item.title)  # ... added to PyPI

Release files for pypiwrap 2.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 pypiwrap 2.1.0
File Size Uploaded
pypiwrap-2.1.0.tar.gz 14.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypiwrap 2.1.0
File Interpreter ABI Platform
pypiwrap-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 29.1 kB

Release files / pypiwrap-2.1.0.tar.gz

Download URL pypiwrap-2.1.0.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b05957a4b6dc45b6ed8a3b822444ec839019982d255c5c271d9c4610788928ea
BLAKE2b-256 checksum
How to use checksums
d4821c6f738270ca1435143cc9b4ab3beee38d79141abc135fb5c64f33cfe41a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 7, 2026.

Transparency log

Release files / pypiwrap-2.1.0-py3-none-any.whl

Download URL pypiwrap-2.1.0-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5e09e6e9db12b1b1a10b435ef9a235e39ff37635b4274f98cff4da0116ba87a
BLAKE2b-256 checksum
How to use checksums
e0f1d83e12fae5cecac4270c3fcdb86b9ca695050c88965d1b6d6fc5f3665914
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

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