Download graph for a pypi library

20 views
Skip to first unread message

alonn

unread,
Aug 12, 2025, 11:20:39 AMAug 12
to PyWeb-IL
I'm looking for a way to get the download graph overtime for a pypi library (tenacity, for example sake) ? there used to pypi stats website and Pypiplot library but both seem broken - any new place for this kind of stuff?

Miki Tebeka

unread,
Aug 16, 2025, 12:46:50 AMAug 16
to pyweb-il
They host their stats on BigQuery


On Tue, 12 Aug 2025, 18:20 alonn, <alon...@gmail.com> wrote:
I'm looking for a way to get the download graph overtime for a pypi library (tenacity, for example sake) ? there used to pypi stats website and Pypiplot library but both seem broken - any new place for this kind of stuff?

--
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyweb-il+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pyweb-il/76be69fc-2d48-43df-a5d1-63de4e86a2ddn%40googlegroups.com.

Yehuda Deutsch

unread,
Aug 16, 2025, 12:46:59 AMAug 16
to pywe...@googlegroups.com
The data is in a BigQuery public dataset, you can create whatever plot you need using the data
Or you can use something like this to generate html graphs: https://pypi.org/project/pypi-download-stats/
----
Yehuda Deutsch | Software Developer


On Tue, Aug 12, 2025 at 11:20 AM alonn <alon...@gmail.com> wrote:
I'm looking for a way to get the download graph overtime for a pypi library (tenacity, for example sake) ? there used to pypi stats website and Pypiplot library but both seem broken - any new place for this kind of stuff?

--

Yonatan Bitton

unread,
Aug 16, 2025, 12:47:10 AMAug 16
to pywe...@googlegroups.com
Hey Alon,

You can use the Google BigQuery that stores all PyPi downloads statistics.

Link - 

Query -
-- query to get downloads of tenacity pypi package overtime, count per day in last months
SELECT
  DATE(timestamp) AS download_date,
  COUNT(*) AS download_count
FROM
  `bigquery-public-data`.`pypi`.`file_downloads`
WHERE
  PROJECT = 'tenacity'
  AND timestamp >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 30 DAY)
  AND timestamp < CURRENT_TIMESTAMP()
GROUP BY
  download_date
ORDER BY
  download_date;

Results for last 30 days - 

image.png


Yonatan



בתאריך יום ג׳, 12 באוג׳ 2025, 18:20, מאת alonn ‏<alon...@gmail.com>:
I'm looking for a way to get the download graph overtime for a pypi library (tenacity, for example sake) ? there used to pypi stats website and Pypiplot library but both seem broken - any new place for this kind of stuff?

--
Message has been deleted

alonn

unread,
Aug 20, 2025, 12:43:33 AMAug 20
to PyWeb-IL
Thanks! 
Reply all
Reply to author
Forward
0 new messages