pretense-py
A lightweight stateful property-testing and behavioral contract framework.
Overview
Pretense provides model-based state machine property testing, fuzz generation, and specification parity arbiters.
Key Capabilities
- State Machine Specification: Declare states, transitions, preconditions, and invariants using
@transition. - Fuzz Testing: Deterministic state machine exploration powered by Hypothesis.
- Contract Verification: Parity and behavioral conformance testing between specifications and implementations.
- Command Line Runner: Run state machine suites across packages via
pretense <path>.
Installation
uv pip install pretense-py
Quick Start
import pretense
# Import core pretense primitives
from pretense import transition, TransitionContext, StateMachine
Or run test suites directly:
pretense parts/
Metadata
Release files for pretense-py 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pretense_py-0.2.1.tar.gz | 47.8 kB | Without provenance | Details for pretense_py-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pretense_py-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for pretense_py-0.2.1-py3-none-any.whl |
Total release size: 109.2 kB
Release files / pretense_py-0.2.1.tar.gz
| Download URL | pretense_py-0.2.1.tar.gz |
|---|---|
| Size | 47.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15b81cdd700158ae8c037739318045afe7bde9f7d19271f719316c181d0b3a86
|
|
BLAKE2b-256 checksum How to use checksums |
1a1a370ed9c9083235b63b8514aff3870162866275faed75f0c317bb3d62b6c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pretense_py-0.2.1-py3-none-any.whl
| Download URL | pretense_py-0.2.1-py3-none-any.whl |
|---|---|
| Size | 61.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e772cbce2a7d4f7664aa06c1c7bf452d8c9814a5b5c6f3c88998bc74b383d3da
|
|
BLAKE2b-256 checksum How to use checksums |
2f22c785cd3890ad593a05041b8f42c80dede082b45c01bcdeb7f1a97f3e8772
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pretense-py 0.2.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.