GitXplorerGitXplorer
A

download-stats

public
10 stars
2 forks
0 issues

Commits

List of commits on branch stable.
Unverified
c2269eb963096bb4e45a4cc0bbc1583e8311ae36

bump: 2.0.1

AAbdur-rahmaanJ committed 3 months ago
Unverified
a84ad7707d9d94909c8fef824bd05620effad56e

chore: Add py3.13

AAbdur-rahmaanJ committed 3 months ago
Unverified
b732ffeb0fc94e824f9ca596a45eda10ea11a27e

docs: update pepy.tech api key

AAbdur-rahmaanJ committed 9 months ago
Unverified
f3162ecb8a10f47cc56b1e1c8e7bfa5003076406

bump: 2.0.0

AAbdur-rahmaanJ committed 9 months ago
Unverified
9241470ddd9bccc192fd78a9cee84ddc13237523

chore: Add compatibility for python3.12

AAbdur-rahmaanJ committed 9 months ago
Unverified
9c11de41a9b7fe1dc309b13c7fc0f13602c29815

chore: remove selenium from package

AAbdur-rahmaanJ committed 9 months ago

README

The README file for this repository.

download-stats

View your pypi download stats

Note: Please register for a pepy.tech api key. Add it to the environemnt variable PEPY_API_KEY.

cli

$ download-stats shopyo

$ download-stats --compare flask django fastapi

$ download-stats --self # same as `download-stats download-stats`

Total downloads

$ download-stats --total hooman shopyo download-stats meteomoris newsmoris shopcube honeybot jamstack

general

>>> from download_stats import stats 
>>> stats('shopyo')
{
    "total": "41327",
    "30_days": "1484",
    "7_days": "506",
    "by_version": [
        ["Date", "4.5.7", "4.5.8", "4.6.0", "Sum", "Total"],
        ["2022-09-01", "0", "1", "3", "4", "24"],
        ["2022-08-31", "2", "1", "17", "20", "126"],
        ...
        ["2022-06-04", "0", "0", "0", "0", "9"],
    ],
}

recent

>>> from download_stats import recent                                                                          
>>> recent('shopyo') 
{
    "data": {"last_day": 23, "last_month": 454, "last_week": 142},
    "package": "shopyo",
    "type": "recent_downloads",
}

version

>>> from download_stats import version
>>> version('shopyo')
{
    "data": [
        {"category": "3", "date": "2022-03-06", "downloads": 1},
        ...
        {"category": "null", "date": "2022-08-31", "downloads": 55},
    ],
    "package": "shopyo",
    "type": "python_major_downloads",
}
>>> version('shopyo', version=3.9)
{
    "data": [
        {"category": "3.9", "date": "2022-03-12", "downloads": 1},
        {"category": "3.9", "date": "2022-03-18", "downloads": 15},
        ...
        {"category": "3.9", "date": "2022-08-29", "downloads": 2},
    ],
    "package": "shopyo",
    "type": "python_minor_downloads",
}

system

>>> from download_stats import system
>>> system('shopyo')
{
    "data": [
        {"category": "Darwin", "date": "2022-03-21", "downloads": 1},
        ...
        {"category": "Windows", "date": "2022-08-22", "downloads": 2},
    ],
    "package": "shopyo",
    "type": "system_downloads",
}
>>> system('shopyo', name='linux')
{
    "data": [
        {"category": "Linux", "date": "2022-03-08", "downloads": 1},
        ...
        {"category": "Linux", "date": "2022-08-31", "downloads": 3},
    ],
    "package": "shopyo",
    "type": "system_downloads",
}