Skip to main content

TrialEmulation (Python)

License Python Build Status Code Coverage PyPI version

Python port of the R TrialEmulation package for causal inference in observational time-to-event data.

Overview

The target trial emulation framework provides a principled approach to causal inference from observational data by explicitly specifying the hypothetical randomized trial (the "target trial") that would answer the research question of interest. This package implements methods to emulate such target trials using observational data in the person-time format, commonly found in electronic health records and administrative databases.

The core methodology involves expanding longitudinal data into a sequence of "nested" trials, where each eligible person-time contributes to one or more emulated trials depending on when they became eligible for treatment. Marginal structural models (MSMs) are then used to estimate treatment effects while accounting for time-varying confounding through inverse probability weighting.

This Python implementation provides the same functionality as the R TrialEmulation package, with a focus on performance through C++ extensions for computationally intensive operations, comprehensive type hints for better IDE support, and integration with the scientific Python ecosystem (pandas, NumPy, statsmodels).

Key Features

  • Target Trial Emulation: Expand observational person-time data into a sequence of emulated trials
  • Multiple Estimands: Support for intention-to-treat (ITT), per-protocol (PP), and as-treated analyses
  • Inverse Probability Weighting (IPW):
    • Treatment switching weights for per-protocol and as-treated estimands
    • Censoring weights to account for informative censoring
    • Flexible covariate specification for numerator and denominator models
  • Marginal Structural Models: Fit weighted pooled logistic regression for time-to-event outcomes or Gaussian identity-link models for continuous outcomes
  • Causal Analysis Weights: Apply inverse-probability or overlap weights as estimating-equation weights
  • Robust Variance Estimation: Patient-clustered estimating-equation sandwich standard errors, with fitted-weight uncertainty handled by full-pipeline bootstrap
  • Case-Control Sampling: Efficient sampling of controls for large datasets
  • Performance Optimized: C++ extensions (pybind11) for computationally intensive operations
  • Type Safety: Comprehensive type hints throughout the codebase
  • Flexible Interface: Support for R-style formulas and Python-style specifications

Installation

From PyPI

pip install trial-emulation

From Source

git clone https://github.com/csainsbury/Trial-Emulation-R2P.git
cd Trial-Emulation-R2P
pip install -e .

Development Installation

To install with development dependencies (testing, linting):

pip install -e ".[dev]"

Requirements

  • Python 3.10 or higher
  • NumPy >= 1.20.0
  • pandas >= 1.3.0
  • statsmodels >= 0.13.0
  • scipy >= 1.7.0
  • pybind11 >= 2.10.0 (for C++ extensions)

Quick Start

Here's a minimal example demonstrating the core workflow:

import trial_emulation as te
import pandas as pd

# Load your data in long (person-time) format
# Required columns: id, period, treatment, outcome, eligible
data = pd.read_csv("your_data.csv")

# Step 1: Prepare data for trial emulation
# This expands the data into a sequence of emulated trials and calculates weights
prep = te.data_preparation(
    data=data,
    id="id",                    # Patient identifier
    period="period",            # Time period
    treatment="treatment",      # Treatment indicator (0/1)
    outcome="outcome",          # Outcome event indicator (0/1)
    eligible="eligible",        # Eligibility indicator (0/1)
    estimand_type="ITT",        # Intention-to-treat analysis
    outcome_cov=["age", "sex", "comorbidities"],  # Time-varying covariates
    use_censor_weights=True,    # Use censoring weights
    cense="censored",           # Censoring indicator
)

# Step 2: Fit marginal structural model
# This fits a weighted pooled logistic regression with robust standard errors
msm = te.trial_msm(
    data=prep,                   # Prepared data from step 1
    outcome_cov=["age", "sex"],  # Covariates to adjust for
    estimand_type="ITT",
)

# Step 3: View results with robust standard errors
print(msm.robust["summary"])

# Extract treatment effect estimate
treatment_effect = msm.model.params["assigned_treatment"]
robust_se = msm.robust["bse"]["assigned_treatment"]
print(f"Treatment effect: {treatment_effect:.3f} (SE: {robust_se:.3f})")

Understanding the Results

The MSM provides:

  • Coefficients: Log odds ratios for the effect of treatment on the outcome
  • Robust Standard Errors: Account for clustering by patient ID
  • Confidence Intervals: Based on robust standard errors
  • Model Summary: Full regression output with all covariates

For ITT analyses, the coefficient for assigned_treatment represents the effect of being assigned to treatment at trial baseline, regardless of subsequent adherence.

Continuous outcomes

For a continuous endpoint, provide one or more outcome rows per patient and select the Gaussian identity family. A direct one-index trial frame is appropriate when cohort construction has already selected one baseline trial per patient:

continuous = pd.DataFrame({
    "id": [1, 2, 3, 4],
    "assigned_treatment": [0, 0, 1, 1],
    "outcome": [-1.2, -0.7, -2.1, -1.8],
    "weight": [0.8, 1.1, 0.9, 1.2],
    "followup_time": [0, 0, 0, 0],
    "trial_period": [0, 0, 0, 0],
})

msm = te.trial_msm(
    data=continuous,
    outcome_family="gaussian",
    include_followup_time="~1",
    include_trial_period="~1",
    use_sample_weights=False,
)

weight is treated as a causal/estimating-equation weight, not an inverse residual-variance weight. The package reports a patient-clustered sandwich covariance conditional on fitted weights. Use msm.robust["summary"] and msm.robust["matrix"] for fixed-weight inference; msm.model.bse and the ordinary GLM summary are working-model quantities, not causal standard errors. If treatment, censoring, or measurement weights were estimated, refit the full nuisance-to-outcome pipeline in a patient bootstrap for final uncertainty.

Data Format

Your input data should be in long (person-time) format with one row per person-period:

id period treatment outcome eligible age ...
1 0 0 0 1 45 ...
1 1 1 0 1 45 ...
1 2 1 0 1 45 ...
2 0 0 0 1 52 ...
2 1 0 1 1 52 ...

Key requirements:

  • Unique identifier (id): Patient or unit identifier
  • Time period (period): Sequential integer starting at 0
  • Treatment (treatment): Binary indicator (0 = untreated, 1 = treated)
  • Outcome (outcome): Binary indicator for the event of interest
  • Eligibility (eligible): Indicator for whether the person is eligible at that time
  • Covariates: Time-varying or baseline characteristics

Documentation

Full documentation is available at https://trial-emulation.readthedocs.io

Additional Resources

Examples

See the examples/ directory for complete working examples:

  • basic_usage.py - Simple ITT analysis workflow
  • itt_analysis.py - Detailed intention-to-treat example
  • per_protocol_analysis.py - Per-protocol analysis with artificial censoring

Citation

If you use this package in your research, please cite:

@software{trial_emulation_python,
  title = {TrialEmulation: Target Trial Emulation for Causal Inference},
  author = {Vermeulen, Xander and Sainsbury, Chris},
  year = {2026},
  url = {https://github.com/csainsbury/Trial-Emulation-R2P},
  version = {0.0.5.0}
}

For the methodology, please also cite the original R package and key papers:

  • Danaei G, García Rodríguez LA, Cantero OF, Logan RW, Hernán MA. Observational data for comparative effectiveness research: An emulation of randomised trials of statins and primary prevention of coronary heart disease. Statistical Methods in Medical Research. 2013;22(1):70-96.

  • Hernán MA, Robins JM. Using Big Data to Emulate a Target Trial When a Randomized Trial Is Not Available. American Journal of Epidemiology. 2016;183(8):758-764.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines on how to:

  • Report bugs
  • Suggest features
  • Submit pull requests
  • Set up a development environment

For major changes, please open an issue first to discuss what you would like to change.

Development Status

This package is in alpha (v0.0.x series). The API may change as we gather user feedback. The package is functional and tested internally but should be considered experimental for production use.

Current priorities:

  • Expanding test coverage
  • Adding more examples and tutorials
  • Performance optimization
  • Validation against R package results

Testing & Validation

Test Data Sources

The package test suite uses validated data from the original R TrialEmulation package to ensure compatibility and correctness. Specifically, we use the trial_example dataset which contains:

  • 48,400 observations across 503 patients
  • Longitudinal structure with realistic treatment patterns
  • Known to work correctly with target trial emulation methods
  • Same data used in the R package documentation and vignettes

This approach ensures that our Python implementation produces results consistent with the established R implementation.

Test Coverage

Current test status (as of v0.0.5.3):

  • R parity suite (tests/test_r_parity.py) against TrialEmulation 0.0.4.9 for ITT, PP and As-Treated preparation, switching and censoring weights, weight models and MSM coefficients with robust standard errors (reference outputs and generator in tests/data/r_reference/)
  • Solver parity (tests/test_solver.py): the default Newton/IRLS solver against statsmodels GLM.fit (solver="statsmodels") for weight models, weights, MSM coefficients and standard errors; the vectorised cluster sandwich against the previous per-cluster loop (tests/test_robust.py)
  • Simulation checks that the weighted Gaussian MSM recovers a known continuous effect (ITT and PP) and that the patient-bootstrap mode is consistent
  • ✓ Multi-platform testing via GitHub Actions (Linux, macOS, Windows; Python 3.10–3.12)

Key tested functionality:

  • Data preparation and trial expansion
  • Multiple estimand types (ITT, PP, As-Treated)
  • Inverse probability weighting (treatment and censoring)
  • Binary and continuous marginal structural model fitting
  • Weighted estimating equations and patient-clustered sandwich variance
  • Various analysis options (weight truncation, period filtering, etc.)

Running Tests

To run the test suite:

# Install development dependencies
pip install -e ".[dev]"

# Run all tests
pytest tests/

# Run with coverage report
pytest tests/ --cov=trial_emulation --cov-report=html

# Run only integration tests
pytest tests/ -m integration

The test suite includes:

  • Unit tests: Individual function and module testing
  • Integration tests: End-to-end workflow validation with real data
  • Edge case tests: Handling of unusual inputs and boundary conditions

Validation Against R Package

The Python implementation has been validated against the R package using:

  1. Same example datasets (trial_example)
  2. Comparison of key outputs (expanded data structure, weight calculations)
  3. Integration tests that verify the complete workflow produces reasonable results

While minor numerical differences may exist due to differences in optimization algorithms and random number generation, the overall methodology and results are consistent with the R implementation.

Acknowledgments

This Python implementation is based on the R TrialEmulation package developed by the Causal-LDA team. We thank the original developers for their methodological contributions and open-source implementation.

The target trial emulation framework is built on seminal work by:

  • Miguel Hernán and James Robins (Harvard T.H. Chan School of Public Health)
  • The CAUSALab team

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Support

Metadata

Release files for trial-emulation 0.0.5.3

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

Source distribution (sdist)

Source distribution for trial-emulation 0.0.5.3
File Size Uploaded Provenance Actions
trial_emulation-0.0.5.3.tar.gz 71.3 kB With provenance Details for trial_emulation-0.0.5.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for trial-emulation 0.0.5.3
File Actions
trial_emulation-0.0.5.3-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for trial_emulation-0.0.5.3-cp312-cp312-win_amd64.whl
trial_emulation-0.0.5.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for trial_emulation-0.0.5.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
trial_emulation-0.0.5.3-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for trial_emulation-0.0.5.3-cp312-cp312-macosx_11_0_arm64.whl
trial_emulation-0.0.5.3-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details for trial_emulation-0.0.5.3-cp312-cp312-macosx_10_13_x86_64.whl
trial_emulation-0.0.5.3-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for trial_emulation-0.0.5.3-cp311-cp311-win_amd64.whl
trial_emulation-0.0.5.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for trial_emulation-0.0.5.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
trial_emulation-0.0.5.3-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for trial_emulation-0.0.5.3-cp311-cp311-macosx_11_0_arm64.whl
trial_emulation-0.0.5.3-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details for trial_emulation-0.0.5.3-cp311-cp311-macosx_10_9_x86_64.whl
trial_emulation-0.0.5.3-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for trial_emulation-0.0.5.3-cp310-cp310-win_amd64.whl
trial_emulation-0.0.5.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for trial_emulation-0.0.5.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
trial_emulation-0.0.5.3-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for trial_emulation-0.0.5.3-cp310-cp310-macosx_11_0_arm64.whl
trial_emulation-0.0.5.3-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for trial_emulation-0.0.5.3-cp310-cp310-macosx_10_9_x86_64.whl

Total release size: 1.5 MB

Release files / trial_emulation-0.0.5.3.tar.gz

Download URL trial_emulation-0.0.5.3.tar.gz
Size 71.3 kB
Tags Source
SHA-256 checksum
How to use checksums
46593ee49a98141396bd8abe5c2ea1c067bf3dba619c853e9add67068710ff92
BLAKE2b-256 checksum
How to use checksums
0cb213e16df1d66df5262f95a204c0637c8909ae408134d431b116ad08598e76
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 Nov 18, 2026.

Transparency log

Release files / trial_emulation-0.0.5.3-cp312-cp312-win_amd64.whl

Download URL trial_emulation-0.0.5.3-cp312-cp312-win_amd64.whl
Size 125.9 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
45e52e570c69ff9a174deb877bb81ca2436b6bd2a8ebce09775236dd5f67d700
BLAKE2b-256 checksum
How to use checksums
da9b682eb53fd609747e791521909a30ff53d0b58916f288dddfcf5ef0d04b1e
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 Nov 18, 2026.

Transparency log

Release files / trial_emulation-0.0.5.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL trial_emulation-0.0.5.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 132.7 kB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9b979c7f9499641a864a5a4921e2615ff3af390b45e9644504a3f1d1d11ceece
BLAKE2b-256 checksum
How to use checksums
b729f24df73e3a235baca5230d33f4d1f375cf3778486dd21ac97dfda73e5445
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 Nov 18, 2026.

Transparency log

Release files / trial_emulation-0.0.5.3-cp312-cp312-macosx_11_0_arm64.whl

Download URL trial_emulation-0.0.5.3-cp312-cp312-macosx_11_0_arm64.whl
Size 118.0 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2b23d0688f9678ef212cc192d847f268ccf6df6bf43ce696950a41556a08ba1e
BLAKE2b-256 checksum
How to use checksums
0c4dd6b2525e32f54364186148b48583a9ea19307b6f5ae931434390d1f5f09a
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 Nov 18, 2026.

Transparency log

Release files / trial_emulation-0.0.5.3-cp312-cp312-macosx_10_13_x86_64.whl

Download URL trial_emulation-0.0.5.3-cp312-cp312-macosx_10_13_x86_64.whl
Size 121.5 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
85bee496cfaf9e7c3474180f55dad977fe6df758d7aac0dfcc6c16f305bb669f
BLAKE2b-256 checksum
How to use checksums
26c1b70e38479b975d04890248bdfe0d76f8cc6052cd497ea6c6960b712cf007
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 Nov 18, 2026.

Transparency log

Release files / trial_emulation-0.0.5.3-cp311-cp311-win_amd64.whl

Download URL trial_emulation-0.0.5.3-cp311-cp311-win_amd64.whl
Size 123.3 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
630f91e09a07987887c00d10be445876bb38ecb6312fe71e79b1e281afd1e219
BLAKE2b-256 checksum
How to use checksums
39f0cb86b97a5248bed15a4748bc3ddce6274a7f1a9ca890563ea8e3bf8c3a60
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 Nov 18, 2026.

Transparency log

Release files / trial_emulation-0.0.5.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL trial_emulation-0.0.5.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 130.8 kB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b473bd321ff95075c3abbf1c5b68d77cf6ad8376d803540358c149ffa9896c97
BLAKE2b-256 checksum
How to use checksums
1e3a39da7153e32c6ea724840976d531a10826a810929a8afeee9b1c6063a60e
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 Nov 18, 2026.

Transparency log

Release files / trial_emulation-0.0.5.3-cp311-cp311-macosx_11_0_arm64.whl

Download URL trial_emulation-0.0.5.3-cp311-cp311-macosx_11_0_arm64.whl
Size 116.3 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
993817abe3db8cd558dd7ccb92fbf8edae0f0f0d2cc17869a13db6c43fbfe45b
BLAKE2b-256 checksum
How to use checksums
a07034cb189248272c40ef431002dba2b8cc5ecdc38a3fb713392ce871701702
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 Nov 18, 2026.

Transparency log

Release files / trial_emulation-0.0.5.3-cp311-cp311-macosx_10_9_x86_64.whl

Download URL trial_emulation-0.0.5.3-cp311-cp311-macosx_10_9_x86_64.whl
Size 119.3 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
986719a977b1ca7d4ba57f9da4a1ba560dfa1ddef35ff29cb458739367176418
BLAKE2b-256 checksum
How to use checksums
ff85d2672eecb75d243214eea61a517c1b005a1d8e6a75234683bfce16e1e5cf
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 Nov 18, 2026.

Transparency log

Release files / trial_emulation-0.0.5.3-cp310-cp310-win_amd64.whl

Download URL trial_emulation-0.0.5.3-cp310-cp310-win_amd64.whl
Size 122.5 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
d85c1b97bef9c3cbe9506e7cf560e322850b7c781e68d76f001bfc4158c6edad
BLAKE2b-256 checksum
How to use checksums
990cba2b4f0075b8805d90b174444617ff661c46efd892d4e4bfa5d015cc2b19
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 Nov 18, 2026.

Transparency log

Release files / trial_emulation-0.0.5.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL trial_emulation-0.0.5.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 129.2 kB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
12ee2ba8964c5ba34e3a3f20bd3eae0da775185f2a022fff18762e3745558e42
BLAKE2b-256 checksum
How to use checksums
b1ccb9695f90e41c7028e8dbe28d56ccd0320a64a86d5515c12e43a4c31f4b4a
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 Nov 18, 2026.

Transparency log

Release files / trial_emulation-0.0.5.3-cp310-cp310-macosx_11_0_arm64.whl

Download URL trial_emulation-0.0.5.3-cp310-cp310-macosx_11_0_arm64.whl
Size 115.2 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f636b02deba0af57bb43a61e4b996cb1a053bc41cfbb279c7ee3977ee9b9b75e
BLAKE2b-256 checksum
How to use checksums
fb83e817b01a04455bd163c465269bd09f4e4ce4d00f5d84793d5c6fceb6cbac
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 Nov 18, 2026.

Transparency log

Release files / trial_emulation-0.0.5.3-cp310-cp310-macosx_10_9_x86_64.whl

Download URL trial_emulation-0.0.5.3-cp310-cp310-macosx_10_9_x86_64.whl
Size 117.9 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
59221c3e407515acbf4da5f4337a884ab6ca7677598f8e74908a93d32a1282af
BLAKE2b-256 checksum
How to use checksums
8ddc08b401fa74ed78041932216ab7ba484ce6022372c0c145176d3726245a37
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 Nov 18, 2026.

Transparency log

Security for trial-emulation 0.0.5.3

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 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for trial_emulation-0.0.5.3.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 Nov 18, 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