PyPI Author Stats Reporter
The PyPI Author Stats Reporter is a Python package designed to fetch and analyze PyPI package data for a specific author. It generates comprehensive reports detailing package downloads and other statistics, offering valuable insights into the usage and popularity of an author's packages.
Installation
To install PyPI Author Stats Reporter, use pip:
pip install pip-author-stats
Usage
As a Python Module
PyPI Author Stats Reporter can also be integrated into your Python scripts.
Example:
from pip_author_stats.report_generator import generate_report
# Generate a report for a specific PyPI author
report = generate_report('your-pypi-author-username')
print(report)
Report Details
The generated report includes:
- Total number of packages by the author.
- Total number of downloads across all packages.
- Average number of downloads per package.
- Maximum and minimum number of downloads for individual packages.
- The name of the most downloaded package.
Output Example
When you run PyPI Author Stats Reporter, it outputs a JSON formatted report with detailed statistics. Here is an example snippet:
{
"Summary Report": {
"Total Packages": 5,
"Total Downloads": 15000,
"Average Downloads": 3000,
"Max Downloads": 5000,
"Min Downloads": 1000,
"Package with Most Downloads": "example-package"
},
"Detailed Report": [
{
"package": "example-package",
"total_downloads": 5000
},
// More package data...
]
}
Contributing
Contributions, issues, and feature requests are welcome! Feel free to fork, modify, and make pull requests to enhance the functionalities of this tool.
License
Metadata
Release files for pip-author-stats 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pip_author_stats-0.0.2.tar.gz | 3.4 kB | Without provenance | Details for pip_author_stats-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pip_author_stats-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pip_author_stats-0.0.2-py3-none-any.whl |
Total release size: 7.8 kB
Security for pip-author-stats 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.