python-popcon
Get Debian popularity contest values for given packages.
Installation
$ pip install popcon
Usage
The usage of this module is easy:
>>> import popcon
>>> popcon.packages(['reportbug-ng'])
{'reportbug-ng': 323}
>>> popcon.packages(['reportbug-ng', 'reportbug'])
{'reportbug-ng': 323, 'reportbug': 75065}
The raw data (vote, old, recent, no-file) is also available, the sum of the raw
numbers is the number of installations as reported by popcon.package.
>>> popcon.packages_raw(['reportbug-ng', 'reportbug'])
{'reportbug-ng': Package(vote=50, old=187, recent=86, no_files=0),
'reportbug': Package(vote=5279, old=59652, recent=10118, no_files=16)}
Behind the scene popcon will try to use cached information saved in a file in
the ~/.cache/popcon directory. If the relevant file is not available, or older
than EXPIRY seconds (default is 7 days) it will download fresh data and save
that.
The cached data will be kept in memory unless KEEP_DATA is set to False.
Command Line Interface
popcon reportbug python
PACKAGE VALUE
reportbug 180558
python 110709
it also supports a more verbose mode on the command line:
popcon --verbose reportbug python
PACKAGE VOTE OLD RECENT NO FILES
reportbug 5929 149243 25315 71
python 3985 103591 3066 67
Metadata
Release files for python-popcon 3.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-popcon-3.0.3.tar.gz | 12.0 kB | Without provenance | Details for python-popcon-3.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_popcon-3.0.3-py3-none-any.whl | Python 3 | none | any | Details for python_popcon-3.0.3-py3-none-any.whl |
Total release size: 25.3 kB
Release files / python-popcon-3.0.3.tar.gz
| Download URL | python-popcon-3.0.3.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd7d786392cc5af0d46dab5fdf94bddda3d2e367d7d47a4a71f198c555e3f734
|
|
BLAKE2b-256 checksum How to use checksums |
2cd58cee954fe04cff536e95e79a4bb7eeda10dadfa324ae1b31bb1b4b4c8e62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.5
|
Release files / python_popcon-3.0.3-py3-none-any.whl
| Download URL | python_popcon-3.0.3-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a03058a776557759ef76c4ed89c3a93708e9eda2dfe20a72e60e2d4da4ed724a
|
|
BLAKE2b-256 checksum How to use checksums |
0cd96a7de1b4173dd3228f58c2e8608f66dfe6af50bb5082d6c0b040978042a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.5
|
Security for python-popcon 3.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.