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

Uploaded CPython 3.10+Windows ARM64

baml_bridge-0.14.2.dev2026070902-cp310-abi3-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.10+Windows x86-64

baml_bridge-0.14.2.dev2026070902-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.2.dev2026070902-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.2.dev2026070902-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.2.dev2026070902-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.2.dev2026070902-cp310-abi3-macosx_11_0_arm64.whl (7.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

baml_bridge-0.14.2.dev2026070902-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.2.dev2026070902-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070902-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 cbdd47d9cfca83a62db25ca36d1c76d0e696c5dde24194ce81539b3dc05570d1
MD5 eccac4e945522576dcaef541ae8987b7
BLAKE2b-256 caa1ebe172c1ef5a5381dd42f3e3583ecee26ad8085da06b9dbb90435f05cc4b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070902-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b1ed70f13579c76a770b669bc504df6498eb4a04e0923a50a8ab98f1820f4d77
MD5 b1e4ded93e551e1b0404248faf202734
BLAKE2b-256 e529a32d506072ebfa02bfd057e3845257599b29517a0253e24cd167b8898be9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070902-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 4b214f7e41649a89d9ca2ff7aa2c5a631a4dbc159e338c3bb8b8e7f8330a3ae7
MD5 8b9a2d6905d4e4fed218c4d2b75dc368
BLAKE2b-256 72ef3aba8cffe606560b5ff5855a3fcc96b2f31f8f2f7a0e15c7a0697c94c44e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070902-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 edf6d3695b8dd5bb65398adcd5ba17781777939290a9c0adc7b7a214dae30de1
MD5 67f718434d146fb14ffac6d646d9665a
BLAKE2b-256 00579f1755c4216579646566eec2dff344671e67c19ad4c42094694cff6ac840

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070902-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 09b1bb574148cf1d0424d61efcf692260a7b1dc10d867928c818b04b9db77f23
MD5 f7a2833a288192768028cc75f7e166fe
BLAKE2b-256 4e69c331db39803cc02d201651fcde68177d2407311657f517b8295042711564

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070902-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 184fe21b93502fd0515e4c87beabab7abd8cd831fb3fe1daffd986338424a005
MD5 ceeb295083b732a1061db62d5c3e171f
BLAKE2b-256 03c5be31cea8e7e79822b3ab883eb2c2083a54f95a018d3a7155014ea79bacfa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070902-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25db3d394f0d69c6d120920b9e8f4c950d00505dd45275b03ebeeff0060bcd30
MD5 2ee66bfb806b6d13d507f3e0e7ee1366
BLAKE2b-256 24ca7407dd1163514e07bf412cfb682b8f8634f63ca5cc4486636a6e1835615c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070902-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cf6fa76b39bebce6c981a9cdc70e5be0c64283fbce975783a9a59b12d06e0007
MD5 5364830fef95475dc50f3741be01a7fd
BLAKE2b-256 602ff089c17101e13948998e46d8d4fee6cbf95b3a7dfe3f09ef9b073b43c1e2

See more details on using hashes here.

Provenance

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