Skip to main content

Berliant

Berliant is a Python library for discovering stochastic failure-inducing capability interactions.

Status

Berliant is currently an early-stage research-oriented Python library.

Current version: 0.1.0

Requirements

  • Python 3.10 or newer
  • uv is recommended for development

Quickstart

Berliant exposes its primary API directly from the package root.

from berliant import KeyedSimulator, load_scenario, validated_scif

scenario = load_scenario(
    "benchmarks/bsib_01/mixed/BSIB-MIXED-001.yaml"
)

simulator = KeyedSimulator(
    scenario=scenario,
    seed=42,
)

discovery = validated_scif(
    invoke=simulator.invoke,
    capabilities=scenario.capabilities,
)

report = discovery.discover()

print(report.executions)
print([
    candidate.capabilities
    for candidate in report.pairwise_report.candidates
])

if report.higher_order is not None:
    print(report.higher_order.candidate)

Run the included example:

uv run python examples/quickstart.py

Public API

Primary imports:

from berliant import (
    SCIF,
    KeyedSimulator,
    Scenario,
    load_scenario,
    validated_scif,
)
  • validated_scif(...) uses the configuration evaluated in Berliant's benchmark experiments.
  • SCIF(...) provides full parameter control.
  • KeyedSimulator provides deterministic configuration-keyed stochastic simulation.
  • Scenario and load_scenario(...) define and load benchmark scenarios.

Discovery Report

discover() returns an SCIFV4Report containing:

  • pairwise_report
  • residual
  • higher_order
  • executions

Development

uv run ruff check .
uv run mypy src
uv run pytest -q

License

Licensed under the Apache License 2.0.

Metadata

Release files for berliant 0.1.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 berliant 0.1.0
File Size Uploaded Provenance Actions
berliant-0.1.0.tar.gz 13.4 kB With provenance Details for berliant-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 35.5 kB

Release files / berliant-0.1.0.tar.gz

Download URL berliant-0.1.0.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5c601b56858d96ba576c92ed94daefab1c8f0721faa617f64289681e2e4ad7af
BLAKE2b-256 checksum
How to use checksums
8ed512865a392c5e70fab1df38048a16daab583aee508a59c99e94321710bd1a
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 Aug 12, 2026.

Transparency log

Release files / berliant-0.1.0-py3-none-any.whl

Download URL berliant-0.1.0-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
faf5647c9ffc5cc2e80f5debf99b6ebb29552595439e73c872974681cc916ccd
BLAKE2b-256 checksum
How to use checksums
0ac8600754a969a29ac4305efee8725502880da1df5c46dcf9132a6670d70660
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 Aug 12, 2026.

Transparency log

Security for berliant 0.1.0

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 berliant-0.1.0.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 Aug 12, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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