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. Direct-child judges/*.yaml and judges/*.yml content is validated through the same core. Invalid judge content returns structured judge.* diagnostics; it does not raise a content exception or return project-scoped judge identity.

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.8.0.tar.gz (82.2 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.8.0-cp310-abi3-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.10+Windows x86-64

pi_recipe_check-0.8.0-cp310-abi3-manylinux_2_28_x86_64.whl (1.6 MB view details)

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

pi_recipe_check-0.8.0-cp310-abi3-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

pi_recipe_check-0.8.0-cp310-abi3-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

pi_recipe_check-0.8.0-cp310-abi3-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: pi_recipe_check-0.8.0.tar.gz
  • Upload date:
  • Size: 82.2 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.8.0.tar.gz
Algorithm Hash digest
SHA256 e60776f6860c29028b1ddb6227614dbb1434e403adff2d71a31ad35869bb70b3
MD5 686e9841427efa66031f376846b5ac1c
BLAKE2b-256 d3daab6bca47dfa6d88d62b9ca22329ccf296ebe09fb99389fc1b0d364790fdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pi_recipe_check-0.8.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.8.0-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for pi_recipe_check-0.8.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 99bd87977cb34ddef8d1e3a4b701070284dc7feea9fa29ae4a5d8155e0743928
MD5 21b7d3ef9658a5bed0d872bcfef55312
BLAKE2b-256 e72a9f54a3e139a7c4b1fc3bf7ba52cb97c6065d719f3df103a23cf6cfdfcf77

See more details on using hashes here.

Provenance

The following attestation bundles were made for pi_recipe_check-0.8.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.8.0-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pi_recipe_check-0.8.0-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f7874b563ab97a9a06d0644cccebde5bd8d0aa70858d2c2d161f76a868787048
MD5 7bd8f5ca4b322f4f7cf7336f2a09d68a
BLAKE2b-256 75ab3adfc66bd48a1f60a34270283ce164e1c4a6a60602198b90595ffec5096d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pi_recipe_check-0.8.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.8.0-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pi_recipe_check-0.8.0-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e84ae5a78eeda48f475ed65cb83eaf48b0d691f6cd714e2d6b370f3c43435d22
MD5 515d55a5f0ceecc60a10e834567d57a5
BLAKE2b-256 798643d2fe11edb809e545da596ff0ee2d29b79ee1255106c490e90935cde8a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pi_recipe_check-0.8.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.8.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pi_recipe_check-0.8.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 abcecf80dfca18ec1416a1fc387a4a5e378c2f79841b7192e59016b40072ee6f
MD5 495430b2229d126b1f7d2b8267ce9446
BLAKE2b-256 e8498f40243366507f50861fc8cbd29e2b1523cf4d30ee4579a0333b7da23478

See more details on using hashes here.

Provenance

The following attestation bundles were made for pi_recipe_check-0.8.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.8.0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pi_recipe_check-0.8.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9ec04adf43d783347d250de92952b9a0af34c61cafc8b066b6f4370f84b40728
MD5 42dd02450f647bd99b6a8da2769d3d15
BLAKE2b-256 c221b68ab2a39b02b6100e7466e158c8fe70f561eeaf93264aed81ec6c403d70

See more details on using hashes here.

Provenance

The following attestation bundles were made for pi_recipe_check-0.8.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