Skip to main content

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

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.6.0.tar.gz (96.5 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.6.0-py3-none-any.whl (116.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypeh-0.6.0.tar.gz
  • Upload date:
  • Size: 96.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pypeh-0.6.0.tar.gz
Algorithm Hash digest
SHA256 e67097653d9155b79dada5f4c4ce070939b0b1bde7dc9fac24bc0f4ae8cdce7c
MD5 bae8fa0b01d0e33eda7e7d7f19f5dd29
BLAKE2b-256 a552433919c101247bec017d0564f793d6fe6ee6b64e507f82f3a0eb100aec3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypeh-0.6.0.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.6.0-py3-none-any.whl.

File metadata

  • Download URL: pypeh-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pypeh-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 186e64e9a6389873163e944cbc732e957c533035101afcff1d277e3332e252c0
MD5 1327470eaa5beb5d6c2c4ffd45731b2e
BLAKE2b-256 6dccb2fbe603b063e2c1e15fd18d41869b338cb023792dac2e6f6bc48dd25b87

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypeh-0.6.0-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.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page