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.7.0.tar.gz (71.0 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.7.0-cp310-abi3-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.10+Windows x86-64

pi_recipe_check-0.7.0-cp310-abi3-manylinux_2_28_x86_64.whl (1.5 MB view details)

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

pi_recipe_check-0.7.0-cp310-abi3-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

pi_recipe_check-0.7.0-cp310-abi3-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

pi_recipe_check-0.7.0-cp310-abi3-macosx_10_12_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: pi_recipe_check-0.7.0.tar.gz
  • Upload date:
  • Size: 71.0 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.7.0.tar.gz
Algorithm Hash digest
SHA256 4cc52234efbe19704c4202e36649df7fd8c3aad05f0496dd5f91783a548db766
MD5 949d7eff6c53e9e6d6343b873bb0cf49
BLAKE2b-256 2cba0b982406001086ba2d5cbb6dc2549885be18677dbbf5f9679f5556333412

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pi_recipe_check-0.7.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 af627006ed20600e6fe39e87160907c85d21725378d1bfd5c3fccb3d730e3657
MD5 8da957f77edc5723f4b345ad16f4e025
BLAKE2b-256 f7be9f36c96f04eda483588cfe21bcf23e58d763624e916332886b55b68c4e53

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pi_recipe_check-0.7.0-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 137f9a96e27a636233ac233154d88e1b00dc86b208e97b330c57180f2f6de702
MD5 777c0e991c942e69807ca37b27992407
BLAKE2b-256 b0bf776400cb637cd89ce896ed5105db943146a55bafc54f72bb9635cfefdee4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pi_recipe_check-0.7.0-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5f01164a1f8c4544c3ed8a5ae59f7424c830516242b28a65db7fe984eeb70dea
MD5 1be4e6b644b13ebd2c083f1ea179cb2b
BLAKE2b-256 3bd0c4ed116cacde94c48b72f918ba233655f423924fe7fddec5210cbceaff1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pi_recipe_check-0.7.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6ca2805cbe87fab133f6e596e2a2bc1e6c3016f2b0c7468e3196d0c8b00cb58
MD5 fc4ee2e97cfad6c727506977652c4b96
BLAKE2b-256 085ecf2fb78e8132a916d60f214e68d946f435fc549bd9925bd18b07e09f9f83

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pi_recipe_check-0.7.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8b13048f7eeb009a1895cb5e7c97bf788a62116296535cd5a0d3a5fa1239362b
MD5 664b8aa74bc5915f601cd1c864b0c9c9
BLAKE2b-256 5fc90534dda3ceb1b2e3cc074734504a005833c16e03d450ed55a3e6d59482d2

See more details on using hashes here.

Provenance

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