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.0a3.
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.
Unreleased development addition
This checkout also provides narrative.audit_validator(validator, cases, obligations=..., validator_id=..., detection=1.0, preservation=1.0) for existing
validators. It records JSON results before asserting thresholds, including
failures. Install both packages from this checkout; this API is not in the
published 0.1.0a2 wheels. See the audit guide.
audit_validator also accepts optional provenance=... from the explicit
Git helpers. Its nested report uses schema 2; the aggregate pytest envelope remains
schema 1. Missing metadata is not automatically inferred from CI environment
variables. See provenance.
Metadata
Release files for pytest-narrative-contracts 0.1.0a3
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 |
|---|---|---|---|---|
| pytest_narrative_contracts-0.1.0a3.tar.gz | 3.5 kB | With provenance | Details for pytest_narrative_contracts-0.1.0a3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_narrative_contracts-0.1.0a3-py3-none-any.whl | Python 3 | none | any | Details for pytest_narrative_contracts-0.1.0a3-py3-none-any.whl |
Total release size: 8.5 kB
Release files / pytest_narrative_contracts-0.1.0a3.tar.gz
| Download URL | pytest_narrative_contracts-0.1.0a3.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab2206e49d051a6205b30f3fedeaf58dcd9f6d880f156b3be454149f552e9e51
|
|
BLAKE2b-256 checksum How to use checksums |
61e2d267f9ff512a2a712bb1216147c286b162ec4641d95da949515b7514e9f1
|
| 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 logRelease files / pytest_narrative_contracts-0.1.0a3-py3-none-any.whl
| Download URL | pytest_narrative_contracts-0.1.0a3-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
707ca8acb3d4a9ee0b1d2237ae48181582cb072832b7ee2e7162840494d558c3
|
|
BLAKE2b-256 checksum How to use checksums |
89e71cade49fce25d7f80a1002dc7bd23fa87e23775a60cfe09ca54311cba674
|
| 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 logSecurity for pytest-narrative-contracts 0.1.0a3
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pytest_narrative_contracts-0.1.0a3.tar.gz
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 logA 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.