Skip to main content

Filter and write pypi statistics

Project description

About The Project

write-pypistat collects, sorts and writes PyPI statistics into csv files or on the console.

Installation

write-pypistat requires pypistats and pandas packages.

pip install write-pypistat

Usage

from writepypistat import WritePypiStat

package = "ipyvizzu"
outdir = "_stat_veghdev_write-pypistat" # optional
write_pypistat = WritePypiStat(package, outdir)

write_pypistat.drop_percent_column = True
write_pypistat.drop_total_row = True

# stat_type: overall, python_major, python_minor, system
write_pypistat.write_pypistat(stat_type="system")

# date_period: None, month, day
# start_date: 2022 | 2022-01 | 2022-01-01 -> 2022-01-01
# end_date: 2022 | 2022-12 | 2022-12-31 -> 2022-12-31
write_pypistat.write_pypistat(stat_type="overall", date_period="month", start_date="2022-01-01", end_date="2022")

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

write-pypistat-0.1.0.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

write_pypistat-0.1.0-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

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