Skip to main content

automaze-proof

Python SDK for proof -- capture visual evidence of test execution.

Thin wrapper around the proof CLI. Requires the binary on PATH.

Install

pip install automaze-proof

The proof binary must be installed separately:

curl -fsSL https://automaze.io/install/proof | sh

Usage

from proof import Proof

p = Proof(app_name="my-app", proof_dir="./evidence")

recording = p.capture(
    command="pytest tests/ -v",
    mode="terminal",
    label="unit-tests",
)

print(recording.path)       # /abs/path/unit-tests-143012.html
print(recording.duration)   # 4300
print(recording.exit_code)  # 0 (exit code of the wrapped command)

p.report()

# capture() records the run even when the command fails — gate on the code:
if recording.exit_code != 0:
    raise SystemExit(recording.exit_code)

pytest fixture

# conftest.py
import pytest
from proof import Proof

@pytest.fixture(scope="session", autouse=True)
def proof_session():
    p = Proof(app_name="my-app", proof_dir="./evidence")
    yield p
    p.report()

API

Proof(app_name, proof_dir=None, run=None, description=None)

proof.capture(command, mode="terminal", label=None, description=None) -> Recording

proof.report(format=None) -> str | list[str]

Recording (dataclass)

  • path: str
  • mode: str
  • duration: int
  • label: str | None
  • exit_code: int | None — wrapped command's exit code (0 = success; None only from a proof CLI predating this field)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

automaze_proof-0.20260803.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

automaze_proof-0.20260803.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file automaze_proof-0.20260803.1.tar.gz.

File metadata

  • Download URL: automaze_proof-0.20260803.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for automaze_proof-0.20260803.1.tar.gz
Algorithm Hash digest
SHA256 36d3e2e0f540d3e4607a40de3454eb5d5f23cdb7f9624e3c9cef6aeabb3147ac
MD5 8f5ff6e4e991bb6dd5aa51f17a40b8de
BLAKE2b-256 e5075d35a2f8f53b2cd529f1236356530f764520d7e0901c106a4195ab40fbcc

See more details on using hashes here.

File details

Details for the file automaze_proof-0.20260803.1-py3-none-any.whl.

File metadata

File hashes

Hashes for automaze_proof-0.20260803.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31fa3314400d06867cd2a5c576fecfdf5de16fc81b40a89fd7aa27a06ad78ccf
MD5 22e4b04bc583cb68b7c7055c8d3dfb6e
BLAKE2b-256 f6d4159502303a06e718a65171b3e294d3f589fa622be93bf739b09928d856b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page