Skip to main content

A tool to generate statistics report for PyPI authors

Project description

License: MIT Downloads

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pip_author_stats-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

pip_author_stats-0.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pip_author_stats-0.0.2.tar.gz.

File metadata

  • Download URL: pip_author_stats-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.3

File hashes

Hashes for pip_author_stats-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ffffdd9ae786486940c02b7220ea5ef5ad727dfaa651a59d31d8bebf2d104389
MD5 3a4ca78085e294572c4af38db4a278c1
BLAKE2b-256 997268ddc475287c5645ec6993751a33f143522aaa36b340ed3cdb0eeff5804e

See more details on using hashes here.

File details

Details for the file pip_author_stats-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pip_author_stats-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c363809ba843692bf6926259198766db0763fea42f8f576f1e02e4fee6660579
MD5 2e9f4cfabeff862f72484eb5c756cf2c
BLAKE2b-256 9d547728d64eadd1e7fce929252098b89dca5fb91eda40c3ab2d0c9b9773ff1d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page