Skip to content

Commit 6330141

Browse files
authored
Merge branch 'master' into add-more-e2e-tests
2 parents 38aaec0 + 3b4aec6 commit 6330141

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

devel/stats.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Download Statistics
2+
3+
Pypi stores download information in a [BigQuery public dataset](https://bigquery.cloud.google.com/dataset/the-psf:pypi). It can be queried to get detail infomration about downloads. For example, to get number of downloads per version, you can run this query:
4+
5+
```sql
6+
SELECT
7+
file.version,
8+
COUNT(*) as total_downloads,
9+
FROM
10+
TABLE_DATE_RANGE(
11+
[the-psf:pypi.downloads],
12+
TIMESTAMP("20161120"),
13+
CURRENT_TIMESTAMP()
14+
)
15+
where file.project == "kubernetes"
16+
GROUP BY
17+
file.version
18+
ORDER BY
19+
total_downloads DESC
20+
LIMIT 20
21+
```
22+
23+
More example queries can be found [here](https://gist.github.com/alex/4f100a9592b05e9b4d63)
24+
25+
Reference: https://mail.python.org/pipermail/distutils-sig/2016-May/028986.html
26+

0 commit comments

Comments
 (0)