-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
199 lines (198 loc) · 10.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="A regular dump of the most-downloaded Python packages from PyPI">
<link rel="icon" href="favicon.ico">
<style>
:root {
--bg-color: #eee;
--text-color: #444;
--link-color: #090;
--link-hover-color: white;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: black;
--text-color: #ccc;
--link-color: #5bf;
--link-hover-color: black;
}
}
body { margin-top:15px; }
h1 { text-align: center; }
h1,h2,h3 { line-height:1.2; }
canvas, body {
background-color: var(--bg-color);
color: var(--text-color);
font-size: 18px;
line-height: 1.6;
margin:40px auto;
max-width: 650px;
padding: 0 10px;
}
pre { text-align: left; }
footer { text-align: center; }
.wrapper {
display: grid;
grid-template-columns: 1fr 8fr 1fr;
grid-gap: 10px;
grid-auto-rows: minmax(40px, auto);
}
.one {
grid-column: 1;
margin: auto auto auto 10px;
text-align: left;
}
.two {
grid-column: 2;
margin: auto;
text-align: center;
}
.three {
grid-column: 3;
margin: auto 10px auto auto;
text-align: right;
}
a {
color: var(--link-color);
text-decoration: none;
}
a:hover,
a:hover div {
color: var(--link-hover-color);
background-color: var(--link-color);
outline: 0.05em solid var(--link-color);
}
a#digitalocean {
color: inherit;
background-color: inherit;
outline: inherit;
}
</style>
<title>Top PyPI Packages: A monthly dump of the 8,000 most-downloaded packages from PyPI</title>
<meta property="og:title" content="Top PyPI Packages">
<meta property="og:type" content="website">
<!--<meta property="og:image" content="https://hugovk.github.io/top-pypi-packages/image.png">-->
<!--<meta property="og:image:width" content="630">-->
<!--<meta property="og:image:height" content="630">-->
<meta property="og:url" content="https://hugovk.github.io/top-pypi-packages/">
<meta property="og:description" content="A monthly dump of the 8,000 most-downloaded packages from PyPI">
</head>
<body ng-app="app" ng-controller="packageCtrl">
<div class="container">
<div class="row">
<div class="col-sm-6">
<h1 id="top">Top PyPI Packages</h1>
<a href="https://zenodo.org/badge/latestdoi/116806538"><img alt="DOI" src="https://zenodo.org/badge/116806538.svg"></a>
<h2 id="what">What is this?</h2>
<p>A monthly dump of the 8,000 most-downloaded packages from PyPI.</p>
<ul>
<li><a href="https://hugovk.github.io/top-pypi-packages/top-pypi-packages-30-days.min.json">https://hugovk.github.io/top-pypi-packages/top-pypi-packages-30-days.min.json</a></li>
<li><a href="https://hugovk.github.io/top-pypi-packages/top-pypi-packages-30-days.csv">https://hugovk.github.io/top-pypi-packages/top-pypi-packages-30-days.csv</a></li>
</ul>
<p>Unminified:</p>
<ul>
<li><a href="https://hugovk.github.io/top-pypi-packages/top-pypi-packages-30-days.json">https://hugovk.github.io/top-pypi-packages/top-pypi-packages-30-days.json</a></li>
</ul>
<h2 id="thanks">Thanks</h2>
<p>Thanks to <a href="https://pypi.org/">PyPI</a>,
<a href="https://cloud.google.com/bigquery/">Google BigQuery</a>,
<a href="https://github.com/ofek/pypinfo">pypinfo</a>,
<a href="https://pythonwheels.com/">Python Wheels</a> and
<a href="https://m.do.co/c/431978e0c3e9">DigitalOcean</a>.</p>
<h2 id="users">Used by</h2>
<p>This data is used by:</p>
<ul>
<li><a href="https://github.com/hugovk/top-pypi-packages/issues/23">Science!</a></li>
<li><a href="https://hugovk.github.io/drop-python/">Drop Python</a></li>
<li><a href="https://pythonwheels.com/">Python Wheels</a><!-- https://github.com/meshy/pythonwheels/pull/100 --></li>
<li><a href="https://hugovk.github.io/free-threaded-wheels/">Free-Threaded Wheels</a></li>
<li><a href="https://trailofbits.github.io/are-we-pep740-yet/">Are we PEP 740 yet?</a></li>
<li><a href="https://github.com/sethmlarson/pypi-data">PyPI Data</a></li>
<li><a href="https://pypilb.vercel.app/">PyPI Download Leaderboard</a></li>
<li><a href="https://pythontest.com/top-pytest-plugins/">Top pytest Plugins</a> (<a href="https://pythontest.com/pytest/finding-top-pytest-plugins/">blogpost</a>)</li>
<li><a href="https://maxnoe.github.io/who-dropped-python2/">Who has already dropped Python 2 support?</a></li>
<li><a href="https://py.wtf">py.wtf</a><!-- https://github.com/zsol/py.wtf/pull/89 --></li>
<li>Something else? <a href="https://github.com/hugovk/top-pypi-packages/issues/new">Let us know!</a></li>
</ul>
<h2 id="changelog">Changelog</h2>
<ul>
<li>2018-01: Fetch data weekly for 500 packages over 365 days (<a href="https://github.com/hugovk/top-pypi-packages/commit/fa9774cd26f93aedbb6f27e0364687c2fd799f26">fa9774c</a>)</li>
<li>2018-01: Fetch data for 1,000 packages over 365 days (<a href="https://github.com/hugovk/top-pypi-packages/commit/7148b389bbde83ef1c8a06deebf47fb4f942dc40">7148b38</a>)</li>
<li>2018-01: Fetch data for 5,000 packages over 365 days (<a href="https://github.com/hugovk/top-pypi-packages/commit/47523f4334d05e53ecfde20cb29add5afaae5f8a">47523f4</a>)</li>
<li>2018-02: Fetch data for 5,000 packages over 30 and 365 days (<a href="https://github.com/hugovk/top-pypi-packages/pull/2">#2</a>)</li>
<li>2019-10: Fetch data fortnightly (<a href="https://github.com/hugovk/top-pypi-packages/pull/5">#5</a>)</li>
<li>2019-12: Fetch data for 4,000 packages over 30 and 365 days (<a href="https://github.com/hugovk/top-pypi-packages/pull/7">#7</a>)</li>
<li>2020-03: Fetch data monthly (<a href="https://github.com/hugovk/top-pypi-packages/pull/9">#9</a>)</li>
<li>2021-07: Fetch data for 5,000 packages over only 30 days (<a href="https://github.com/hugovk/top-pypi-packages/pull/20">#20</a>)</li>
<li>2021-09: Fetch data for 8,000 packages (<a href="https://github.com/hugovk/top-pypi-packages/pull/30">#30</a>)</li>
<li>2024-05: Provide data in CSV in addition to JSON (<a href="https://github.com/hugovk/top-pypi-packages/issues/31">#31</a>)</li>
<li>2024-11: Fetch data for all installers, not only pip (<a href="https://github.com/hugovk/top-pypi-packages/issues/39">#39</a>)</li>
</ul>
</div>
<div class="col-sm-6">
<h2 id="charts">The charts</h2>
<div>
<p>Last updated <span ng-bind="last_update"></span>. (Updated monthly.)</p>
<span ng-bind="now_showing_packages">...</span>
<span ng-bind="now_showing_days">...</span>
</div>
<button ng-click="show(100)" >Show 100</button>
<button ng-click="show(1000)" >Show 1,000</button>
<button ng-click="show(8000)" >Show 8,000</button>
<div class="list">
<span ng-hide="packages">JavaScript must be enabled to display the list of packages.</span>
<a ng-repeat="package in packages" ng-href="https://pypi.org/project/{{ package.project }}" class="" ng-attr-title="{{ package.project }}">
<div class="wrapper">
<div class="one" id="{{ $index + 1 }}">{{ ($index + 1).toLocaleString() }}.</div>
<div class="two" id="{{ package.project }}" ng-bind="package.project"></div>
<div class="three" ng-bind="package.download_count.toLocaleString()"></div>
</div>
</a>
</div>
<div>
<span ng-bind="now_showing_packages"></span>
<span ng-bind="now_showing_days"></span>
</div>
<button ng-click="show(100)" >Show 100</button>
<button ng-click="show(1000)" >Show 1,000</button>
<button ng-click="show(8000)" >Show 8,000</button>
</div>
</div>
<footer>
<p>Last updated <span ng-bind="last_update"></span>. (Updated monthly.)</p>
<p>
<a id="digitalocean" href="https://m.do.co/c/431978e0c3e9">
<img alt="Powered by DigitalOcean" src="https://opensource.nyc3.cdn.digitaloceanspaces.com/attribution/assets/PoweredByDO/DO_Powered_by_Badge_blue.svg" width="201px">
</a>
</p>
</footer>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js"></script>
<script>
var app = angular.module('app', [])
.controller('packageCtrl', function ($scope, $http) {
$scope.num_packages = 100;
$scope.show = function (number) {
$scope.packages = $scope.all_packages.slice(0, number);
$scope.num_packages = number;
$scope.now_showing_packages = 'Showing ' + number.toLocaleString() + ' packages';
};
$scope.days_30 = function () {
$scope.all_packages = $scope.all_packages_30;
$scope.show($scope.num_packages);
$scope.now_showing_days = 'over 30 days.';
};
$http.get('top-pypi-packages-30-days.min.json').then(function(res) {
$scope.last_update = res.data.last_update;
// Store all for later
$scope.all_packages_30 = res.data['rows'];
// We'll show these to begin
$scope.days_30();
});
});
</script>
<a href="https://github.com/hugovk/top-pypi-packages" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#fff; color:#151513; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"/><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"/><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"/></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
</body>
</html>