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.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 pysnappea 0.2.0
File Size Uploaded Provenance Actions
pysnappea-0.2.0.tar.gz 460.0 kB With provenance Details for pysnappea-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pysnappea 0.2.0
File Actions
pysnappea-0.2.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for pysnappea-0.2.0-py3-none-win_amd64.whl
pysnappea-0.2.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.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pysnappea-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for pysnappea-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
pysnappea-0.2.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for pysnappea-0.2.0-py3-none-macosx_11_0_arm64.whl
pysnappea-0.2.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for pysnappea-0.2.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 16.7 MB

Release files / pysnappea-0.2.0.tar.gz

Download URL pysnappea-0.2.0.tar.gz
Size 460.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c4e08f2acae0ee63df18115b6cf9582f95853bbd7f306c7644106db9fec036d6
BLAKE2b-256 checksum
How to use checksums
338967cd1d2f8e4d9f8cc843514306dac59bbfa744c6245140f5f0c135743e79
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 2, 2026.

Transparency log

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

Download URL pysnappea-0.2.0-py3-none-win_amd64.whl
Size 3.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
9b30edb633eedb8a0cd4eebbb2437c315cd0a81b0e661932391b7dd40d851fe5
BLAKE2b-256 checksum
How to use checksums
d98e879570f77cb60219f8ff72426454a897cccd8ceef1455a670e61553f6f82
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 2, 2026.

Transparency log

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

Download URL pysnappea-0.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 3.4 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
14ab7e5c5ce3849b4f54c2e2990aaef0c5a9bc5febbf096a6b6ba34e1f7420c7
BLAKE2b-256 checksum
How to use checksums
854026ffa25248fa821b12b273cc9b87173d72838db10963e21b556d04f4b2d6
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 2, 2026.

Transparency log

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

Download URL pysnappea-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 3.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
8d84f9217fd78772905112f5836ee4ff2a2ca2fa6cdad145c4f2afb11a2d9612
BLAKE2b-256 checksum
How to use checksums
2a24b8411f9fe3a2015be9c7a81aa1d6b61bf76f04356bce5127a4598035056f
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 2, 2026.

Transparency log

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

Download URL pysnappea-0.2.0-py3-none-macosx_11_0_arm64.whl
Size 3.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d838eacdcd6f99e1dd5973e0ccee1c7fc0ac305e9b25fbd30f31af92d73ca691
BLAKE2b-256 checksum
How to use checksums
12c82587b35dad025981c86da7b76b9764e3d1ec9012cd21504f5d0916f97e2c
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 2, 2026.

Transparency log

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

Download URL pysnappea-0.2.0-py3-none-macosx_10_12_x86_64.whl
Size 3.3 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8ae8fa77a2534f1a601cc8c922edf51922eab759003a922d3394e3630e31df95
BLAKE2b-256 checksum
How to use checksums
3a45e80681ce20b121bda060c5e4f7a36ab4dc29a8473e8b919485fd83958f03
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 2, 2026.

Transparency log

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

Full provenance

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

Select from 6 files

Attestation for pysnappea-0.2.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 2, 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