Skip to main content

Unified Vaccine Nomenclature (NUVA) Python SDK

Project description

NUVA Python SDK

The Unified Vaccine Nomenclature (NUVA) Python SDK provides a comprehensive interface for working with vaccine nomenclature data. It's designed to aggregate vaccination histories from both digital and physical sources and build interpretable vaccination records for information systems.

Installation

pip install nuva-sdk

Quick Start

from nuva import Nuva

# Load the latest NUVA database
nuva = Nuva.load(lang='en')

# Access repositories
vaccines = nuva.repositories.vaccines.all()
valences = nuva.repositories.valences.all()
diseases = nuva.repositories.diseases.all()

# Find specific items
vaccine = nuva.repositories.vaccines.find('vaccine_id')
valence = nuva.repositories.valences.find('valence_id')
disease = nuva.repositories.diseases.find('disease_id')

# Use queries for advanced searches
valences_for_vaccine = nuva.queries.valences_by_vaccine.call(vaccine)
vaccines_for_disease = nuva.queries.vaccines_by_disease.call(disease)

Core Concepts

Repositories

The library provides three main repositories:

  • vaccines: Access to vaccine data
  • valences: Access to valence (functional units) data
  • diseases: Access to target disease data

Each repository exposes two methods:

  • all(): Retrieve the entire collection
  • find(id): Retrieve a specific element by its identifier

Queries

For advanced searches, the library provides query objects:

  • valences_by_vaccine: Find valences for a given vaccine
  • vaccines_by_disease: Find vaccines targeting a specific disease
  • vaccines_by_valence: Find vaccines containing a specific valence
  • valences_by_disease: Find valences targeting a specific disease
  • diseases_by_vaccine: Find diseases targeted by a vaccine
  • diseases_by_valence: Find diseases targeted by a valence

Loading Data

You can load NUVA data in two ways:

  1. From CDN (recommended):
nuva = Nuva.load(lang='en')  # Supports: en and fr
  1. From local file:
nuva = Nuva.load_from_file('path/to/database.db')

License

This project is licensed under the MIT License.

Contributing

Please see the main NUVA repository for contribution guidelines.

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

nuva_sdk-1.0.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nuva_sdk-1.0.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file nuva_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: nuva_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for nuva_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2f81236ee3cdb39f7a38a2c34de935e596051887ddc3abf5ed2ca5e1ff0e4f80
MD5 9c3a6b787e22a6797d0bd9ecc0b838dd
BLAKE2b-256 e00e9ca387b05d284bc6cb8dc2eec0e6d53b33afff3561c3f65f3579214040fd

See more details on using hashes here.

File details

Details for the file nuva_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nuva_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for nuva_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7de9a4b02c8367b71793e1e671e6b821a40b62083bca62045883567e471858b
MD5 ea717c65bbd5b5f83dea71735e256eb4
BLAKE2b-256 c36cfa8b8c971097777cdd6f4088d079c3206b6d7ea30917579bf4fac7295448

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