Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ablift logo

ablift

PyPI CI Python License: MIT Ruff uv

Turn A/B test numbers into a ship / don't-ship decision from the command line, with JSON output an AI agent can act on.

ablift analyzing a three-variant checkout test and recommending ship_new_checkout

Alpha. The statistics are tested against reference implementations, but the CLI and output format may still change before 1.0.

Why ablift

  • Decisions, not just p-values. Every analysis ends in an action (ship_<variant>, continue_collecting_data, do_not_ship, stop_and_rollback, investigate_data_quality) with a confidence score and risk flags.
  • Look at results as often as you like. Sequential mode uses mSPRT with always-valid confidence intervals, so checking daily does not inflate false positives.
  • Catches bad data before you ship. Sample ratio mismatch, sparse conversion counts, whale-dominated revenue and pre-experiment covariate imbalance are all flagged.
  • Built for agents and pipelines. JSON in, JSON out, a published JSON Schema, stdin support, clean errors and stable exit codes.

Install

ablift is currently published as a pre-release, so allow pre-releases when installing:

uv tool install --prerelease=allow ablift   # or: pip install --pre ablift

Quickstart

# Analyze a starter JSON experiment (Bayesian by default)
ablift example-input | ablift analyze --input -

# Pipe in a CSV and run a sequential test you can re-check every day
printf 'variant,visitors,conversions\ncontrol,30000,1200\nnew_checkout,30000,1410\n' \
  | ablift analyze --input - --input-format csv --method sequential

# Plan how long a test needs to run
ablift duration --baseline-rate 0.04 --relative-mde 0.05 --daily-traffic 50000

# Power analysis: what lift can 10,000 users per variant detect?
ablift power --baseline-rate 0.08 --n-per-variant 10000

Add --report report.md to any analyze run for a human-readable Markdown summary.

What it supports

Method (--method) Conversion rate ARPU (revenue per visitor) Ratio (e.g. CTR, AOV)
bayesian: probability to beat control, expected loss ✅ ✅ ✅
sequential: mSPRT, always-valid, safe to peek ✅ ✅ ✅
fixed: z / Welch t / Fisher exact, one planned look ✅ ✅ ✅

Also included:

  • A/B/n tests with Bonferroni correction, or joint probability_best in Bayesian mode
  • CUPED variance reduction using a pre-experiment covariate, often cutting required traffic substantially
  • Guardrail and secondary metrics evaluated per variant
  • SRM checks with custom traffic splits (--expected-split 90,10)
  • Heavy-tailed revenue handling with pooled winsorization and bootstrap intervals
  • Duration planning and power analysis for conversion rate and ARPU: sample size and days (duration), or power and minimum detectable effect for a given sample size (power)
  • Input from JSON, CSV, XLSX or stdin, with output as JSON and an optional Markdown report

Commands

Command What it does
ablift analyze Analyze an experiment from JSON, CSV, XLSX or stdin
ablift duration Estimate the sample size and days a test needs
ablift power Power for a given sample size, or the smallest lift it can detect
ablift schema Print the JSON Schema for inputs and outputs
ablift example-input Print a starter JSON input
ablift doctor Check the environment (--strict fails CI on problems, --json-output for agents)

Run ablift <command> --help for every option.

Documentation

Limitations

  • Aggregated ARPU inputs cannot be winsorized after aggregation (only a CV-based heavy_tailed_revenue warning is emitted); pass row-level revenue with --winsorize Q (and optionally --bootstrap-samples N) when whale outliers are present.
  • mSPRT guarantees assume you re-run the analysis on cumulative data as it arrives. The tool keeps no state between looks.
  • CUPED variance reduction currently supports conversion_rate and arpu primary metrics (not ratio).

Development

uv sync                  # installs the test and lint groups
uv run pytest            # test suite, including the docs checks
make lint                # ruff and ty
make demo                # run every bundled example into examples/out/
make docs                # re-render docs/demo.svg after changing CLI output

See CONTRIBUTING.md for how changes are checked and released.

License

MIT. See LICENSE.

Metadata

Release files for ablift 0.5.0a2

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

Source distribution (sdist)

Source distribution for ablift 0.5.0a2
File Size Uploaded Provenance Actions
ablift-0.5.0a2.tar.gz 129.9 kB With provenance Details for ablift-0.5.0a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ablift 0.5.0a2
File Interpreter ABI Platform Actions
ablift-0.5.0a2-py3-none-any.whl Python 3 none any Details for ablift-0.5.0a2-py3-none-any.whl

Total release size: 192.1 kB

Release files / ablift-0.5.0a2.tar.gz

Download URL ablift-0.5.0a2.tar.gz
Size 129.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5a94c180652fcf7e4842bfe09ff20e595c008828ec91f14eaa9499806be4012b
BLAKE2b-256 checksum
How to use checksums
50a51e62a14c8a67d1be3f8ccc710dfef4ee611c0abbb4ba9ce31c9043ba1639
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 27, 2026.

Transparency log

Release files / ablift-0.5.0a2-py3-none-any.whl

Download URL ablift-0.5.0a2-py3-none-any.whl
Size 62.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f0546ebf4b573cc078366bcd95e0b0b2917a08323f769e6b335a62b9363c898
BLAKE2b-256 checksum
How to use checksums
e58e52592c504a4d8f2dcf04ae56f18d539b01a87516492c6952930154ff87e8
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 27, 2026.

Transparency log

Security for ablift 0.5.0a2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ablift-0.5.0a2.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 27, 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