skillfed

pypi-simple

PyPI Simple Repository API client library

pypi-simple v1.8.0 375.7K downloads/30d#7,134 on PyPI43
Permissive license MIT Active released

What it is and what it does

pypi-simple is a client library that implements the Python Simple Repository API as defined in PEP 503 and updated by several follow-up PEPs (592, 629, 658, 691, 700, 708, 714, 740, 792). It provides a programmatic interface to query PyPI and other pip-compatible package repositories, retrieve lists of available projects and their package files, and extract metadata like version, package type, file digests, requires_python constraints, PGP signatures, and metadata URLs.

The library wraps HTTP requests to repository endpoints and parses HTML responses using beautifulsoup4, with validation via pydantic. It's designed for developers who need to automate package discovery, download, or inspection workflows without invoking pip directly. The API is straightforward: instantiate a PyPISimple client, call get_project_page() to fetch a project's available packages, and access properties like filename, url, version, digests, and package_type on each result.

Use it for:

  • Automate discovery and download of specific package versions from PyPI for offline distribution or mirroring.
  • Query package metadata (version, digests, requires_python) to validate compatibility before installation.
  • Build custom package management or dependency resolution tools that need direct access to repository metadata.
  • Implement package auditing or compliance workflows that inspect available versions and their properties.
  • Create alternative package installers or build systems that interact with pip-compatible repositories.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A client library for querying PyPI and pip-compatible repositories via the Simple Repository API (PEP 503 and related standards), retrieving project metadata, package files, and digests.

Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive MIT license. It fills a specific need for programmatic access to PyPI and compatible repositories via a well-specified standard. Install it if you need to query or download packages programmatically outside of pip's normal workflow.

Install

pypi-simple on PyPI

pip

pip install pypi-simple

uv

uv add pypi-simple

poetry

poetry add pypi-simple

Installing pypi-simple

Before you install

Low friction installation with only five runtime dependencies (beautifulsoup4, mailbits, packaging, pydantic, requests). Active maintenance with last commit on 2026-07-20 and a release on 2025-09-03. Supports Python 3.8 through 3.13 and PyPy.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

from pypi_simple import PyPISimple

with PyPISimple() as client:
    page = client.get_project_page('requests')
    pkg = page.packages[0]
    print(pkg.filename, pkg.version, pkg.digests)

Requires Python 3.8 or higher.

Verify before relying

  • Whether the optional tqdm integration (mentioned in docs) is available as a declared extra dependency in the package metadata.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 5 — beautifulsoup4, mailbits, packaging, pydantic, requests
Maintenance actively maintained — 345 days since the last release
Last repo commit
First released
Downloads 375,738/month — #7,134 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pypi_simple-1.8.0-py3-none-any.whl

Keywords: packages, pep503, pip, pypi, simple repository api

Development Status :: 5 - Production/StableProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Software DistributionTopic :: Text Processing :: Markup :: HTMLTyping :: Typed

Tags

pypi simple repository api clientquery pypi package metadatadownload packages from pypipip repository apipackage index client librarypep 503 implementation
package-managementpypi-clientrepository-api

More Python Modules packages