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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypeh-0.3.0.tar.gz.
File metadata
- Download URL: pypeh-0.3.0.tar.gz
- Upload date:
- Size: 73.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1587a0c21d86815c11654112692f4b5e8ee8f7440f748222f6df5d94ba14a05c
|
|
| MD5 |
82796187e139a7831c2a85dafbfd992b
|
|
| BLAKE2b-256 |
f667bc1f730bf92e65d06bc1fbb03fe675ef68398b0133e751167d0cfe5ea1c7
|
Provenance
The following attestation bundles were made for pypeh-0.3.0.tar.gz:
Publisher:
publish.yml on eu-parc/pypeh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pypeh-0.3.0.tar.gz -
Subject digest:
1587a0c21d86815c11654112692f4b5e8ee8f7440f748222f6df5d94ba14a05c - Sigstore transparency entry: 1349889667
- Sigstore integration time:
-
Permalink:
eu-parc/pypeh@2c9812fac2f6991356fa86319d6868fe094d719c -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/eu-parc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2c9812fac2f6991356fa86319d6868fe094d719c -
Trigger Event:
release
-
Statement type:
File details
Details for the file pypeh-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pypeh-0.3.0-py3-none-any.whl
- Upload date:
- Size: 90.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0198da6f5ef21a8b6aa3187f6eb7bc1a6d46380295335a71a8ed999750b43e39
|
|
| MD5 |
8ab45a3bd8c960bbdcdccef1c728d8e2
|
|
| BLAKE2b-256 |
a84751f79435276b71b9723698673731a62587747ca8e779470ef8bc08a79a05
|
Provenance
The following attestation bundles were made for pypeh-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on eu-parc/pypeh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pypeh-0.3.0-py3-none-any.whl -
Subject digest:
0198da6f5ef21a8b6aa3187f6eb7bc1a6d46380295335a71a8ed999750b43e39 - Sigstore transparency entry: 1349889749
- Sigstore integration time:
-
Permalink:
eu-parc/pypeh@2c9812fac2f6991356fa86319d6868fe094d719c -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/eu-parc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2c9812fac2f6991356fa86319d6868fe094d719c -
Trigger Event:
release
-
Statement type: