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.3.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.3-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ukrdc_stats-2.13.3.tar.gz
Algorithm Hash digest
SHA256 fd883180be52885852fef9a66c288f0d528bb2b21e732ca8a46d20724ede0ba6
MD5 3e47cbd78fd2fc911c1e221604ea556e
BLAKE2b-256 5080abd9a4d9395eea16dfb8e46ed8e22edee6f754b4c5e339a516d20d9e5540

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ukrdc_stats-2.13.3-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.12 Linux/6.14.0-1017-azure

File hashes

Hashes for ukrdc_stats-2.13.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b0414e63aea260b241ebac0c91319e058a0d95c577a3b43fc91a639e9d8cb65b
MD5 c6a6f41c1de7813169680495283d5c6c
BLAKE2b-256 c2d58960d2a1c44e321c446b6b57a99ecbc960d95ce6a6c12c3e3399fc508b4e

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