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

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.3
File Size Uploaded Provenance Actions
pretense_py-0.2.3.tar.gz 47.8 kB Without provenance Details for pretense_py-0.2.3.tar.gz

Built distribution (wheel)

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

Total release size: 109.2 kB

Release files / pretense_py-0.2.3.tar.gz

Download URL pretense_py-0.2.3.tar.gz
Size 47.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f688708070801879f7685d889c4658ab9435ebfdccb6d60240e8c29ed6e2c068
BLAKE2b-256 checksum
How to use checksums
7d788299370ebb4c4ad49f8a4d335709d2fbcc0d950f5faecff508361ed262f3
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.3-py3-none-any.whl

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

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