Skip to main content

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

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

Uploaded CPython 3.10+Windows ARM64

baml_bridge-0.16.0-cp310-abi3-win_amd64.whl (8.5 MB view details)

Uploaded CPython 3.10+Windows x86-64

baml_bridge-0.16.0-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.16.0-cp310-abi3-musllinux_1_1_aarch64.whl (8.2 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.1+ ARM64

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

Uploaded CPython 3.10+manylinux: glibc 2.24+ ARM64

baml_bridge-0.16.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.5 MB view details)

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

baml_bridge-0.16.0-cp310-abi3-macosx_11_0_arm64.whl (8.0 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

baml_bridge-0.16.0-cp310-abi3-macosx_10_12_x86_64.whl (8.3 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file baml_bridge-0.16.0-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.16.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 99a8685622b32e22d84b708dd0d98749f841ae0b7de527e15175e3c39a0507f2
MD5 33de9758c4d49ab69b289d5fe30ad2ca
BLAKE2b-256 3806dae9adf77c1bc78ecf8d09cb7cf090dd5c44e029b91f6c804d4193eaf957

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: baml_bridge-0.16.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 8.5 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for baml_bridge-0.16.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 647134b12785ff895b57609020e6e4689daeb3784f382d20e9903aba516e7bfd
MD5 89b2d1e9d30cb157944c5a85257baf88
BLAKE2b-256 2ae53a6d60d926bae0c295237a7b8d26b00bf5a3ccf737e7563a5d790d00a12e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.16.0-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 f65209f46f73a434757389023c663cdb71b1243c94a51f093f71f9c7028ff02d
MD5 9e14e2ac73aa63eaebc0bdcd243e1ea9
BLAKE2b-256 f805f166ee6ec7dab1cd60b41fa2e941e7c541287e09d1b2be34e5e07ae1dac3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.16.0-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 5e7f6ead27691004e13c66964e31d26793790f81823918fdb0bbc26c88771404
MD5 2e62dddfeb689d1bb5d8a9dcbc783121
BLAKE2b-256 190e79980cbde0cae6a710b28c55999d016c9ba4bb168057e87e94bc0ca34c0c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.16.0-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 f52d3de963c6aaf63b1dd0bb2f21ca6de55540854f301bde8d06b5f1a2681e57
MD5 160fa6c5d9b550bea8464e50190a7596
BLAKE2b-256 dac787a7fbda82483a85a316a953290a13417f64b52a98b7f0071f8a554687e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.16.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fc1cf6b4883313d069755a209f7261b7ad211558db27424335e65e2a7057ce52
MD5 b4f77efb2a723fb639057cef97747022
BLAKE2b-256 b830b946fd41a6c133e7ccd5d8e426909ee9eaa08616d03961fa1b96a9d720dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.16.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf9bd7603cf29c14576137bffb2636ef9211aec59c82ef27eb44940103804e94
MD5 f72fa98c0d92783f177c580bc4486c0f
BLAKE2b-256 39d4c9c5ce75ae757ad243a854489d5b7270453dc4cd6b9f5cbb1e715bbb2698

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.16.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d0006e3b0d76fec5be4a63ad9eae2f217c463d4eca8657da895f39324b76f407
MD5 302f7f6f0f582abe10e674b7d9f89893
BLAKE2b-256 81420400379ed86eeba32eff89969ea30a18f3b5a56c974231671fa8166e3651

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

0.17.0

8 files

This release

0.16.0 This release

8 files

0.15.0

8 files

0.14.1

8 files

0.14.0

8 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page