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

Uploaded CPython 3.10+Windows ARM64

baml_bridge-0.19.0-cp310-abi3-win_amd64.whl (10.9 MB view details)

Uploaded CPython 3.10+Windows x86-64

baml_bridge-0.19.0-cp310-abi3-musllinux_1_1_x86_64.whl (10.9 MB view details)

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

baml_bridge-0.19.0-cp310-abi3-musllinux_1_1_aarch64.whl (10.4 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.1+ ARM64

baml_bridge-0.19.0-cp310-abi3-manylinux_2_24_aarch64.whl (10.1 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.24+ ARM64

baml_bridge-0.19.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.7 MB view details)

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

baml_bridge-0.19.0-cp310-abi3-macosx_11_0_arm64.whl (10.2 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

baml_bridge-0.19.0-cp310-abi3-macosx_10_12_x86_64.whl (10.6 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: baml_bridge-0.19.0-cp310-abi3-win_arm64.whl
  • Upload date:
  • Size: 10.5 MB
  • Tags: CPython 3.10+, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for baml_bridge-0.19.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 ca29cb7d737a9a083cc86b9f7ec787ddd212bec1f1586f43660f2b1ee5363e8b
MD5 f3c59fa9db3dc216dad58fb1d7823e31
BLAKE2b-256 23260d6fd070c3e9abbe890b90b2771f9348b311944bf7ad6b6f94455e0e5ba2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: baml_bridge-0.19.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 10.9 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.19.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 807edf320b37a00de09925181a8b30476fd46f956e834c2468b08387c54814ea
MD5 6bc9bcc17b198b67af57337c2fe89055
BLAKE2b-256 37358a6e4f0b57265aee0f8ea8cabe2da9d70b13434e8d05ef60b87a811a9adc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.19.0-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 ab970663343a94f41f84c534992a37541316391b4969bc1c890f2b60ed3043c3
MD5 fb2fd89ac24169b490674d105906d305
BLAKE2b-256 bb115f97df7d77c8115a51ff439ccfca842cd8d405efdf7691e802a3d0993f8c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.19.0-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 3bdfcd945cf40c110aa6978562f7480412535d2c3e08d287c81352cb2b9f1dc7
MD5 f232d61bd116c5d543893b3c8fe58e0e
BLAKE2b-256 bbf1437d2d29876f2c792705751eeca9d9c897e570a75256f27320d7c33ccbd6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.19.0-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 0231cfb3fa0b5de3368f248217ddc7efef856bfcca8dd61b15511ac88a806ca7
MD5 3bd219010d53a7aae852d62954fc8fea
BLAKE2b-256 e998b5fd3ba490f64320517378da9a261a5bdb68e8d8b1c9a5885e0fb9f8e323

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.19.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 16c44de91a1e68c13a0398de81b86e62ced4dd6081696e2db7d13052d5039147
MD5 d6ffa71d030aa7ee2cecad36956ed23b
BLAKE2b-256 38195fcae5254a5474bdcf7aea120031c37c70c1a811eb13eb1a83faf8951d42

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.19.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 692b25cf558de5cfa8189e7b106c2a5162367308bbf3fa5e4ae7153b77c23659
MD5 d5f1a8d454215d5a484e8bb39df1a8dc
BLAKE2b-256 9b558bf29406c55bfd980bee65d452c089a8c954ebe84ab4f281ee35f7e98e83

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.19.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 46a036e753ab845ad246946c64eeb3ceb769a4eecb04f10cf8160da09a686de0
MD5 c5d71b84adcdac856f580ac87260de44
BLAKE2b-256 0a638fda9751eb4712ab811034ae0acd26a71d76bdf22d73ac38e1125b9de9f6

See more details on using hashes here.

Provenance

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

This release

0.19.0 This release

8 files

0.17.0

8 files

0.16.0

8 files

0.15.0

8 files

0.14.1

8 files

0.14.0

8 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page