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.2):

  • 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/)
  • 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.2

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.2
File Size Uploaded Provenance Actions
trial_emulation-0.0.5.2.tar.gz 61.2 kB With provenance Details for trial_emulation-0.0.5.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for trial-emulation 0.0.5.2
File Actions
trial_emulation-0.0.5.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for trial_emulation-0.0.5.2-cp312-cp312-win_amd64.whl
trial_emulation-0.0.5.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for trial_emulation-0.0.5.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
trial_emulation-0.0.5.2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for trial_emulation-0.0.5.2-cp312-cp312-macosx_11_0_arm64.whl
trial_emulation-0.0.5.2-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.2-cp312-cp312-macosx_10_13_x86_64.whl
trial_emulation-0.0.5.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for trial_emulation-0.0.5.2-cp311-cp311-win_amd64.whl
trial_emulation-0.0.5.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for trial_emulation-0.0.5.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
trial_emulation-0.0.5.2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for trial_emulation-0.0.5.2-cp311-cp311-macosx_11_0_arm64.whl
trial_emulation-0.0.5.2-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.2-cp311-cp311-macosx_10_9_x86_64.whl
trial_emulation-0.0.5.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for trial_emulation-0.0.5.2-cp310-cp310-win_amd64.whl
trial_emulation-0.0.5.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for trial_emulation-0.0.5.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
trial_emulation-0.0.5.2-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for trial_emulation-0.0.5.2-cp310-cp310-macosx_11_0_arm64.whl
trial_emulation-0.0.5.2-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.2-cp310-cp310-macosx_10_9_x86_64.whl

Total release size: 1.5 MB

Release files / trial_emulation-0.0.5.2.tar.gz

Download URL trial_emulation-0.0.5.2.tar.gz
Size 61.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b72f5b6cdc5c85e6d4f47d891ebcd8761bde4ba0842bd70340bc031d4e5ccaeb
BLAKE2b-256 checksum
How to use checksums
f313e07ea7bd10cdc53de064bd40a567aaf357c3633d7cddab76f04e58c70fb4
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 13, 2026.

Transparency log

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

Download URL trial_emulation-0.0.5.2-cp312-cp312-win_amd64.whl
Size 119.7 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
c31b2d9c9214e8f94d50f0b74a9e291970300fbc646283c678e69fd3617995d0
BLAKE2b-256 checksum
How to use checksums
fa496e5c8222c3df70ff26c48aac2a87c98c4b8d0a47c86b9408a2d212bea296
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 13, 2026.

Transparency log

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

Download URL trial_emulation-0.0.5.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 127.0 kB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
272312b892e60f404c190e5590e70ea32f1a84b49830d9dcd8bbc64144391421
BLAKE2b-256 checksum
How to use checksums
79e6f7245e9109038448529be0e37515c1f0cb46f34afc627a0c2eb625099061
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 13, 2026.

Transparency log

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

Download URL trial_emulation-0.0.5.2-cp312-cp312-macosx_11_0_arm64.whl
Size 112.4 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9ee58d75e26878af25dcceeceee84a3a4a46d96337bda074b906cc51968a944e
BLAKE2b-256 checksum
How to use checksums
a14375abfd95739c7da8bdad793174f7947d88d7a1a808d936eb046d461a7632
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 13, 2026.

Transparency log

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

Download URL trial_emulation-0.0.5.2-cp312-cp312-macosx_10_13_x86_64.whl
Size 115.8 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
80d44a1e649a989c08740080cb5fbbc7629eeb1675804067e18e3b19942b4f00
BLAKE2b-256 checksum
How to use checksums
2b92ccebe0aff54bce1d731bd8be35909fa4ab065a8ae8f14b342d694114e01f
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 13, 2026.

Transparency log

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

Download URL trial_emulation-0.0.5.2-cp311-cp311-win_amd64.whl
Size 117.3 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
0a552f905ea0291dd2eff3c53f5f29ad3851d46331d068359a0802a05ed25351
BLAKE2b-256 checksum
How to use checksums
e17ffe033051d1ae98d39296a4c234ba8cefc28f935dd2163ccffa9b381865fc
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 13, 2026.

Transparency log

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

Download URL trial_emulation-0.0.5.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 125.1 kB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0eeb82b45bd36ee2ea670bb05f96af8ad11d3f13fcbbe27e739c1046a7c3f1af
BLAKE2b-256 checksum
How to use checksums
4bc532974ac527290dff57f950ef0139586508b35906791651091785c7d772f8
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 13, 2026.

Transparency log

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

Download URL trial_emulation-0.0.5.2-cp311-cp311-macosx_11_0_arm64.whl
Size 110.6 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ed8c1bcbbda447fd543024d5eec3547316fc96c1b1bb5c70f41a2f7863597eaa
BLAKE2b-256 checksum
How to use checksums
2d59abf73d4bc7f2e260ae98798e1ef847bba742e78f7c15124b837b35287145
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 13, 2026.

Transparency log

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

Download URL trial_emulation-0.0.5.2-cp311-cp311-macosx_10_9_x86_64.whl
Size 113.7 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
d17bf9a7da9b875ce23e61bf66e7dbd3f102ba0e99bed4512b007ebbc75e5403
BLAKE2b-256 checksum
How to use checksums
85a6a1f1fc7d227922d9110e932a36b1487073df1053360312b382cd0a647b88
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 13, 2026.

Transparency log

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

Download URL trial_emulation-0.0.5.2-cp310-cp310-win_amd64.whl
Size 116.6 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
e89e147ffddce938430fc57b5e162f7a923037f4cff875c1fcb7b74371df3041
BLAKE2b-256 checksum
How to use checksums
2be0b6c48abe633cc1a0fa38a7a1f919d52a82f6b2adaa683cdcf29d6022b14f
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 13, 2026.

Transparency log

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

Download URL trial_emulation-0.0.5.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 123.5 kB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
642683ca48caaf8ed6060c5537f70adca6124715684af5070bd6afbc5a7382ff
BLAKE2b-256 checksum
How to use checksums
2026111e634f971224fb7b0f03e1700df4553f48f25f4bb547996038c355c13d
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 13, 2026.

Transparency log

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

Download URL trial_emulation-0.0.5.2-cp310-cp310-macosx_11_0_arm64.whl
Size 109.5 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
19829c5dd2dc72c137929590dce29c40ec0bb1d7cf401c7589facf845f390840
BLAKE2b-256 checksum
How to use checksums
19625db54892c48b929d839da5c58939b4852c1c8517646b2727468448e5e91b
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 13, 2026.

Transparency log

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

Download URL trial_emulation-0.0.5.2-cp310-cp310-macosx_10_9_x86_64.whl
Size 112.3 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
27fc109293a409da1c8e52dfb377f978b8fa470dec19f3c70ee813bfb9dd6734
BLAKE2b-256 checksum
How to use checksums
0bba07e1c247bb8b182b8e560ae331fd22377f833ad51cac8e9b480f3e8a3a40
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 13, 2026.

Transparency log

Security for trial-emulation 0.0.5.2

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.2.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 13, 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