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: strmode: strduration: intlabel: str | Noneexit_code: int | None— wrapped command's exit code (0 = success;Noneonly 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36d3e2e0f540d3e4607a40de3454eb5d5f23cdb7f9624e3c9cef6aeabb3147ac
|
|
| MD5 |
8f5ff6e4e991bb6dd5aa51f17a40b8de
|
|
| BLAKE2b-256 |
e5075d35a2f8f53b2cd529f1236356530f764520d7e0901c106a4195ab40fbcc
|
File details
Details for the file automaze_proof-0.20260803.1-py3-none-any.whl.
File metadata
- Download URL: automaze_proof-0.20260803.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31fa3314400d06867cd2a5c576fecfdf5de16fc81b40a89fd7aa27a06ad78ccf
|
|
| MD5 |
22e4b04bc583cb68b7c7055c8d3dfb6e
|
|
| BLAKE2b-256 |
f6d4159502303a06e718a65171b3e294d3f589fa622be93bf739b09928d856b6
|