API and commandline for fetching simple statistics from PyPi's API
Project description
API and commandline for fetching simple statistics from PyPi’s API
Free software: GPLv2
Usage
Run simple-pypi-statistics to show usage:
simple-pypi-statistics Usage: simple-pypi-statistics [options] [verbose|json] <pypi-package>... simple-pypi-statistics (-h | --help) simple-pypi-statistics --version Options: --no-honeypot Do not use honeypot for correcting bot/mirror pollution [default: False] -h --help Show this screen. --version Show version. Examples: simple-pypi-statistics docopt # Outputs everything about docopt simple-pypi-statistics docopt==0.1 # Outputs a specific version simple-pypi-statistics json docopt==0.1 # In JSON! Credits: Benjamin Bach -- updated script with honey pot corrections Alex Clark -- for making vanity, which this script is based on
Features
verbose output
JSON output
functions in api for direct access
Honey pot
A bogus project on PyPi is used to track garbage stats. To assure that things are working, consider that the grand total of downloads for that project is actually also 0:
python3 -m simple_pypi_statistics python-bogus-project-honeypot python-bogus-project-honeypot-1438620531.16.tar.gz 2015-08-03 12 python-bogus-project-honeypot-1438619971.82.tar.gz 2015-08-03 -12 ----------------------------------------------------------------------------- No downloads for python-bogus-project-honeypot.
History
0.1.2 (2015-08-05)
Fixed err in JSON output to coerce datetime.date to str
0.1.1 (2015-08-05)
Added honey pot corrections
0.1.0 (2015-08-04)
First release on PyPI.
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
File details
Details for the file simple_pypi_statistics-0.1.2.tar.gz
.
File metadata
- Download URL: simple_pypi_statistics-0.1.2.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76047b6616ddad41a662c2a2e3a8d28f70a066c3bbc89abe033e03db611e0439 |
|
MD5 | c1f1b218abc5ad7588eca78e6cee782d |
|
BLAKE2b-256 | 34b6fceaab0f04c0ad81aa826d7dcf3c60de4607547034634e2f471c339344a4 |