Skip to content

Update packages dump #14

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

Merged
merged 1 commit into from
Jan 8, 2018
Merged

Update packages dump #14

merged 1 commit into from
Jan 8, 2018

Conversation

hugovk
Copy link
Owner

@hugovk hugovk commented Jan 8, 2018

Updated using:

$ pypinfo --json --limit 500 --days 365 "" project > 365.json

Which gets 500 projects instead of 360, so some may be skipped if needed.

Reference: https://github.com/ofek/pypinfo#most-popular-projects-in-the-past-year

$ pypinfo --test --limit 500 --days 365 "" project
SELECT
  file.project as project,
  COUNT(*) as download_count,
FROM
  TABLE_DATE_RANGE(
    [the-psf:pypi.downloads],
    DATE_ADD(CURRENT_TIMESTAMP(), -366, "day"),
    DATE_ADD(CURRENT_TIMESTAMP(), -1, "day")
  )
GROUP BY
  project,
ORDER BY
  download_count DESC
LIMIT 500

Which https://console.cloud.google.com/home/activity?c=Configuration,Data_Access,Development,Monitoring,Platform,Recommendation&project=pypinfo-hugovk&authuser=1 says used:

Total billed bytes	94099210240
Total processed bytes	94098561342

which is just over 94 GB (of a 1 TB monthly quota).


As an aside, that compares to a pypinfo --percent --pip --markdown docopt pyversion to show the Python versions of a single package, which costs 17,691,574,272 bytes or 17.7 GB.

SELECT REGEXP_EXTRACT(details.python, r"^([^\.]+\.[^\.]+)") as python_version, COUNT(*) as download_count, FROM TABLE_DATE_RANGE( [the-psf:pypi.downloads], DATE_ADD(CURRENT_TIMESTAMP(), -31, "day"), DATE_ADD(CURRENT_TIMESTAMP(), -1, "day") ) WHERE file.project = "docopt" AND details.installer.name = "pip" GROUP BY python_version, ORDER BY download_count DESC LIMIT 20

@hugovk hugovk merged commit cc48416 into master Jan 8, 2018
@hugovk hugovk deleted the update-packages-dump branch January 8, 2018 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant