Skip to main content

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


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-2.13.4.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ukrdc_stats-2.13.4-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

Details for the file ukrdc_stats-2.13.4.tar.gz.

File metadata

  • Download URL: ukrdc_stats-2.13.4.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.13 Linux/6.14.0-1017-azure

File hashes

Hashes for ukrdc_stats-2.13.4.tar.gz
Algorithm Hash digest
SHA256 65fb852748edda2cfa44d936b3cda12a80975acc4e34c3b623d88ea380048c7f
MD5 466e43888c3123c0ddcb9f90756e2fd5
BLAKE2b-256 fa6124275c6e5e5686bd6068fc3e75b6a454b61841772c0971d4103fb80d3b39

See more details on using hashes here.

File details

Details for the file ukrdc_stats-2.13.4-py3-none-any.whl.

File metadata

  • Download URL: ukrdc_stats-2.13.4-py3-none-any.whl
  • Upload date:
  • Size: 38.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.13 Linux/6.14.0-1017-azure

File hashes

Hashes for ukrdc_stats-2.13.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d710c3bf11dcc5b023e1e9c52189023168e3f708f973ce2fae56dbf112d10065
MD5 fa64743d40cc3442eca42697899d6894
BLAKE2b-256 74a5b535fae5f0023dc95a449bf3273bbcba29a58d033a7ef3fd1f9d81e16d94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page