Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch data for 28 days to stay within quota #45

Merged
merged 1 commit into from
Mar 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ python3 -m pip --version
/home/botuser/.local/bin/pypinfo --version

# Generate and minify
/home/botuser/.local/bin/pypinfo --all --json --indent 0 --limit 15000 --days 29 --test "" project
/home/botuser/.local/bin/pypinfo --all --json --indent 0 --limit 15000 --days 29 "" project > top-pypi-packages-30-days.json
days=28
/home/botuser/.local/bin/pypinfo --all --json --indent 0 --limit 15000 --days $days --test "" project
/home/botuser/.local/bin/pypinfo --all --json --indent 0 --limit 15000 --days $days "" project > top-pypi-packages-30-days.json
jq -c . < top-pypi-packages-30-days.json > top-pypi-packages-30-days.min.json
echo 'download_count,project' > top-pypi-packages-30-days.csv
jq -r '.rows[] | [.download_count, .project] | @csv' top-pypi-packages-30-days.json >> top-pypi-packages-30-days.csv
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ <h2 id="changelog">Changelog</h2>
<li>2025-01: Fetch data for 15,000 PyPI packages (<a href="https://github.com/hugovk/top-pypi-packages/pulls/44">#44</a>)
over 29 days (<a href="https://github.com/hugovk/top-pypi-packages/issues/42">#42</a>)
and for all installers, not only pip (<a href="https://github.com/hugovk/top-pypi-packages/issues/39">#39</a>)</li>
<li>2025-02: Fetch data for 28 days (<a href="https://github.com/hugovk/top-pypi-packages/issues/42">#45</a>)</li>
</ul>
</div>
<div class="col-sm-6">
Expand Down