Skip to main content

pi-recipe-check for Python

Native Python bindings for the pure, I/O-free pi-recipe-check validation engine.

uv add pi-recipe-check
from pi_recipe_check import check_recipe_files

report = check_recipe_files(
    {
        "files": [
            {
                "path": "package.json",
                "content": '{"name":"demo","pi":{}}',
            }
        ],
        "directories": [],
    },
    profile="ci",
)

for diagnostic in report.diagnostics:
    print(diagnostic.code, diagnostic.path, diagnostic.message)

The snapshot represents the complete recipe tree. File paths are relative to the recipe root and use / separators. Omit content, or set it to None, when the file exists but its contents were not supplied. Ancestor directories are inferred; directories is only needed for empty directories.

Invalid recipes return a Report with valid=False. Malformed input and unknown validation profiles raise ValueError. The binding performs no filesystem I/O and does not include the Rust crate's fs or cli features.

Development

uv sync --project bindings/python --locked
uv run --project bindings/python --locked ruff format --check bindings/python/python bindings/python/tests
uv run --project bindings/python --locked ruff check bindings/python/python bindings/python/tests
uv run --project bindings/python --locked mypy --strict bindings/python/python bindings/python/tests
uv run --project bindings/python --locked maturin develop --manifest-path bindings/python/Cargo.toml
uv run --project bindings/python --no-sync pytest bindings/python/tests

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pi_recipe_check-0.6.0.tar.gz (60.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pi_recipe_check-0.6.0-cp310-abi3-win_amd64.whl (643.8 kB view details)

Uploaded CPython 3.10+Windows x86-64

pi_recipe_check-0.6.0-cp310-abi3-manylinux_2_28_x86_64.whl (749.3 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

pi_recipe_check-0.6.0-cp310-abi3-manylinux_2_28_aarch64.whl (688.5 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

pi_recipe_check-0.6.0-cp310-abi3-macosx_11_0_arm64.whl (657.1 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

pi_recipe_check-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl (696.5 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file pi_recipe_check-0.6.0.tar.gz.

File metadata

  • Download URL: pi_recipe_check-0.6.0.tar.gz
  • Upload date:
  • Size: 60.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pi_recipe_check-0.6.0.tar.gz
Algorithm Hash digest
SHA256 f48e6fb5f4c572c6a691711eec9966d5256f8c6e91b5391cd3baa2d7983815b6
MD5 f9f0c3b4e6644771548eeb5b0ede518d
BLAKE2b-256 824b64f16b84a3c9ee1ec5bdeea156cfc42bad8f2f66cd31313a87ebdf4a363c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pi_recipe_check-0.6.0.tar.gz:

Publisher: release-please.yml on introspection-org/pi-recipes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pi_recipe_check-0.6.0-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for pi_recipe_check-0.6.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 db0479039d5a1022982f454592f2e436e4fbfad3584071d04cd790bb29d20264
MD5 d192a3ae961dc711ffb6c172c664d364
BLAKE2b-256 c1303694f36f7a423c74333720820e0a2bbac981764c813c85e9dc14a9f329d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pi_recipe_check-0.6.0-cp310-abi3-win_amd64.whl:

Publisher: release-please.yml on introspection-org/pi-recipes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pi_recipe_check-0.6.0-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pi_recipe_check-0.6.0-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a0818be70c57d38eca7119edb3e56ea98a817dd464151525b709f27eb0d1918a
MD5 1c2fab2cfd1d55d8e4ffe329928e8665
BLAKE2b-256 2779ea3958dc37c73f8580c4272e2ad3285b2d88b6075fad5b01639a28a40dca

See more details on using hashes here.

Provenance

The following attestation bundles were made for pi_recipe_check-0.6.0-cp310-abi3-manylinux_2_28_x86_64.whl:

Publisher: release-please.yml on introspection-org/pi-recipes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pi_recipe_check-0.6.0-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pi_recipe_check-0.6.0-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f864c99db20fa8fd80d7bf6699b78f855aef0f19ef3d0b99a43ed20386639c88
MD5 24fdf4a6615c0e6d9ffe84569350144f
BLAKE2b-256 84ae7b655c131a0f1e6472c92f7587e6c7b3f103f8a70ef41f0fb88f955e0137

See more details on using hashes here.

Provenance

The following attestation bundles were made for pi_recipe_check-0.6.0-cp310-abi3-manylinux_2_28_aarch64.whl:

Publisher: release-please.yml on introspection-org/pi-recipes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pi_recipe_check-0.6.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pi_recipe_check-0.6.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c66a783d10f6c23666f855014b7f1a1d60d685b098560851466b0ab401c17f2
MD5 46fb988e2faa463a9906207ec29726a9
BLAKE2b-256 1de5e4e2d60a5872649c7ff5c1dc5c4e376a44c13fa26106f3a3932aecee564d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pi_recipe_check-0.6.0-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release-please.yml on introspection-org/pi-recipes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pi_recipe_check-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pi_recipe_check-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a4d14eece8431f53268d47a5ce99b9dc49e3347995136fef5ad1d3245649339d
MD5 a7883a7844deb139c4133e510ea187fc
BLAKE2b-256 0462d0f3deb46d378ab72d69d6b55a2ae76140244220b95a75beae53b70e79d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pi_recipe_check-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl:

Publisher: release-please.yml on introspection-org/pi-recipes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page