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 docs/python.md and Testing and production.

Metadata

Release files for pysnappea 0.1.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.1.0
File Size Uploaded Provenance Actions
pysnappea-0.1.0.tar.gz 328.1 kB With provenance Details for pysnappea-0.1.0.tar.gz

Built distributions (wheels)

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

Total release size: 13.6 MB

Release files / pysnappea-0.1.0.tar.gz

Download URL pysnappea-0.1.0.tar.gz
Size 328.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5e2300911c511b0112292c4aeca705220d4dc8df3ccb36e78429d929b3f48b24
BLAKE2b-256 checksum
How to use checksums
0c3423305d83449b514e5167229635a49b2d8576a40d57bd4906c8d6f29d0953
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 Oct 20, 2026.

Transparency log

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

Download URL pysnappea-0.1.0-py3-none-win_amd64.whl
Size 2.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
e8c4b2800c4e27963b2a689771fd8b0a0fc5daf556599c21648681cbfd95b173
BLAKE2b-256 checksum
How to use checksums
66677ff28a7829803da2bb41d141601ef13191a6173f36cb2d3c74fab97ebadd
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 Oct 20, 2026.

Transparency log

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

Download URL pysnappea-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.8 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
6aab0596c37346442b62609040acb5fa739ebe2e87d6d420a817b7d135979107
BLAKE2b-256 checksum
How to use checksums
c183cff26d634dc2c73efe27d6c8b2fed95622056b49e856072fc6f832f595ae
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 Oct 20, 2026.

Transparency log

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

Download URL pysnappea-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 2.6 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
b874b4cf039ca850f6a614a4d3b57f92e8276b4bce011c0644e7ddc701627931
BLAKE2b-256 checksum
How to use checksums
716400a2d7f15571477be6607eac49bfe4776f5bd98468125971120aa9142b09
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 Oct 20, 2026.

Transparency log

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

Download URL pysnappea-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 2.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
56f6f20bb9623059e1ebe94709a56c8c4ddf307eb8d1914295a7795660f568a4
BLAKE2b-256 checksum
How to use checksums
0a79e0b26c1a4602fab6927368440a88a522a4b2b6f41162d68adc953088760f
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 Oct 20, 2026.

Transparency log

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

Download URL pysnappea-0.1.0-py3-none-macosx_10_12_x86_64.whl
Size 2.7 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e26988f044f3a1641b3d9d25b5efdf7a2dac6bd1f478db2da73a41e2d4232b70
BLAKE2b-256 checksum
How to use checksums
59c2cf5a7747d79796f3ad21915b5b7b0539ff464583778497088f9c0475b81e
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 Oct 20, 2026.

Transparency log

Security for pysnappea 0.1.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.1.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 Oct 20, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

6 release files Full provenance

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