https://github.com/amdmi3/pypicache
Accumulator and dump generator for fresh PyPi package data
https://github.com/amdmi3/pypicache
Last synced: about 1 year ago
JSON representation
Accumulator and dump generator for fresh PyPi package data
- Host: GitHub
- URL: https://github.com/amdmi3/pypicache
- Owner: AMDmi3
- License: gpl-3.0
- Created: 2020-10-22T01:00:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-22T19:45:27.000Z (over 2 years ago)
- Last Synced: 2025-03-30T12:22:27.757Z (over 1 year ago)
- Language: Python
- Size: 114 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# PyPi cache
[](https://github.com/AMDmi3/pypicache/actions/workflows/ci.yml)
Shamefully, [PyPi](https://pypi.org) does not provide usable
dump of metadata for all available packages.
This simple tool constantly polls
[Last Updates Feed](https://warehouse.readthedocs.io/api-reference/feeds.html#latest-updates-feed)
for package updates, fetches recent metadata of updated packages via PyPi
[API](https://warehouse.readthedocs.io/api-reference/json.html#project),
stores it in the database and periodically generates JSON dumps.
## Running
Preparing the database:
```shell
psql --username postgres -c "CREATE DATABASE pypicache"
psql --username postgres -c "CREATE USER pypicache WITH PASSWORD 'pypicache'"
psql --username postgres -c "GRANT ALL ON DATABASE pypicache TO pypicache"
```
Running the tool:
```shell
env PYTHONPATH=. python -m pypicache --dump-path=dump.json
```
or
```shell
python setup.py install
pypicache --dump-path=dump.json
```
## Author
* [Dmitry Marakasov](https://github.com/AMDmi3)
## License
GPLv3 or later, see [COPYING](COPYING).