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.7.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.7.0
File Size Uploaded Provenance
pypeh-0.7.0.tar.gz 98.1 kB With provenance Details

Built distribution (wheel)

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

Total release size: 215.7 kB

Release files / pypeh-0.7.0.tar.gz

Download URL pypeh-0.7.0.tar.gz
Size 98.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d7adfc26ded71b42c1cacc8198e026fb6bdbdd55e52ad357e4310b90d6a47a04
BLAKE2b-256 checksum
How to use checksums
0f17e9db67f878fdd726468f5dc504159455c23c98073823ed197b5a38352e9f
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 Sep 24, 2026.

Transparency log

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

Download URL pypeh-0.7.0-py3-none-any.whl
Size 117.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
185009e4d3dd3fc6b49f2a73af41c7adac75c4445f408b3b2efbb88b33d7829b
BLAKE2b-256 checksum
How to use checksums
1b825a0b5f54e8c3f5f9539d63723f130544a81b03b80a9c349b62061ec31d7b
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 Sep 24, 2026.

Transparency log

Security for pypeh 0.7.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.7.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 Sep 24, 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