Registry / http-networking / pypi
library2.1pypypiunverified

Provides access to the Python Package Index (PyPI) metadata. Version 2.1 is outdated and unmaintained; use `pip` or `requests` directly instead.

pip install pypi
INSTALL
IMPORT
SIG · PYPI
P
pypi
http-networkingpythonv2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PyPI
from pypi import PyPI
import pypi
Direct import of 'pypi' does not expose the class; use submodule.
get_packages
from pypi import get_packages

Initialize PyPI client and fetch packages.

from pypi import PyPI client = PyPI() # List all packages (takes time) # packages = client.get_packages() # For single package info, use pip or requests instead.
Debug
Known issues
deprecatedThe 'pypi' package is outdated and unmaintained. Use 'pip' or direct HTTP requests to https://pypi.org/pypi/<package>/json.
fix
Replace with 'pip show <package>' or 'requests.get(f'https://pypi.org/pypi/{package}/json').json()'
affects: all
gotchaThe package may not support PEP 503 (Simple Repository API) and relies on old XML-RPC API (deprecated).
fix
Switch to using the JSON API directly.
affects: 2.x
Upgrade
Version history
2.1latest on PyPI · released Mar 24, 2018
Audit
Dependencies
requestsrequiredThe package uses requests internally
Agent activity
4 hits · last 30 days
node
4
Resources
pypi — pip install pypi · libregistry