{"id":27289,"library":"pypi","title":"PyPI Client","description":"Provides access to the Python Package Index (PyPI) metadata. Version 2.1 is outdated and unmaintained; use `pip` or `requests` directly instead.","status":"deprecated","version":"2.1","language":"python","source_language":"en","source_url":"https://code.google.com/archive/p/python-pypi/","tags":["pypi","client","deprecated"],"install":[{"cmd":"pip install pypi","lang":"bash","label":"PyPI client"}],"dependencies":[{"reason":"The package uses requests internally","package":"requests","optional":false}],"imports":[{"note":"Direct import of 'pypi' does not expose the class; use submodule.","wrong":"import pypi","symbol":"PyPI","correct":"from pypi import PyPI"},{"note":"","wrong":"","symbol":"get_packages","correct":"from pypi import get_packages"}],"quickstart":{"code":"from pypi import PyPI\nclient = PyPI()\n# List all packages (takes time)\n# packages = client.get_packages()\n# For single package info, use pip or requests instead.","lang":"python","description":"Initialize PyPI client and fetch packages."},"warnings":[{"fix":"Replace with 'pip show <package>' or 'requests.get(f'https://pypi.org/pypi/{package}/json').json()'","message":"The 'pypi' package is outdated and unmaintained. Use 'pip' or direct HTTP requests to https://pypi.org/pypi/<package>/json.","severity":"deprecated","affected_versions":"all"},{"fix":"Switch to using the JSON API directly.","message":"The package may not support PEP 503 (Simple Repository API) and relies on old XML-RPC API (deprecated).","severity":"gotcha","affected_versions":"2.x"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from pypi import PyPI'","cause":"Incorrect import path. The 'pypi' package has submodules.","error":"ImportError: cannot import name 'PyPI' from 'pypi'"},{"fix":"Run 'pip install pypi'","cause":"Package not installed or named incorrectly.","error":"ModuleNotFoundError: No module named 'pypi'"},{"fix":"Check documentation; use 'PyPI().get_packages()' or switch to JSON API.","cause":"The function may be named differently or removed.","error":"AttributeError: module 'pypi' has no attribute 'get_packages'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}