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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

baml_bridge-0.13.1.dev2026070704-cp310-abi3-musllinux_1_1_x86_64.whl (8.5 MB view details)

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

baml_bridge-0.13.1.dev2026070704-cp310-abi3-musllinux_1_1_aarch64.whl (8.0 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.1+ ARM64

baml_bridge-0.13.1.dev2026070704-cp310-abi3-manylinux_2_24_aarch64.whl (7.8 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.24+ ARM64

baml_bridge-0.13.1.dev2026070704-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.dev2026070704-cp310-abi3-macosx_11_0_arm64.whl (7.8 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

baml_bridge-0.13.1.dev2026070704-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.dev2026070704-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070704-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 47d990915d671d97f09f7936a4567fa981bb41e86c466e401f851a73eca365c2
MD5 16d117879f467b8613f366aedcb32842
BLAKE2b-256 1959a644ac7b935487dc34e641cd2bb359babf44cf08b915a30d0bd1fc51ed07

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070704-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 289ea1818c809a85fdce1e5d4ccfff27fc15da09e3aba0130f2e7f50bc239d99
MD5 00c3cdf1162c5fa80b1246f94729368a
BLAKE2b-256 2ee97cbeed18887a443ca54867096007c402b7606816cb9543fddadcf171f264

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070704-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 a5be79bb9ddbbc273133166eca65ce2b9e77bf9e7fc72bae79946eaad2532d3b
MD5 438e031df01aa051ac1c7b8d819393f6
BLAKE2b-256 3f544e398ee07abe2f490f7cf603577e3c46a9fff50e4688c6b30329381ef37b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070704-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 2e09b6f2ac19eff44f8b9be967c72b8bacd9cf8eb4f313849a92f2da62164513
MD5 15ea7b9f0a706f8c0210277f62fbf0ec
BLAKE2b-256 30c0ce202e7931e8c5f55abf4b796e8a76febce428ca4b24942d8bfccf92a4a0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070704-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 c7341e856ab2d4d90a4dc3a480fd4819e23584306747594a24aa9609754b3e46
MD5 e5e48784b13f0e17326607631f14ad67
BLAKE2b-256 02dd2064baef4a19bf405675907598b32aab52a614657d2a8a18ec8a609735bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070704-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cee9a677f9649d09f4d32d820414c9b8fee7998525f56a223493fdea0510629b
MD5 34e2dd1c496a6f943cf203a66abc2a6d
BLAKE2b-256 99d2c94c946fc1b306a9f1d813999c81e7b4d2bc910c86d209600fd2219a8f80

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070704-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9a21f712921c29318db33a05aa213764dfc9db0ccc37949f39b761f5321732b
MD5 aaecb1456182dcb4b1eb684c51a15b62
BLAKE2b-256 235206895302e47f928d7918679232a9fccb5c21b84faee00147954478fd23ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070704-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6b13639f4d0584e1daf44de637482d805f47cc70b90a3e9bf838ddde0c776fea
MD5 06f11a79c89a727a50704088693254f9
BLAKE2b-256 81d61f62cc80c9d18d38193984b5fc48a24d8e9674cffb917e3d6072fe954b88

See more details on using hashes here.

Provenance

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