mirror of
https://github.com/LukeHagar/pypistats.org.git
synced 2025-12-06 04:21:09 +00:00
data retention to 180 days
This commit is contained in:
@@ -22,7 +22,7 @@ SYSTEMS = ("Windows", "Linux", "Darwin")
|
|||||||
PSQL_TABLES = ["overall", "python_major", "python_minor", "system"]
|
PSQL_TABLES = ["overall", "python_major", "python_minor", "system"]
|
||||||
|
|
||||||
# Number of days to retain records
|
# Number of days to retain records
|
||||||
MAX_RECORD_AGE = 120
|
MAX_RECORD_AGE = 180
|
||||||
|
|
||||||
|
|
||||||
def get_google_credentials():
|
def get_google_credentials():
|
||||||
@@ -415,7 +415,7 @@ def etl():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
date = "2018-06-06"
|
date = "2018-07-28"
|
||||||
env = "prod"
|
env = "prod"
|
||||||
print(date, env)
|
print(date, env)
|
||||||
print(get_daily_download_stats(env, date))
|
print(get_daily_download_stats(env, date))
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<a href="https://bigquery.cloud.google.com/table/the-psf:pypi.downloads">download stats</a>
|
<a href="https://bigquery.cloud.google.com/table/the-psf:pypi.downloads">download stats</a>
|
||||||
on Google BigQuery. All aggregate download stats ignore known PyPI mirrors (such as
|
on Google BigQuery. All aggregate download stats ignore known PyPI mirrors (such as
|
||||||
<a href="{{url_for('general.package', package='bandersnatch')}}">bandersnatch</a>) unless noted otherwise.</p>
|
<a href="{{url_for('general.package', package='bandersnatch')}}">bandersnatch</a>) unless noted otherwise.</p>
|
||||||
<p>PyPI Stats attempts to operate within the free tier of its hosted services. For this reason, aggregate data is only retained for 120 days.</p>
|
<p>PyPI Stats attempts to operate within the free tier of its hosted services. For this reason, aggregate data is only retained for 180 days.</p>
|
||||||
<h3>API</h3>
|
<h3>API</h3>
|
||||||
<p>A simple
|
<p>A simple
|
||||||
<a href="{{url_for('api.api')}}">JSON API</a>
|
<a href="{{url_for('api.api')}}">JSON API</a>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>All download stats exclude known mirrors (such as
|
<li>All download stats exclude known mirrors (such as
|
||||||
<a href="{{ url_for('general.package', package='bandersnatch')}}">bandersnatch</a>) unless noted otherwise.</li>
|
<a href="{{ url_for('general.package', package='bandersnatch')}}">bandersnatch</a>) unless noted otherwise.</li>
|
||||||
<li>Time series data is retained only for 120 days.</li>
|
<li>Time series data is retained only for 180 days.</li>
|
||||||
<li>All download data is updated once daily.</li>
|
<li>All download data is updated once daily.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user