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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070800-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 618dfd620cb13e88fbed69aca873b1d3141d858460a0700de29389d4cc206c33
MD5 5b1a450c0e93ee359ea269b3423e87e5
BLAKE2b-256 708b7fd760ebb043f9b4105786fb0df14da0d52c9c34c99f24f9fd8159dc118c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070800-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c6f0bdaf5639396ba61734f285187f0243304a7abd5dbb7b76542f8b681c6d9f
MD5 b773ac2c2642c9d2ef2d6007e46a60e2
BLAKE2b-256 5cec4def6ae598a4b0efa2fbb5876714c0703b233b4bc719748b823c8507a201

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070800-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 2d465ea1116fb176341b765bcc164404fd546e2a685c0865e2f72246478e1403
MD5 2d057c62de2f44738c91c1f06edf7ce0
BLAKE2b-256 f211aea53970e6bd089f51693bca3baa6649b87c2ad50abcd1827d1496a23e92

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070800-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 32c4ee025a8094a3886ad30a3e1081f115b1c0a85eebd3aea31cab18319d879a
MD5 02ee833c2aae09422eb1f3df5b2df79d
BLAKE2b-256 bfcdbd5926b24d42153e71b6d38e96021fd0f788f407d241565d13fabd95165d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070800-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 501a0ea9b6ebd2e51197ddf27b6a8d6fdd7fc920774eef21fcc581215c698b62
MD5 d54f7856ba5c7eefdbd58d5bd9c193f6
BLAKE2b-256 b8e6347be86b6b5419c33c3bd8c61871a8a1df80e98152dc791461abaf33542f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070800-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eac7f641599413d250a38df6b18791da447225425cf2caa2f4dd2132cc728b88
MD5 5071b0dbc75e7a75ef6e7c57f837458c
BLAKE2b-256 bf5779614855a9fe8d56a0fc786d2f2ff24d0439b134a2ac873c25678c9e6de3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070800-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2812867f78abcba3492b0198ed146c2e4e39f2e5502199ff2898a021e16f1e71
MD5 7533e84f6a4e674da4967b28da753799
BLAKE2b-256 5f77dc99f7c6eb6da7ea1d8b350de1e84b9ef79cb2f811d389832d56f4fc81c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.2.dev2026070800-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ecd7d0994057732bacd46365263d5047e2bbad63878a16186823aa3b8497490f
MD5 429afdafca6ddd6ab22c212add04f2a3
BLAKE2b-256 4fbe551067e1445150715bae23424fcb3764f517f96ea885e609942d438d6738

See more details on using hashes here.

Provenance

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