A simple analytics dashboard for aggregate data on PyPI downloads. PyPI Stats is built using Flask with plotly.js.
PyPI Stats has an integration with GitHub so you can track install data on the packages you maintain.
PyPI Stats provides a simple JSON API to retrieve aggregate download stats and time histories of pypi packages.
Prerequisites:
- Docker
- Docker Compose, available as the
docker composecommand used by the Makefile - Make
Copy
.env.exampleto.envand configure your environment variables:cp .env.example .env # Edit .env with your configurationRun
make pypistatsto launch a complete development environment. The target stops any existing containers, rebuilds the images, and starts the Docker Compose services for the app:make pypistats
After setting up .env as above, run:
make testThis runs the tests in Docker Compose using isolated PostgreSQL databases and
reports code coverage in the terminal and at htmlcov/index.html.
PostgreSQL remains running afterward.