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.6.1

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.6.1
File Size Uploaded Provenance
pypeh-0.6.1.tar.gz 96.3 kB With provenance Details

Built distribution (wheel)

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

Total release size: 212.1 kB

Release files / pypeh-0.6.1.tar.gz

Download URL pypeh-0.6.1.tar.gz
Size 96.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4a081e31e7fcb28670119c54ef91bc91ee8f0ee9715407758023911afb44bf4c
BLAKE2b-256 checksum
How to use checksums
f374b9c6ef4e5e683a186c78c598306bdb99fcf890a361338f8cd6cc83f7c7af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 27, 2026.

Transparency log

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

Download URL pypeh-0.6.1-py3-none-any.whl
Size 115.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73314437407c0ef5e85d5ac9381e994016310f475a483be92aa00080bf02fe74
BLAKE2b-256 checksum
How to use checksums
158edabbca855c90822907e82e330320f7392acfcbcebc083b291348dec1455c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 27, 2026.

Transparency log

Security for pypeh 0.6.1

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.6.1.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 Aug 27, 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