Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pytest-narrative-contracts

Optional pytest integration for narrative-contracts, version 0.1.0a2.

Install both packages from the repository root:

pip install -e . -e ./packages/pytest-narrative-contracts

The narrative fixture exposes check(document, context, contracts, policy=None) and audit(cases, contracts, detection=1.0, preservation=1.0, policy=None). Failures identify the rule, status, surface and evidence. --narrative-report=report.json writes all reports, including failed checks. Audit thresholds require both violation and preservation cases.

Pytest discovers this package through the pytest11 entry point. The core library has no pytest dependency. Serial JSON reports only; distributed report merging is not supported.

Alpha software; MIT license. General free-text truthfulness is outside its guarantees.

Metadata

Release files for pytest-narrative-contracts 0.1.0a2

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

Source distribution (sdist)

Source distribution for pytest-narrative-contracts 0.1.0a2
File Size Uploaded
pytest_narrative_contracts-0.1.0a2.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-narrative-contracts 0.1.0a2
File Interpreter ABI Platform
pytest_narrative_contracts-0.1.0a2-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / pytest_narrative_contracts-0.1.0a2.tar.gz

Download URL pytest_narrative_contracts-0.1.0a2.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8f0a380f77c5c2bb0df4b56cd599f3701ee70a1234b5601b97081939ec6a540c
BLAKE2b-256 checksum
How to use checksums
923dcfc319329c042c34691635e7c96307fef009c5d80bb346e52aad73bfee4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / pytest_narrative_contracts-0.1.0a2-py3-none-any.whl

Download URL pytest_narrative_contracts-0.1.0a2-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
424a08ac11e828036b45697c435b954845508056a298c54c92f6f33542be91cf
BLAKE2b-256 checksum
How to use checksums
1ed30a769ee073edd1eb2466d285d07542bdcd42bae182339db33a72e2ce94d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0a2 This release

2 release files

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