-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
190 lines (189 loc) · 7.83 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
<!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="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
<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; }
.github-fork-ribbon:before {
background-color: #090;
}
.github-fork-ribbon:hover, .github-fork-ribbon:active {
/* Until github-fork-ribbon-css #62 is released: */
outline: none;
}
.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>
</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://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>
</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>
<a class="github-fork-ribbon" href="https://github.com/hugovk/top-pypi-packages" target="_blank" rel="noopener" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
<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>
</body>
</html>