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
ukrdc_stats-1.1.1.tar.gz
(15.8 kB
view details)
Built Distribution
File details
Details for the file ukrdc_stats-1.1.1.tar.gz
.
File metadata
- Download URL: ukrdc_stats-1.1.1.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 013bd8daa822fd65350f080278c8ea304cf5abbf88555a3031e4d00f19f7b3a3 |
|
MD5 | 7c22479d94fd98eb7448d366cb7e6584 |
|
BLAKE2b-256 | 8304b158f4803f13aad71fa080449e8b96ca0b70dadabc2d55307a263e349357 |
File details
Details for the file ukrdc_stats-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: ukrdc_stats-1.1.1-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e7077665deb15519ed9ab5909ce885c59587b83f1480fe93fb4879a526280bf |
|
MD5 | 5d525ea1be18233d2a5a6bf01f0c12c5 |
|
BLAKE2b-256 | 5a1f08a944548f52fb433f17f8880843c71ec083d38f8810ad587578ee8c355b |