Some time ago, I wanted to do something about PyPI download counts for making trending lists, but I couldn’t find a usable data source anywhere. Wish I have thought about graphing a bar chart at least like pipstat:
$ pipstat smartypants Fetching statistics for 'smartypants'. . . Download statistics for smartypants =================================== Downloads by version 1.6.0.2 [ 2,607 ] * 1.6.0.3 [ 62,950 ] ******************************** 1.7.0 [ 1,187 ] 1.7.1 [ 4,799 ] ** 1.8.0 [ 1,306 ] 1.8.1 [ 1,488 ] 1.8.2 [ 7,214 ] *** 1.8.3 [ 18,969 ] ********* Min downloads: 1,187 (1.7.0) Max downloads: 62,950 (1.6.0.3) Avg downloads: 12,565 Total downloads: 100,520
Things are aligned, the output is quite clean to my taste, thousands separator is used, statistics is easy to read and understand.
$ pipstat b.py Fetching statistics for 'b.py'. . . Download statistics for b.py ============================ Downloads by version 0.2 [ 905 ] ************************* 0.3 [ 861 ] *********************** 0.3.1 [ 833 ] *********************** 0.4 [ 795 ] ********************** 0.4.1 [ 637 ] ***************** 0.5.0 [ 445 ] ************ 0.5.1 [ 477 ] ************* 0.5.2 [ 491 ] ************* 0.6.0 [ 455 ] ************ 0.6.1 [ 1,236 ] ********************************** 0.6.2 [ 1,235 ] ********************************** 0.7.0 [ 941 ] ************************** Min downloads: 445 (0.5.0) Max downloads: 1,236 (0.6.1) Avg downloads: 775 Total downloads: 9,311
Simple bar chart by downloads of versions, and the statistics in the end. Not really sure if it’s useful, but the package owner can watch the counts as they please. It could be nice to have it run as cron weekly or even monthly and send charts to your mailbox.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.