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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

baml_bridge-0.13.1.dev2026070804-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.13.1.dev2026070804-cp310-abi3-musllinux_1_1_aarch64.whl (8.1 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.1+ ARM64

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

Uploaded CPython 3.10+manylinux: glibc 2.24+ ARM64

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

Uploaded CPython 3.10+macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070804-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 741066212e87a3ce99739ffbd1b72ab807aa3a7ea766e855003a82afba437ed1
MD5 a7ddb800b797c3fe2bc738db7b9cb815
BLAKE2b-256 5afbd25f1267d8a3234b29017cc7ba269a86eb18e2646e591a4ebddc607dcadb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070804-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7568cd166f11a764dba970bf443d663df635d261c2fa7ed499fdb3ccf9932cda
MD5 af66bffae8717fd4655a210fb6d21f80
BLAKE2b-256 ea93fb895dfb07c54af46ccc9f5a8a2b26b9d35f4f4fbcafbebb6c0d1e2abacc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070804-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 941967af95d6ffc2c96c5401b6480e771b7dbdedd451b84c08b63c2858f499c3
MD5 e0cfa677a61c15bf79e49a45a498711a
BLAKE2b-256 94dc7931c9af5569d832ef2871f4bf44805f389800051f362e10f81f84552535

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070804-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 58a916d9a65b48e931faf50798aa5d47f083bffc8f1aa6b7546deeb35d4ebccc
MD5 649e18ac622908a32f63f74cc1538814
BLAKE2b-256 1de82641ccf2c5f082225f2d6bb8b20c6fe33c21513a77d20974e12186148f2d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070804-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 44291ea35e7064b22ada4d10a7b3547da8f5498db467c9fe13856b14bc237d74
MD5 5a5fab2c365d1a7846021e318e05d3f9
BLAKE2b-256 8204cf82ab920659203a973c729e305e9fdb79a9be545a5fb2d75f8e05028e02

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070804-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e1f9f732f4d9ead7cdd6d14cfd9823f6351850fea794fec30f2f2e2b2c3513bc
MD5 d1ca74f7852b0ce59bed3b65ec120dff
BLAKE2b-256 72fcab8a8909b93f54046f83aff691ca81a32510e5aba1371cfbd73043e1b6e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070804-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a64803fdc3e01589d1f7756e078e2df4fc70d690716411dde4dd57fb277d723c
MD5 05f7e05b38d81b63119357f949320e04
BLAKE2b-256 302769a6afc42d1b3cc6d0d8dc2bc38e8a564ac07cf2260c260129cd20ea7e89

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.13.1.dev2026070804-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 248e349c962d935170350459a7790b427bf25470dfcde66ef39c9388bbf781af
MD5 37cfd644e065f8e3ecea3beb7ca667c2
BLAKE2b-256 b99fab15cd27b4cd9574d475743b4f3cfe6f307c03d7b53b86aa6a3a54cfd85a

See more details on using hashes here.

Provenance

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