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

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

Built distribution (wheel)

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

Total release size: 109.2 kB

Release files / pretense_py-0.2.0.tar.gz

Download URL pretense_py-0.2.0.tar.gz
Size 47.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1b18b72c0c57609a018854cd9d0fbe94dc475e454b52fbb9ac4329b3792cb395
BLAKE2b-256 checksum
How to use checksums
b0fea0a983b6614958d312814c759007f57e5fe1dd873bbc62d08ab85c3fc9a6
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.0-py3-none-any.whl

Download URL pretense_py-0.2.0-py3-none-any.whl
Size 61.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb54963d5fe2bb351cbf25b6650ccbd5d4c4ed392723a79a210c2e65f4e27752
BLAKE2b-256 checksum
How to use checksums
123d61562ec2e962156d4bdf2d52810d47f9c6b881ed247ce4b966f2c87e7db9
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.0

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