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.14.1.dev2026070800-cp310-abi3-win_arm64.whl (8.1 MB view details)

Uploaded CPython 3.10+Windows ARM64

baml_bridge-0.14.1.dev2026070800-cp310-abi3-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.10+Windows x86-64

baml_bridge-0.14.1.dev2026070800-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.14.1.dev2026070800-cp310-abi3-musllinux_1_1_aarch64.whl (8.1 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.1+ ARM64

baml_bridge-0.14.1.dev2026070800-cp310-abi3-manylinux_2_24_aarch64.whl (7.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.24+ ARM64

baml_bridge-0.14.1.dev2026070800-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.14.1.dev2026070800-cp310-abi3-macosx_11_0_arm64.whl (7.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

baml_bridge-0.14.1.dev2026070800-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.14.1.dev2026070800-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1.dev2026070800-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 4af2b7bd9c8c0e9774bd0877a058356307ba907ad7f941f4dd20a674b153e227
MD5 99f1cd4fcbf3d82fd0f10b1e641ea122
BLAKE2b-256 2ceb584bb6954df8bff467feb6ed759d12cb32d55f5b300937c59d8d75ef06c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.1.dev2026070800-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.14.1.dev2026070800-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1.dev2026070800-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7c55318c478ce9e363ee323c1b82042a709985c96263063ce61c46a18ffa2035
MD5 e2c15aeb287e697dc7e9ff643865cff1
BLAKE2b-256 33df3f548ffa321497553fd8715527bd8fcc775db4724833cdabf1d9b979061f

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.1.dev2026070800-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.14.1.dev2026070800-cp310-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1.dev2026070800-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 4e0139e713c63e0412b0414c5a77731603501d9c884a232ff09d096371c768bc
MD5 e46f99a27cfc7c21d6fe80fa32256943
BLAKE2b-256 158d675af919b57ca5161f4b8d911f6dd559402e4c6c544bba004aaa6bcd1d11

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.1.dev2026070800-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.14.1.dev2026070800-cp310-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1.dev2026070800-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 42a22e9f8d484f5f16004827aa8db1ebcdf6146289feaadfcb9dd86586b2d364
MD5 a6783792434850000800ede2299da16b
BLAKE2b-256 abe64893c566733be411a46fd021e64c3e5f13d8d45e13bca6f3c5af48eba5ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.1.dev2026070800-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.14.1.dev2026070800-cp310-abi3-manylinux_2_24_aarch64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1.dev2026070800-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 f3a5b6a16ecdd00d7bb6228b61e126ae06306deaa035b001f96c34de5c91dffe
MD5 ef97e908ce919156c737c8ae698f7471
BLAKE2b-256 d7c865f189a3ed9de7b292413c16e6fcc0f7bef254dc5474e23873ed7d27a988

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.1.dev2026070800-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.14.1.dev2026070800-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1.dev2026070800-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3fe053d32c16d6f5c38dba71f11848f9b28832fce30c762035bc6162bc74fa82
MD5 0ddbb91c89e4f0834bd1a637a6562afb
BLAKE2b-256 b40040df6d558d6960a243dec93208e410b38576e695950088e03a4a26781553

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.1.dev2026070800-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.14.1.dev2026070800-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1.dev2026070800-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59e3ed3f2fd5d4142d62fb613baf7d366ada3984720b982c94a8870221e4fa44
MD5 cf4df6672d941a3251d9c36721436e73
BLAKE2b-256 63f5d620e3aaab78dc5e416c8de2b21ad347b292c922f8fa47920e70b4218c56

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.1.dev2026070800-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.14.1.dev2026070800-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1.dev2026070800-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6594f3efa2b064fc4b7ef31f6cca5e10ac69ed4b2731cbc4de91cb8b2f8dbe06
MD5 1a2792660b94a17c773f6d5e80c8ebf3
BLAKE2b-256 975eac89632bf8ed3e5448536ec0fe14483cd8930a2768b3d7774b87e23412a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.1.dev2026070800-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