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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ukrdc_stats-2.13.7.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.12.13 Linux/6.17.0-1010-azure

File hashes

Hashes for ukrdc_stats-2.13.7.tar.gz
Algorithm Hash digest
SHA256 12e97c5145a1aea599e703ecc95e32dc5da74bf7350c8ef6ffd10cf1ef2175eb
MD5 9f3382fae2d4b6dc7ecd0d536a167102
BLAKE2b-256 83f6927618dc401630e6513bacef82a8fe17b4896b965218ae37a0a2e7c8737f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ukrdc_stats-2.13.7-py3-none-any.whl
Algorithm Hash digest
SHA256 37fa654dfd462a99766d70611dc9b74bacc53f19cf135a3b0b4a8e8f4c54b5df
MD5 deafcf8c866db0acdc42aa15596c6612
BLAKE2b-256 6a58b6599c3da6f52b0646960d16fd90e466b37956e61d5031c600e771943989

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