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

Metadata

Release files for pypeh 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypeh 0.9.0
File Size Uploaded Provenance
pypeh-0.9.0.tar.gz 110.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pypeh 0.9.0
File Interpreter ABI Platform
pypeh-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 241.3 kB

Release files / pypeh-0.9.0.tar.gz

Download URL pypeh-0.9.0.tar.gz
Size 110.0 kB
Tags Source
SHA-256 checksum
How to use checksums
288ff7a30d702bd71ba51eef8b98e9826498dc824ac32170081739457ee88b6c
BLAKE2b-256 checksum
How to use checksums
8e2146fc472aa553ea7096650c7eea722c85f8b4b57f531b7aee0d210ec67079
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / pypeh-0.9.0-py3-none-any.whl

Download URL pypeh-0.9.0-py3-none-any.whl
Size 131.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b77339d41631e0c92a4c9a3a75a0301ee8332fe8442e2a97ec56bc4325560f43
BLAKE2b-256 checksum
How to use checksums
17ea1c653b4d149cd66f325cf07fd99e3472ab43a0668a60da0bb058deead48c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for pypeh 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pypeh-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page