Skip to main content

pypasteur

Python bindings for pasteur-core: data simulators for stress-testing clinical AI models, built on polars.

pip install pypasteur
import polars as pl
import pypasteur

df = pl.read_parquet("clean.parquet")

# Null out `tsh` (and its companion columns) for a fraction of rows.
blackout = pypasteur.BlackoutSimulator("tsh", rate=0.1, random_state=42, companions=["tsh_measured"])
blackout.fit(df)
shifted = blackout.transform(df)

# Add scaled noise to `tsh`.
jitter = pypasteur.JitterSimulator("tsh", scale=1.0, random_state=42)
jitter.fit(df)
noisy = jitter.transform(df)

BlackoutSimulator also accepts window_frac, patient_id_col, and time_col for longitudinal data.

Requires CPython ≥ 3.12. Wheels are abi3.

Development

pip install maturin polars
maturin develop            # from this directory
python tests/smoke.py

Metadata

Release files for pypasteur 0.3.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 pypasteur 0.3.0
File Size Uploaded
pypasteur-0.3.0.tar.gz 45.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pypasteur 0.3.0
File
pypasteur-0.3.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details
pypasteur-0.3.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details
pypasteur-0.3.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details
pypasteur-0.3.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details
pypasteur-0.3.0-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details

Total release size: 125.7 MB

Release files / pypasteur-0.3.0.tar.gz

Download URL pypasteur-0.3.0.tar.gz
Size 45.8 kB
Tags Source
SHA-256 checksum
How to use checksums
51f6f89e6228c1180bf343f6032677eb942c3c703a8468967c9275549d58793a
BLAKE2b-256 checksum
How to use checksums
685686a3f3b7ebd5e488bedfd75efe19a3e3ee8e6df20a3abfa54d7be4d4baf7
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 29, 2026.

Transparency log

Release files / pypasteur-0.3.0-cp312-abi3-win_amd64.whl

Download URL pypasteur-0.3.0-cp312-abi3-win_amd64.whl
Size 23.8 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
61c48849b9e39d5a74d3f7afa99f45c0aa88e2db71774de944e968732b189302
BLAKE2b-256 checksum
How to use checksums
7ec13e3c68f5fbe90c74c5609ad00bf92c25a6d7b32fe840465d2b5af6a77b3b
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 29, 2026.

Transparency log

Release files / pypasteur-0.3.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pypasteur-0.3.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 25.5 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
98543bd41d373e35aeff872f41cdbe61607af43f4af9f14a1d8b2fd84b028819
BLAKE2b-256 checksum
How to use checksums
a146495b9b316da4e850b8bde64188d61f3225effc1ab113f6516a7d9681e1b0
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 29, 2026.

Transparency log

Release files / pypasteur-0.3.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL pypasteur-0.3.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 28.5 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
05d57f87b1276001dc83604feb8af8e4182c6d476f8c6950631dee8541d82ffa
BLAKE2b-256 checksum
How to use checksums
3bd8fa60029266a0c37cf9795bd0426621bfa460707060f73041abbfa6300143
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 29, 2026.

Transparency log

Release files / pypasteur-0.3.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL pypasteur-0.3.0-cp312-abi3-macosx_11_0_arm64.whl
Size 23.2 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
dae1dd750a183ccfe3d076ebdcc31dc1a1798ae5d26b8b669bcc07012786be83
BLAKE2b-256 checksum
How to use checksums
8fcb457eb50301a9ede0581fa78d471cb79102e2bb55bf9b2dde9ed92c393626
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 29, 2026.

Transparency log

Release files / pypasteur-0.3.0-cp312-abi3-macosx_10_12_x86_64.whl

Download URL pypasteur-0.3.0-cp312-abi3-macosx_10_12_x86_64.whl
Size 24.5 MB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
db31bf6006e9dd6abbadad0735b6dce26bcb2be4949301eab2d6847744346a19
BLAKE2b-256 checksum
How to use checksums
28640b243a4e36310011d28d6493b1b32539cb5875d52aad60004b8356b58fa7
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 29, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.1

6 release files

0.4.0

6 release files

This release

0.3.0 This release

6 release files

0.0.0

2 release files

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