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.7.0.tar.gz (27.3 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.7.0-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ukrdc_stats-2.7.0.tar.gz
Algorithm Hash digest
SHA256 047da1f234a6c9c8ae15f693f9de73390a1302215d4950857b15cedbc02d2537
MD5 b0825be723a1eb5383af423d74032708
BLAKE2b-256 bc95fda6935aa90f400220807eed571cbfeaabf278978633b5aba33d30027cd4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ukrdc_stats-2.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c6d8052f1a8c92a1ea6273a0550c19cc6f938798e4ec4f27ef492fc26305885
MD5 755ff62c19c7dae394be6d289ea9a259
BLAKE2b-256 cf1cd065ce64b4e87f1996087353cf8b0b8787e5bd6bcc88bdc89ec7cf138d9e

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