Skip to main content

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.2

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

Source distribution (sdist)

Source distribution for pretense-py 0.2.2
File Size Uploaded Provenance Actions
pretense_py-0.2.2.tar.gz 47.8 kB Without provenance Details for pretense_py-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pretense-py 0.2.2
File Interpreter ABI Platform Actions
pretense_py-0.2.2-py3-none-any.whl Python 3 none any Details for pretense_py-0.2.2-py3-none-any.whl

Total release size: 109.2 kB

Release files / pretense_py-0.2.2.tar.gz

Download URL pretense_py-0.2.2.tar.gz
Size 47.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b4b7ac5a69c921ab20297ee56d0cfb5f765cdb09d5162da44d63ee19753b66d0
BLAKE2b-256 checksum
How to use checksums
5bac74a60e6660b13a7b97405a76a0634134b03b3bd7ee4639e665b6c9b72c1b
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.2-py3-none-any.whl

Download URL pretense_py-0.2.2-py3-none-any.whl
Size 61.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5690b5fdca84424b8b4b42af81bcef1a857e4c9d34f13206a8a5845814ee050
BLAKE2b-256 checksum
How to use checksums
3c5eb1e39da064137544b3c40dde146b11a48f90062b4055f8703f1488fdc4ce
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.2

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.

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