{"library":"pypi-json","title":"PyPI JSON API client","description":"pypi-json is a Python client library for accessing the PyPI JSON API. It allows programmatic retrieval of package metadata, including versions, summaries, dependencies, and more. The current version is 0.5.0.post1, and it has an infrequent but active release cadence, with the latest update in February 2026.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install pypi-json"],"cli":null},"imports":["from pypi_json import PyPIJSON"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pypi_json import PyPIJSON\n\npypi = PyPIJSON()\n\ntry:\n    # Example: Get metadata for the 'requests' package\n    package = pypi.get_package(\"requests\")\n    print(f\"Package Name: {package.name}\")\n    print(f\"Latest Version: {package.version}\")\n    print(f\"Summary: {package.summary}\")\n\n    # Accessing specific release information\n    if package.releases:\n        latest_release_info = package.releases[package.version]\n        print(f\"Upload Time of latest version: {latest_release_info.upload_time_iso_8601}\")\n\nexcept Exception as e:\n    print(f\"An error occurred: {e}\")","lang":"python","description":"This quickstart demonstrates how to instantiate the PyPIJSON client and retrieve metadata for a specific package, such as 'requests'. It shows how to access basic package attributes and specific release information, including error handling for network or package not found issues.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}