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.12.0.tar.gz (30.9 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.12.0-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ukrdc_stats-2.12.0.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.9.25 Linux/6.11.0-1018-azure

File hashes

Hashes for ukrdc_stats-2.12.0.tar.gz
Algorithm Hash digest
SHA256 6a3f62ab55859a4470cf98717037e96b5abc6fb7e32f68358d51326307f16029
MD5 0685956649a8f9f3b9acafb88c38469b
BLAKE2b-256 692a3a4e7e4fd0eeb417f3a99abaa19e85cf651474895ac71beedf04b2d18f1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ukrdc_stats-2.12.0-py3-none-any.whl
  • Upload date:
  • Size: 37.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.9.25 Linux/6.11.0-1018-azure

File hashes

Hashes for ukrdc_stats-2.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9947ef28a90cb8c41723dc73de158507b2d4542999aca3ad82729d2670d3e6be
MD5 b1a05f8bf4cec861d4e3314569802d9f
BLAKE2b-256 808d29b5774c4c3c9c0ccb1ee5ae2e4a83e1a44718efd37ed5117e33e7048397

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