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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070901-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 1b3bab54cf5287f77b4a0709d239d43517218977c0243a41ad860f64face00ff
MD5 f4cd34916f76beb40fcac51a38a02ff0
BLAKE2b-256 c888bd467ebcd24cf1c86da6318ac76564809c6c193d97a0269cd6081984302d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070901-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0027db4681b0bc09dbe01a72c3b48a5e1a24203652e3ab26a00b2016f20d8868
MD5 a34270e36516a4824c3f3990d4b18b72
BLAKE2b-256 b238716e35ee0b233daf4bfe61652f31f8408cfb4a5dee5e73e169034a73e397

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070901-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 53fff394c092782614a4d126e541b687b121cd3d76ab20952ac1d6db42f8ff1b
MD5 7da776925ff713dcdbdb6698fb5d3483
BLAKE2b-256 e02350dae9793b20ed400f7e4ef3269c5e8e8e2a3a350c00c7560b550caad1ab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070901-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 99aab4a5089f2690caaa492b0efc17352702e5e8470dc96afa75f82a85919265
MD5 a6a640c319e7c0360f0d5f83dd1ad070
BLAKE2b-256 ef5597a71f06c83d105cb5c55f409c5cc8ccb97ac2f0b40d2eee64a2aaf110c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070901-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 f36e6a401bbb9190ed502d911d5dc6ce92c6166d3e772eddad2104b6d91eb864
MD5 a40fa7d1ffb9f91532d85754e82f5eae
BLAKE2b-256 78ad641a1b24c7a36a4ca761844ccc46914c15296db8ed63ae8aec00665fc522

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070901-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 882622cfb76b8711d204e9d54b156109a7a9ba3fc467a4242a8a53ad1588aeb6
MD5 79b2df117bac2486b12e216f2d9660da
BLAKE2b-256 d78885c8a4313e88e4bb302dda5e81112bf4787152c3bd50a2c7544fdc612aa9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070901-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 480f1857c846ee8837693b6619613eb88af9f5b6b6c41c0b797863d58e35e35c
MD5 a12c7b8c79a194986f6dab18ffe4cdc3
BLAKE2b-256 491bb4781d74fdcfd3f2520da28921a4da62f6b9aead1fd6ccd29a12b170b1d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070901-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 65bee1b9a1c3136cd950176f1ab995b8dea28dc309d402cbb006522a02b0d437
MD5 cbcbdf7cc12ec84eb859696da7c90554
BLAKE2b-256 6563468c4da32d0b87375f31aaa80bde573143f2d5758ede63725805d856df1c

See more details on using hashes here.

Provenance

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