skillfed

pypi-json

PyPI JSON API client library

pypi-json v0.5.0.post1 180.2K downloads/30d#10,149 on PyPI10
Permissive license MIT Active released

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-json

uv

uv add pypi-json

poetry

poetry add pypi-json

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Tags

pypi api clientquery pypi package metadatapypi json wrapperfetch package info from pypipypi warehouse clientpython package metadata lookup
api-clientpypi-integration

More Python Modules packages