Skip to main content

A modular project with a core library and multiple adapters

Project description

pypeh

pypeh is a lightweight ETL and data-ops toolkit for Personal Exposure and Health (PEH) data.

It helps you:

  • work with PEH-model resources in Python
  • load/transform/validate PEH study data
  • support FAIR data workflows (findable, accessible, interoperable, reusable)

The toolkit is built to interact with the PEH model from PARC:

Install

Core package:

uv pip install pypeh

With dataframe adapter extras (Polars-based workflows):

uv pip install "pypeh[dataframe-adapter]"

Basic Usage

from pypeh import Session

# Start a session
session = Session()
# Load PEH model resources (e.g. YAML configs) into cache
session.load_persisted_cache(source="config")
# Load tabular data as a DatasetSeries using a DataImportConfig from cache
data_import_config = session.cache.get("<data_import_config_id>", "DataImportConfig")
dataset_series = session.load_tabular_dataset_series(
    source="my_data.xlsx",
    data_import_config=data_import_config,
)

From there you can use adapters for:

  • validation
  • enrichment (derived variables)
  • aggregation
  • export/persistence

Run Tests

make test-core
make test-dataframe
make test-rocrate

Documentation

Build the static documentation site with MkDocs:

make docs

Preview it locally:

make docs-serve

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

pypeh-0.3.2.tar.gz (74.2 kB view details)

Uploaded Source

Built Distribution

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

pypeh-0.3.2-py3-none-any.whl (90.3 kB view details)

Uploaded Python 3

File details

Details for the file pypeh-0.3.2.tar.gz.

File metadata

  • Download URL: pypeh-0.3.2.tar.gz
  • Upload date:
  • Size: 74.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pypeh-0.3.2.tar.gz
Algorithm Hash digest
SHA256 b6e0a9ee2cb039cc32a4eb0b27beba5c6e60e9681192a8db60931bb5f58d4efe
MD5 661b4b3100a5b19ac439c5ece2e922d4
BLAKE2b-256 b83d5483b73f9ecc34f6c19ec4a78b811170e9416ade746de2e0c7b9ebc0ac1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypeh-0.3.2.tar.gz:

Publisher: publish.yml on eu-parc/pypeh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pypeh-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: pypeh-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 90.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pypeh-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1b97ebd46f7e1f028ffe3cc645bbfc0aff9d913876d40a780d421207cd46e590
MD5 0be8dd68a2686eddef547b26aaeb668e
BLAKE2b-256 2c5e50812ec01158899048960d08d202e120d52794eae63b1e1efd26bb9bfd05

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypeh-0.3.2-py3-none-any.whl:

Publisher: publish.yml on eu-parc/pypeh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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