{"library":"pypistats","title":"PyPI Stats","description":"Python interface to the PyPI Stats API (https://pypistats.org/api). Provides programmatic and CLI access to download statistics for Python packages. Current version 1.13.0, requires Python >=3.10. Releases approximately every few months.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pypistats"],"cli":{"name":"pypistats","version":"pypistats 1.13.0"}},"imports":["import pypistats","from pypistats import recent"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pypistats\n\n# Get recent downloads for a package\ndata = pypistats.recent('requests', format='json')\nprint(data[:200])  # first 200 characters\n\n# CLI equivalent: pypistats recent requests","lang":"python","description":"Fetches recent download stats for a package in JSON format.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}