Dashboard Statistics Library
Library for generating statistics for the UKRDC dashboard
Installation
pip install ukrdc-stats
Basic usage
Statistics calculations require an SQLAlchemy session with a connection to the UKRDC3 database.
In this example, we use ukrdc3_session, and calculate for the unit code "TEST_UNIT".
from ukrdc_stats import DemographicStatsCalculator
demographics = DemographicStatsCalculator(ukrdc3, "TEST_UNIT").extract_stats()
Each calculator returns multiple stats from the same cohort, and each of those includes basic metadata required for rendering and plotting the data.
Metadata
Release files for ukrdc-stats 2.14.2
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 |
|---|---|---|---|---|
| ukrdc_stats-2.14.2.tar.gz | 31.8 kB | Without provenance | Details for ukrdc_stats-2.14.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ukrdc_stats-2.14.2-py3-none-any.whl | Python 3 | none | any | Details for ukrdc_stats-2.14.2-py3-none-any.whl |
Total release size: 70.1 kB
Release files / ukrdc_stats-2.14.2.tar.gz
| Download URL | ukrdc_stats-2.14.2.tar.gz |
|---|---|
| Size | 31.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb3a6eb058f093c1338eadbf063166c7590dcdab69537d8e7e8a3e419c6d756a
|
|
BLAKE2b-256 checksum How to use checksums |
c8e042a732c83308003b40d4c8e0e3405af112fdc39aff00d2b3a78090512541
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.12.15 Linux/7.0.0-1017-azure
|
Release files / ukrdc_stats-2.14.2-py3-none-any.whl
| Download URL | ukrdc_stats-2.14.2-py3-none-any.whl |
|---|---|
| Size | 38.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
612a05c71cd5985fa95bf7bae631935157b1931fac7a69e4624974d759872862
|
|
BLAKE2b-256 checksum How to use checksums |
f2590be037b41b6aa92a6bb1fe2c66b01b6a581a24b949265fb7df125441e8c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.12.15 Linux/7.0.0-1017-azure
|
Security for ukrdc-stats 2.14.2
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.