pypi-json
PyPI JSON API client library
What it is and what it does
pypi-json is a Python client library that wraps PyPI's JSON API, allowing you to programmatically fetch package metadata, version history, dependencies, and other warehouse information without parsing HTML or managing HTTP requests directly. It depends on requests for HTTP calls, packaging for version handling, and apeye for URL management.
The library is typed, actively maintained, and supports Python 3.7 through 3.13 on both CPython and PyPy. It's useful when you need to integrate PyPI lookups into automation, build tools, or analysis scripts—anywhere you'd otherwise call the raw JSON API endpoints yourself.
Use it for:
- Fetch package metadata and release history for dependency analysis or auditing tools.
- Build automation scripts that check PyPI for package updates or new versions.
- Analyze package dependencies and their transitive closure programmatically.
- Create package search or discovery tools that query PyPI without web scraping.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A client library for querying PyPI's JSON API to retrieve package metadata, dependencies, and release information programmatically.
Yes. Low install friction, permissive MIT license, active maintenance, no known vulnerabilities, and typed code make this a straightforward choice if you need to query PyPI metadata from Python. The three-dependency footprint is minimal and all are well-established packages.
Install
pypi-json on PyPI
pip
pip install pypi-jsonuv
uv add pypi-jsonpoetry
poetry add pypi-jsonInstalling pypi-json
Before you install
Low install friction with a pure-Python wheel and only three runtime dependencies (apeye, packaging, requests). Actively maintained with a recent release in February 2026 and ongoing commits.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
Quickstart
pip install pypi-json
from pypi_json import PyPIJSON
client = PyPIJSON()
package_info = client.get_json('requests')
Verify before relying
- Whether the library supports querying all PyPI JSON API endpoints or a subset of them.
- Performance characteristics when querying large numbers of packages or handling rate limits.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — apeye, packaging, requests |
| Maintenance | actively maintained — 176 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 180,213/month — #10,149 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pypi_json-0.5.0.post1-py3-none-any.whl
Keywords: json, packaging, pypi, warehouse
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
dist-metaParse and create Python distribution metadata…
permissive · top 15,000 on PyPI
shippinglabelProvides utilities for reading and working with…
permissive · top 5,000 on PyPI
pyproject-parserParses and extracts metadata from…
permissive · top 15,000 on PyPI
aioymapsaioymaps is an async client library for…
permissive · top 15,000 on PyPI
wheywhey is a PEP 517 build backend that creates…
permissive · top 15,000 on PyPI
apeyeapeye provides pathlib-like URL objects, a…
copyleft · top 5,000 on PyPI
pypiserverRuns a minimal PyPI-compatible package server…
permissive · top 5,000 on PyPI
flit-coreFlit-core provides the build backend for…
permissive · top 1,000 on PyPI
snowflakeUnified Python API for Snowflake workloads,…
permissive · top 5,000 on PyPI
sphinx-pyprojectLoads Sphinx documentation configuration from…
permissive · top 15,000 on PyPI