### Quick Start workflow example Source: https://github.com/ysskrishna/pypi-package-stats-action/blob/main/README.md Use the action with the required `package-name` input and reference the `last-month-downloads` output. The `id` field is required to reference step outputs; omit it if you only need the JSON file or Job Summary. ```yaml - uses: ysskrishna/pypi-package-stats-action@v1 id: stats with: package-name: 'requests' - run: echo "Downloads last month: ${{ steps.stats.outputs.last-month-downloads }}" ``` -------------------------------- ### JSON Output Schema for stats-json and output-path file Source: https://github.com/ysskrishna/pypi-package-stats-action/blob/main/README.md Structure of the JSON returned in the `stats-json` output and written to the `output-path` file (default: `stats.json`). Contains package metadata, download counts for various periods, and breakdowns by Python version and operating system. ```json { "package": { "name": "requests", "version": "2.32.3", "upload_time": "2024-05-29", "description": "Python HTTP for Humans.", "author": "Kenneth Reitz", "license": "Apache-2.0", "home_page": "https://requests.readthedocs.io", "pypi_url": "https://pypi.org/project/requests/" }, "downloads": { "last_day": 2500000, "last_week": 17500000, "last_month": 75000000, "last_180d": 450000000 }, "python_versions": [ { "version": "3.12", "downloads": 5000000, "percentage": 35.0 }, { "version": "3.11", "downloads": 4000000, "percentage": 28.0 } ], "operating_systems": [ { "os": "Linux", "downloads": 12000000, "percentage": 68.0 }, { "os": "Windows", "downloads": 3500000, "percentage": 20.0 }, { "os": "Darwin", "downloads": 2000000, "percentage": 12.0 } ] } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.