Skip to content

Commit fb07777

Browse files
authored
Remove view statistics blurb (#16198)
* Remove statistics blurb * Add statstic links to /stats page * Update translations
1 parent cfe6489 commit fb07777

File tree

4 files changed

+81
-81
lines changed

4 files changed

+81
-81
lines changed

warehouse/locale/messages.pot

Lines changed: 47 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -773,11 +773,8 @@ msgstr ""
773773
#: warehouse/templates/base.html:319 warehouse/templates/base.html:320
774774
#: warehouse/templates/base.html:321 warehouse/templates/base.html:331
775775
#: warehouse/templates/base.html:344
776-
#: warehouse/templates/includes/accounts/profile-actions.html:21
777-
#: warehouse/templates/includes/accounts/profile-actions.html:30
778776
#: warehouse/templates/includes/accounts/profile-callout.html:18
779777
#: warehouse/templates/includes/hash-modal.html:23
780-
#: warehouse/templates/includes/packaging/project-data.html:106
781778
#: warehouse/templates/index.html:100 warehouse/templates/index.html:104
782779
#: warehouse/templates/manage/account.html:228
783780
#: warehouse/templates/manage/account.html:234
@@ -1111,10 +1108,7 @@ msgstr ""
11111108
msgid "Infrastructure dashboard"
11121109
msgstr ""
11131110

1114-
#: warehouse/templates/base.html:293
1115-
#: warehouse/templates/includes/accounts/profile-actions.html:19
1116-
#: warehouse/templates/includes/accounts/profile-actions.html:28
1117-
#: warehouse/templates/pages/sitemap.html:40
1111+
#: warehouse/templates/base.html:293 warehouse/templates/pages/sitemap.html:40
11181112
#: warehouse/templates/pages/stats.html:16
11191113
msgid "Statistics"
11201114
msgstr ""
@@ -2833,25 +2827,6 @@ msgstr ""
28332827
msgid "Edit profile"
28342828
msgstr ""
28352829

2836-
#: warehouse/templates/includes/accounts/profile-actions.html:21
2837-
#, python-format
2838-
msgid ""
2839-
"View statistics for your projects via <a href=\"%(libs_io_href)s\" "
2840-
"title=\"%(title)s\" target=\"_blank\" rel=\"noopener\">Libraries.io</a>, "
2841-
"or by using <a href=\"%(gbq_href)s\" target=\"_blank\" "
2842-
"rel=\"noopener\">our public dataset on Google BigQuery</a>"
2843-
msgstr ""
2844-
2845-
#: warehouse/templates/includes/accounts/profile-actions.html:30
2846-
#, python-format
2847-
msgid ""
2848-
"View statistics for %(username)s's projects via <a "
2849-
"href=\"%(libs_io_href)s\" title=\"%(title)s\" target=\"_blank\" "
2850-
"rel=\"noopener\">Libraries.io</a>, or by using <a href=\"%(gbq_href)s\" "
2851-
"target=\"_blank\" rel=\"noopener\">our public dataset on Google "
2852-
"BigQuery</a>"
2853-
msgstr ""
2854-
28552830
#: warehouse/templates/includes/accounts/profile-callout.html:18
28562831
#, python-format
28572832
msgid ""
@@ -2987,47 +2962,38 @@ msgstr ""
29872962
msgid "Open PRs:"
29882963
msgstr ""
29892964

2990-
#: warehouse/templates/includes/packaging/project-data.html:106
2991-
#, python-format
2992-
msgid ""
2993-
"View statistics for this project via <a href=\"%(libs_io_href)s\" "
2994-
"title=\"%(title)s\" target=\"_blank\" rel=\"noopener\">Libraries.io</a>, "
2995-
"or by using <a href=\"%(gbq_href)s\" target=\"_blank\" "
2996-
"rel=\"noopener\">our public dataset on Google BigQuery</a>"
2997-
msgstr ""
2998-
2999-
#: warehouse/templates/includes/packaging/project-data.html:113
2965+
#: warehouse/templates/includes/packaging/project-data.html:108
30002966
msgid "Meta"
30012967
msgstr ""
30022968

3003-
#: warehouse/templates/includes/packaging/project-data.html:115
2969+
#: warehouse/templates/includes/packaging/project-data.html:110
30042970
msgid "License:"
30052971
msgstr ""
30062972

3007-
#: warehouse/templates/includes/packaging/project-data.html:118
3008-
#: warehouse/templates/includes/packaging/project-data.html:120
2973+
#: warehouse/templates/includes/packaging/project-data.html:113
2974+
#: warehouse/templates/includes/packaging/project-data.html:115
30092975
msgid "Author:"
30102976
msgstr ""
30112977

3012-
#: warehouse/templates/includes/packaging/project-data.html:123
3013-
#: warehouse/templates/includes/packaging/project-data.html:125
2978+
#: warehouse/templates/includes/packaging/project-data.html:118
2979+
#: warehouse/templates/includes/packaging/project-data.html:120
30142980
#: warehouse/templates/pages/help.html:610
30152981
msgid "Maintainer:"
30162982
msgstr ""
30172983

3018-
#: warehouse/templates/includes/packaging/project-data.html:130
2984+
#: warehouse/templates/includes/packaging/project-data.html:125
30192985
msgid "Tags"
30202986
msgstr ""
30212987

3022-
#: warehouse/templates/includes/packaging/project-data.html:140
2988+
#: warehouse/templates/includes/packaging/project-data.html:135
30232989
msgid "Requires:"
30242990
msgstr ""
30252991

3026-
#: warehouse/templates/includes/packaging/project-data.html:145
2992+
#: warehouse/templates/includes/packaging/project-data.html:140
30272993
msgid "Provides-Extra:"
30282994
msgstr ""
30292995

3030-
#: warehouse/templates/includes/packaging/project-data.html:153
2996+
#: warehouse/templates/includes/packaging/project-data.html:148
30312997
#: warehouse/templates/pages/classifiers.html:16
30322998
#: warehouse/templates/pages/classifiers.html:21
30332999
#: warehouse/templates/pages/sitemap.html:39
@@ -4560,7 +4526,7 @@ msgstr ""
45604526
#: warehouse/templates/manage/project/documentation.html:35
45614527
#: warehouse/templates/manage/project/publishing.html:155
45624528
#: warehouse/templates/manage/project/release.html:129
4563-
#: warehouse/templates/pages/stats.html:42
4529+
#: warehouse/templates/pages/stats.html:73
45644530
msgid "Project name"
45654531
msgstr ""
45664532

@@ -8861,31 +8827,57 @@ msgid "PyPI statistics"
88618827
msgstr ""
88628828

88638829
#: warehouse/templates/pages/stats.html:23
8864-
msgid ""
8865-
"We all love stats, so here are some useful statistics about PyPI. The "
8866-
"statistics page is cached for 24 hours, so don't expect the numbers to be"
8867-
" realtime."
8830+
msgid "We all love stats, so here are some useful statistics about PyPI."
8831+
msgstr ""
8832+
8833+
#: warehouse/templates/pages/stats.html:28
8834+
msgid "First-party statistics"
88688835
msgstr ""
88698836

88708837
#: warehouse/templates/pages/stats.html:30
8838+
msgid "These statistics are provided directly by PyPI."
8839+
msgstr ""
8840+
8841+
#: warehouse/templates/pages/stats.html:37
8842+
msgid ""
8843+
"PyPI provides public datasets, including download statistics and metadata"
8844+
" via BigQuery"
8845+
msgstr ""
8846+
8847+
#: warehouse/templates/pages/stats.html:42
8848+
msgid "PyPI provides a public dashboard with statistics on usage and performance"
8849+
msgstr ""
8850+
8851+
#: warehouse/templates/pages/stats.html:47
8852+
msgid "Third-party statistics"
8853+
msgstr ""
8854+
8855+
#: warehouse/templates/pages/stats.html:49
8856+
msgid ""
8857+
"These statistics are provided by other third-party services unaffiliated "
8858+
"with PyPI."
8859+
msgstr ""
8860+
8861+
#: warehouse/templates/pages/stats.html:60
88718862
msgid "Top projects by total package size"
88728863
msgstr ""
88738864

8874-
#: warehouse/templates/pages/stats.html:32
8865+
#: warehouse/templates/pages/stats.html:62
88758866
msgid ""
88768867
"Here is a list of the top 100 projects based on the sum of their "
8877-
"packages' sizes (in bytes)."
8868+
"packages' sizes (in bytes). This page is cached for 24 hours, so don't "
8869+
"expect the numbers to be realtime."
88788870
msgstr ""
88798871

8880-
#: warehouse/templates/pages/stats.html:39
8872+
#: warehouse/templates/pages/stats.html:70
88818873
msgid "Statistics by project"
88828874
msgstr ""
88838875

8884-
#: warehouse/templates/pages/stats.html:43
8876+
#: warehouse/templates/pages/stats.html:74
88858877
msgid "Sum of release files (bytes)"
88868878
msgstr ""
88878879

8888-
#: warehouse/templates/pages/stats.html:48
8880+
#: warehouse/templates/pages/stats.html:79
88898881
msgid "All of PyPI"
88908882
msgstr ""
88918883

warehouse/templates/includes/accounts/profile-actions.html

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,4 @@
1414

1515
{% if request.user == user %}
1616
<a href="{{ request.route_path('manage.account') }}" class="button button--primary author-profile__edit-button">{% trans %}Edit profile{% endtrans %}</a>
17-
18-
<div class="sidebar-section">
19-
<h3 class="sidebar-section__title">{% trans %}Statistics{% endtrans %}</h3>
20-
<p>
21-
{% trans libs_io_href='https://libraries.io/', title=gettext('External link'), gbq_href='https://packaging.python.org/guides/analyzing-pypi-package-downloads/' %}
22-
View statistics for your projects via <a href="{{ libs_io_href }}" title="{{ title }}" target="_blank" rel="noopener">Libraries.io</a>, or by using <a href="{{ gbq_href }}" target="_blank" rel="noopener">our public dataset on Google BigQuery</a>
23-
{% endtrans %}
24-
</p>
25-
</div>
26-
{% else %}
27-
<div class="sidebar-section">
28-
<h3 class="sidebar-section__title">{% trans %}Statistics{% endtrans %}</h3>
29-
<p>
30-
{% trans username=user.username, libs_io_href='https://libraries.io/', title=gettext('External link'), gbq_href='https://packaging.python.org/guides/analyzing-pypi-package-downloads/' %}
31-
View statistics for {{ username }}'s projects via <a href="{{ libs_io_href }}" title="{{ title }}" target="_blank" rel="noopener">Libraries.io</a>, or by using <a href="{{ gbq_href }}" target="_blank" rel="noopener">our public dataset on Google BigQuery</a>
32-
{% endtrans %}
33-
</p>
34-
</div>
3517
{% endif %}

warehouse/templates/includes/packaging/project-data.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ <h6>{% trans %}GitHub Statistics{% endtrans %}</h6>
102102
</ul>
103103
</div>
104104
{% endif %}
105-
<p>
106-
{% trans libs_io_href='https://libraries.io/pypi/{project_name}'.format(project_name=release.project.name), gbq_href='https://packaging.python.org/guides/analyzing-pypi-package-downloads/', title=gettext('External link') %}
107-
View statistics for this project via <a href="{{ libs_io_href }}" title="{{ title }}" target="_blank" rel="noopener">Libraries.io</a>, or by using <a href="{{ gbq_href }}" target="_blank" rel="noopener">our public dataset on Google BigQuery</a>
108-
{% endtrans %}
109-
</p>
110105

111106
{% if release.has_meta %}
112107
<div class="sidebar-section">

warehouse/templates/pages/stats.html

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,47 @@ <h1 class="page-title">{% trans %}PyPI statistics{% endtrans %}</h1>
2222
<p>
2323
{% trans %}
2424
We all love stats, so here are some useful statistics about PyPI.
25-
The statistics page is cached for 24 hours, so don't expect the
26-
numbers to be realtime.
2725
{% endtrans %}
2826
</p>
2927

28+
<h2>{% trans %}First-party statistics{% endtrans %}</h2>
29+
<p>
30+
{% trans %}
31+
These statistics are provided directly by PyPI.
32+
{% endtrans %}
33+
</p>
34+
<ul>
35+
<li>
36+
<a href="https://warehouse.pypa.io/api-reference/bigquery-datasets.html">
37+
{% trans %}PyPI provides public datasets, including download statistics and metadata via BigQuery{% endtrans %}
38+
</a>
39+
</li>
40+
<li>
41+
<a href="https://p.datadoghq.com/sb/7dc8b3250-85dcf667bd">
42+
{% trans %}PyPI provides a public dashboard with statistics on usage and performance{% endtrans %}
43+
</a>
44+
</li>
45+
</ul>
46+
47+
<h2>{% trans %}Third-party statistics{% endtrans %}</h2>
48+
<p>
49+
{% trans %}
50+
These statistics are provided by other third-party services unaffiliated with PyPI.
51+
{% endtrans %}
52+
</p>
53+
<ul>
54+
<li><a href="https://libraries.io/pypi">https://libraries.io/pypi</a></li>
55+
<li><a href="https://pypistats.org/">https://pypistats.org/</a></li>
56+
<li><a href="https://deps.dev/">https://deps.dev/</a></li>
57+
<li><a href="https://clickpy.clickhouse.com/">https://clickpy.clickhouse.com/</a></li>
58+
</ul>
59+
3060
<h2>{% trans %}Top projects by total package size{% endtrans %}</h2>
3161
<p>
3262
{% trans %}
3363
Here is a list of the top 100 projects based on the sum of their
34-
packages' sizes (in bytes).
64+
packages' sizes (in bytes). This page is cached for 24 hours, so don't
65+
expect the numbers to be realtime.
3566
{% endtrans %}
3667
</p>
3768

0 commit comments

Comments
 (0)