{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/warehouse/issues/699","repository_url":"https://api.github.com/repos/pypa/warehouse","labels_url":"https://api.github.com/repos/pypa/warehouse/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/pypa/warehouse/issues/699/comments","events_url":"https://api.github.com/repos/pypa/warehouse/issues/699/events","html_url":"https://github.com/pypa/warehouse/issues/699","id":108473738,"number":699,"title":"Support for package download stats","user":{"login":"schollii","id":2598808,"avatar_url":"https://avatars2.githubusercontent.com/u/2598808?v=4","gravatar_id":"","url":"https://api.github.com/users/schollii","html_url":"https://github.com/schollii","followers_url":"https://api.github.com/users/schollii/followers","following_url":"https://api.github.com/users/schollii/following{/other_user}","gists_url":"https://api.github.com/users/schollii/gists{/gist_id}","starred_url":"https://api.github.com/users/schollii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schollii/subscriptions","organizations_url":"https://api.github.com/users/schollii/orgs","repos_url":"https://api.github.com/users/schollii/repos","events_url":"https://api.github.com/users/schollii/events{/privacy}","received_events_url":"https://api.github.com/users/schollii/received_events","type":"User","site_admin":false},"labels":[{"id":236187204,"url":"https://api.github.com/repos/pypa/warehouse/labels/design","name":"design","color":"5319e7","default":false},{"id":378919429,"url":"https://api.github.com/repos/pypa/warehouse/labels/feature%20request","name":"feature request","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pypa/warehouse/milestones/11","html_url":"https://github.com/pypa/warehouse/milestone/11","labels_url":"https://api.github.com/repos/pypa/warehouse/milestones/11/labels","id":2964656,"number":11,"title":"Cool but not urgent","description":"Wishlist; not part of the critical path for shutting down legacy PyPI.","creator":{"login":"brainwane","id":842790,"avatar_url":"https://avatars0.githubusercontent.com/u/842790?v=4","gravatar_id":"","url":"https://api.github.com/users/brainwane","html_url":"https://github.com/brainwane","followers_url":"https://api.github.com/users/brainwane/followers","following_url":"https://api.github.com/users/brainwane/following{/other_user}","gists_url":"https://api.github.com/users/brainwane/gists{/gist_id}","starred_url":"https://api.github.com/users/brainwane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainwane/subscriptions","organizations_url":"https://api.github.com/users/brainwane/orgs","repos_url":"https://api.github.com/users/brainwane/repos","events_url":"https://api.github.com/users/brainwane/events{/privacy}","received_events_url":"https://api.github.com/users/brainwane/received_events","type":"User","site_admin":false},"open_issues":33,"closed_issues":3,"state":"open","created_at":"2017-12-07T14:47:46Z","updated_at":"2018-02-17T01:48:52Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-09-26T14:59:47Z","updated_at":"2018-02-17T01:52:34Z","closed_at":null,"author_association":"NONE","body":"Make Download Stats available for each release of a package, based on when, from where, and if possible for which OS (as determined, perhaps, by web browser, if the release data doesn't specify this). It would be nice if there were also a stats page for the package as a whole, representing sum total of all releases of the package; even nicer, if the author had a way of selecting which releases to consider as part of \"package stats\", because some release may not be directly relevant (dev snapshots, data, docs, etc).  \n## Stats page\n\nStats page should give user a way to choose a specific release for which to get stats, or choose \"package\" in which case the stats are the sum total of all releases ie the package as a whole. The stats page for each release should also be reachable via a Releases page where all releases are shown (with presumably info about when each one was created, their OS if specific, and any other relevant info, but this is not part of this issue). Page should make it easy to choose which stats: downloads vs time, or vs location, or vs OS.\n### Downloads vs time\n\nIt would be nice if Stats page could by default show a plot of downloads vs time for chosen release, one plot line per OS, and a Totals line. The user should be allowed to select the time period for the stats: last 12 months, last 30 days, since beginning, etc; and the bin size: months, weeks, hours. The default bin size could be based on length of period: if package has been around for 10 years, default bin size is 1 year; if been around for 10 months, default monthly, etc. It would be nice to select which lines to show/hide (for example, in the legend box, via checkboxes). \n\nUnder the plot on same page, there should be a table of data for the chosen period, bin size, with a breakdown per OS, and total. \n\nPage example: \n\n```\nPeriod: Last 12 months (drop down)\nTime bin: monthly (drop down)\n\nGraph:\n---------------------------------------------------\n\n  plot of lines, 1 line/OS and 1 line for Total\n\n---------------------------------------------------\n\nData:\n---------------------------------------------------\nMonth         Windows   Linux   Android     ...    Total\nMarch 2014       23       54       1        ...      123\nFeb 2014         34       17       7        ...      154\n```\n\nThe default sort order could be from most recent to oldest, but it would be nice to have ability to reverse sort order. It would be nice to be able to sort on a different column (which would answer question \"for windows OS, the most downloads were <this month of this year>\"), but this is less important than sort order.\n### Downloads vs location\n\nStats page should allow user to choose \"downloads vs location\" instead: this could show a world view image (flattened earth) with a \"heat\" map based on downloads by country (so each country is a tile on the map; tiles are shaped by country). It should be possible to choose the time period for which to show heat: last 12 month, last 30 days, since released, or choose a specific date range. It should be possible to choose bin size (split monthly, weekly etc). Same as downloads vs time page, a table below shows corresponding data.  \n\nPage example: \n\n```\nPeriod: Since released (drop down)\nTime bin: year (drop down)\n\nGraph:\n---------------------------------------------------\n\ndowload location heat map (tiled image or or such)\n\n---------------------------------------------------\n\nData:\n---------------------------------------------------\nMonth      US     Canada   Germany     ...    Total\n2014       100       10       2        ...      123\n2013       90        9        1        ...      154\n---------------------------------------------------\n```\n### Downloads vs OS\n\nStats page could allow user to choose \"download by OS\" instead, but if the download vs time page shows OS columns, this is not as important. A pie chart or bar graph (ability to choose which type), with default being pie. It should be possible to choose the time period for which to show heat: last 12 month, last 30 days, today, since released, or choose a specific date range. \n"},"comment":{"url":"https://api.github.com/repos/pypa/warehouse/issues/comments/366406178","html_url":"https://github.com/pypa/warehouse/issues/699#issuecomment-366406178","issue_url":"https://api.github.com/repos/pypa/warehouse/issues/699","id":366406178,"user":{"login":"brainwane","id":842790,"avatar_url":"https://avatars0.githubusercontent.com/u/842790?v=4","gravatar_id":"","url":"https://api.github.com/users/brainwane","html_url":"https://github.com/brainwane","followers_url":"https://api.github.com/users/brainwane/followers","following_url":"https://api.github.com/users/brainwane/following{/other_user}","gists_url":"https://api.github.com/users/brainwane/gists{/gist_id}","starred_url":"https://api.github.com/users/brainwane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainwane/subscriptions","organizations_url":"https://api.github.com/users/brainwane/orgs","repos_url":"https://api.github.com/users/brainwane/repos","events_url":"https://api.github.com/users/brainwane/events{/privacy}","received_events_url":"https://api.github.com/users/brainwane/received_events","type":"User","site_admin":false},"created_at":"2018-02-17T01:52:34Z","updated_at":"2018-02-17T01:52:34Z","author_association":"COLLABORATOR","body":"I should add here a comment similar to what I said in #188: if I understand correctly, there may be technical or policy difficulties in sniffing out what OS users are using, and in properly indicating that sometimes the sample size is really small or temporally discontinuous in important ways (e.g., if it turns out that most historical data does not have the attributes we'd need to measure). But I'm interested in hearing more about how this could work!"}}
{"actor":{"display_login":"brainwane"}}