hugovk / pypi-tools

Command-line Python scripts to do things with PyPI
https://hugovk.github.io/pypi-tools
23 stars 2 forks source link

Add pypistats #6

Closed hugovk closed 5 years ago

hugovk commented 5 years ago

pypinfo output (prettified):

{
  "last_update": "2018-10-01 07:43:19", 
  "query": {
    "bytes_billed": 40791703552, 
    "bytes_processed": 40790964510, 
    "cached": false, 
    "estimated_cost": "0.19"
  }, 
  "rows": [
    {
      "download_count": 1491518, 
      "percent": "0.47", 
      "python_version": "2.7"
    }, 
...
    {
      "download_count": 18, 
      "percent": "5.7e-06", 
      "python_version": "None"
    }
  ]
}

pypistats output (prettified):

{
  "data": [
    {
      "category": "2.6", 
      "downloads": 287
    }, 
...
    {
      "category": "null", 
      "downloads": 24816
    }
  ], 
  "package": "matplotlib", 
  "type": "python_minor_downloads"
}

TODO