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.11.0.tar.gz (29.0 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.11.0-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ukrdc_stats-2.11.0.tar.gz
Algorithm Hash digest
SHA256 80aa6f67cf38d17501ae1e15c71b09f3fb760af7c47082b2b812ddc3308564bb
MD5 f661afba0f40098ea7ee4ef7dbb8f4b3
BLAKE2b-256 f710f3ba414261dbfe1f06ca48ebe3245114f17c20c9d670d5cd71fd462bd531

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ukrdc_stats-2.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d423eb67f69d26b8c97452ed5776526cdf3ef647d84272517c321eb20c6c7b23
MD5 80577663b7c69ef9494204e6bbd404be
BLAKE2b-256 4721f83cbee842f105a935025b6d051e4c00036e63e249a23bd170b1be7513bd

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