Skip to main content

Snap Pea for Python

Check P specs against events your code emits during its ordinary tests. The package brings the snappea binary, so pip install pysnappea is the whole setup.

from snappea import emit

def grant(self, client, lock):
    ...
    emit("eEnter", key=lock, client=client)
# pyproject.toml
[tool.snappea]
spec_files = ["specs/*.p"]

Every pytest test now also checks every spec in specs/. Or check selected tests explicitly:

from snappea import check_spec

def test_lease_expiry():
    with check_spec("MutualExclusion"):
        ...

In production, snappea.set_sink("/var/log/app/events.jsonl") sends the same events to a log that snappea observe checks. See the Python guide and Testing and production.

Metadata

Release files for pysnappea 0.3.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 pysnappea 0.3.0
File Size Uploaded Provenance Actions
pysnappea-0.3.0.tar.gz 672.0 kB With provenance Details for pysnappea-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pysnappea 0.3.0
File Actions
pysnappea-0.3.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for pysnappea-0.3.0-py3-none-win_amd64.whl
pysnappea-0.3.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for pysnappea-0.3.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pysnappea-0.3.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for pysnappea-0.3.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
pysnappea-0.3.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for pysnappea-0.3.0-py3-none-macosx_11_0_arm64.whl
pysnappea-0.3.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for pysnappea-0.3.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 22.3 MB

Release files / pysnappea-0.3.0.tar.gz

Download URL pysnappea-0.3.0.tar.gz
Size 672.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b745f0ac4009ccd88cd0bd54fb7c5c417e2424c4838cd18729f3fd7c06176c3e
BLAKE2b-256 checksum
How to use checksums
28d4ce827d7ecd23fa1269270e93465a8712a0e0deed1b7441ca3039c9757a3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / pysnappea-0.3.0-py3-none-win_amd64.whl

Download URL pysnappea-0.3.0-py3-none-win_amd64.whl
Size 4.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
b51e816cb086c6638edd13598d1432239098920c66662176abad386b1cb5f9da
BLAKE2b-256 checksum
How to use checksums
778ef35e88b9539bf6905fe439c2d30d479f5e0d49e27c0109581f42da3d5638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / pysnappea-0.3.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pysnappea-0.3.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
459ebc9fe54a13b6212a08bd33f6bd79b391a81cb8d3208978e3fc0ed22582a1
BLAKE2b-256 checksum
How to use checksums
2ed1cfb54987b9c3e76b19d09b0059befd15b3d3f8a3f2c9a9c5adc1a8ec731e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / pysnappea-0.3.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL pysnappea-0.3.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 4.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
dcd159579acde5c00ede3eeb56189ea06790d6ce39d3ec4bccd11cd02ac9a372
BLAKE2b-256 checksum
How to use checksums
98c3eaac282363ce84dc92b9aab328f67b8dd04e96f4257382876ac9edee5c0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / pysnappea-0.3.0-py3-none-macosx_11_0_arm64.whl

Download URL pysnappea-0.3.0-py3-none-macosx_11_0_arm64.whl
Size 4.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
36fb40e64ff8b12ee94920069148a6d601a90ef15d5ddb20655791e988459ca8
BLAKE2b-256 checksum
How to use checksums
98b22066e09d1673cfa07581bcb8c2d791dbf0a8da698c1f690bbb7b7079d4cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / pysnappea-0.3.0-py3-none-macosx_10_12_x86_64.whl

Download URL pysnappea-0.3.0-py3-none-macosx_10_12_x86_64.whl
Size 4.4 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
82672aab1372ea7f392270b293ecf9123edbd9b8559e8d71554b68089f4ba2b7
BLAKE2b-256 checksum
How to use checksums
f940666a6c10fef3561d25b66926912582e8af903a22cff7f15c0297a79e9ca8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Security for pysnappea 0.3.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.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for pysnappea-0.3.0.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 Nov 23, 2026.

Transparency log

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