Skip to main content

BAML python bindings (new system, bex_engine)

Project description

baml_bridge

Python bindings for the BAML runtime (powered by bex_engine).

baml_bridge is the bridge layer that generated baml_sdk packages import at runtime: it provides the BamlRuntime singleton, the protobuf encoder/decoder, the function/method factories, and the Collector / BamlCtxManager observability primitives.

from baml_bridge import BamlRuntime

rt = BamlRuntime.initialize_runtime(
    root_path=".",
    files={"main.baml": baml_source},
    sdk_root="my_sdk",
)

This package is generally consumed indirectly via the code generated by baml-cli generate --target python — direct use is reserved for runtime authors and bridge tests.

Requirements

  • Python 3.10+
  • protobuf >= 6.31.1

License

Apache-2.0

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

baml_bridge-0.13.1.dev2026070803-cp310-abi3-win_arm64.whl (8.1 MB view details)

Uploaded CPython 3.10+Windows ARM64

baml_bridge-0.13.1.dev2026070803-cp310-abi3-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.10+Windows x86-64

baml_bridge-0.13.1.dev2026070803-cp310-abi3-musllinux_1_1_x86_64.whl (8.6 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.1+ x86-64

baml_bridge-0.13.1.dev2026070803-cp310-abi3-musllinux_1_1_aarch64.whl (8.1 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.1+ ARM64

baml_bridge-0.13.1.dev2026070803-cp310-abi3-manylinux_2_24_aarch64.whl (7.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.24+ ARM64

baml_bridge-0.13.1.dev2026070803-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.4 MB view details)

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

baml_bridge-0.13.1.dev2026070803-cp310-abi3-macosx_11_0_arm64.whl (7.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

baml_bridge-0.13.1.dev2026070803-cp310-abi3-macosx_10_12_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file baml_bridge-0.13.1.dev2026070803-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070803-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 06b1e956fb11fc8075f40ddc04b67d9149408396489b8a2ed7f44626224529c4
MD5 b76a7e6ca33180dfe8b9667975b6ff4f
BLAKE2b-256 7bb7b27db3a4171124d31419ac8df2f098ce656561b53973c0c21d8042048808

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.13.1.dev2026070803-cp310-abi3-win_arm64.whl:

Publisher: release-baml-language.yml on BoundaryML/baml

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

File details

Details for the file baml_bridge-0.13.1.dev2026070803-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070803-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c7e6eff034294bca0648e78c765cbb725f8a331ea85d32b0c8390eccf062d3ec
MD5 804d0462f69934133c6ba89d1600f8ac
BLAKE2b-256 5312ce22b7bbb6b38b458432d0c08659c36365677658ed63f5950e332373d47a

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.13.1.dev2026070803-cp310-abi3-win_amd64.whl:

Publisher: release-baml-language.yml on BoundaryML/baml

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

File details

Details for the file baml_bridge-0.13.1.dev2026070803-cp310-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070803-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 2811e457824fc4a870f5d4d424b5aa021fa62c5cf1c23ffe356f7835ad54ddde
MD5 b849e9df2440ad7e66682582179f4765
BLAKE2b-256 79d7bd0f1b2a208a24e8e79c33670928eb740040971ff6d45f36d55e0e6187ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.13.1.dev2026070803-cp310-abi3-musllinux_1_1_x86_64.whl:

Publisher: release-baml-language.yml on BoundaryML/baml

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

File details

Details for the file baml_bridge-0.13.1.dev2026070803-cp310-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070803-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 7c4b9874589cb9cf1ef031f854946e1d19249570171f0ddfaef6f3cf26e0f4ad
MD5 79d5819b83f5551d258d3a788da7d159
BLAKE2b-256 51bbee388bac599c4e4e5699c7d2f9cb9d5041a337a550ca9e377f47249efe11

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.13.1.dev2026070803-cp310-abi3-musllinux_1_1_aarch64.whl:

Publisher: release-baml-language.yml on BoundaryML/baml

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

File details

Details for the file baml_bridge-0.13.1.dev2026070803-cp310-abi3-manylinux_2_24_aarch64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070803-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 373138035b6cb8c17e0a09d9919ff9e2f9b5e9a58491430379ae7c79ea42ff1a
MD5 988a189f05eac4324b4ecbef764c9898
BLAKE2b-256 aefae63cdc0a469c01e8d6b0cfc63f2aeff98a10515bda1fe11cad9120d17f4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.13.1.dev2026070803-cp310-abi3-manylinux_2_24_aarch64.whl:

Publisher: release-baml-language.yml on BoundaryML/baml

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

File details

Details for the file baml_bridge-0.13.1.dev2026070803-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070803-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee8e7826802bc5e7c7e4a2ab972e07b41462167fbc41dabd281360b3dfbd4357
MD5 eb69e472253f9efade0d3d2fa98d90a7
BLAKE2b-256 f8a9a1842ade75596ed138e17d879d367e0c0bfdd8c17b79fd691e0ec739aaae

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.13.1.dev2026070803-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-baml-language.yml on BoundaryML/baml

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

File details

Details for the file baml_bridge-0.13.1.dev2026070803-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070803-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ce23c99defde7c7d829dc59b9fb71bc6ac294dc00fbb3ea334692fd7318ffa1
MD5 6064a95213f597c84fceecec081a5537
BLAKE2b-256 f727063d5183f8e9ec530e508baeb56d830881a1f5f45fb4d9df3818a761c152

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.13.1.dev2026070803-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release-baml-language.yml on BoundaryML/baml

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

File details

Details for the file baml_bridge-0.13.1.dev2026070803-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070803-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9d571286666e39f379b9f955b971c7546ce9e15ec87f180650a4ba1278d3ccb6
MD5 c90c51841cfb665ffe85bc88af88bc28
BLAKE2b-256 372af98373ea49c0be27a1bef746658d93f87324b5eb6637b0c1f2afa135b0b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.13.1.dev2026070803-cp310-abi3-macosx_10_12_x86_64.whl:

Publisher: release-baml-language.yml on BoundaryML/baml

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