Expand description
PyPI registry client.
Provides access to the PyPI registry via:
- Simple API (https://pypi.org/simple/{package}/), PEP 691 JSON variant,
for version lookups (
get_versions) — smaller than the full JSON API - Package metadata API (https://pypi.org/pypi/{package}/json) for hover
metadata (
get_package_metadata), which needssummary/project_urlsthat the Simple API doesn’t carry
All HTTP requests are cached aggressively using ETag/Last-Modified headers.
Structs§
- Pypi
Registry - Client for interacting with the PyPI registry.
Constants§
- PYPI_
URL - Base URL for package pages on pypi.org
- REGISTRY
- Display name for PyPI used in not-found and API-response error messages.
Functions§
- package_
url - Returns the URL for a package’s page on pypi.org.