A package to produce stats from the ukrdc database to be displayed on the dashboard
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ukrdc_stats-2.0.0.tar.gz.
File metadata
- Download URL: ukrdc_stats-2.0.0.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c59476f74b234223dda3ea41f1ed3e5ab641e945dc2e0b8502d80e7b8a81b273
|
|
| MD5 |
c83448653b621da2d79936c20e7175a2
|
|
| BLAKE2b-256 |
dd69ddc545b356ee7e7f97786828915a29f8da2e1e70e70cdd35af47adb75d58
|
File details
Details for the file ukrdc_stats-2.0.0-py3-none-any.whl.
File metadata
- Download URL: ukrdc_stats-2.0.0-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc79054c550cddce96a40a0770b51b31527a32682aad89e2133d6ec9b93660a2
|
|
| MD5 |
f9ab390cdabab2a3baa1c52575ca18a9
|
|
| BLAKE2b-256 |
3d35c065192eb09f32ba4f3e5353f41dee054fe4f9b7750b8613ee0cfee5f229
|