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

Release files for baml-bridge 0.20.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for baml-bridge 0.20.1
File
baml_bridge-0.20.1-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details
baml_bridge-0.20.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
baml_bridge-0.20.1-cp310-abi3-musllinux_1_1_x86_64.whl CPython 3.10 abi3 Linux musl 1.1+ x86-64 Details
baml_bridge-0.20.1-cp310-abi3-musllinux_1_1_aarch64.whl CPython 3.10 abi3 Linux musl 1.1+ ARM64 Details
baml_bridge-0.20.1-cp310-abi3-manylinux_2_24_aarch64.whl CPython 3.10 abi3 Linux glibc 2.24+ ARM64 Details
baml_bridge-0.20.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
baml_bridge-0.20.1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
baml_bridge-0.20.1-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 83.2 MB

Release files / baml_bridge-0.20.1-cp310-abi3-win_arm64.whl

Download URL baml_bridge-0.20.1-cp310-abi3-win_arm64.whl
Size 10.4 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
3f8151ada3464409163b2ca3ddc8e7d9972659d4b7bbc31f0a02447e3a1bba5e
BLAKE2b-256 checksum
How to use checksums
79beab887945694ba23cacd4995b932bb61f8fc31f24119a189abf496c25401a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / baml_bridge-0.20.1-cp310-abi3-win_amd64.whl

Download URL baml_bridge-0.20.1-cp310-abi3-win_amd64.whl
Size 10.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b12d710384c92c1f8ceb93f28bb415ff03e9bf6e2c6a34881991cfa36033321f
BLAKE2b-256 checksum
How to use checksums
f6353b4d8f65031ad6511f289fe0bc4f68098de98689bbfbb415c863b1746f7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / baml_bridge-0.20.1-cp310-abi3-musllinux_1_1_x86_64.whl

Download URL baml_bridge-0.20.1-cp310-abi3-musllinux_1_1_x86_64.whl
Size 10.8 MB
Tags CPython 3.10 Linux musl 1.1+ x86-64 abi3
SHA-256 checksum
How to use checksums
ac9019cfa95cc5d0882825dd8b1fef0ebf1d5047cee14ab4a7767f4692d37098
BLAKE2b-256 checksum
How to use checksums
0496857b49eba70742a2e459f6142dff54bb239970e2c30ea485a2cdd3e06fc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / baml_bridge-0.20.1-cp310-abi3-musllinux_1_1_aarch64.whl

Download URL baml_bridge-0.20.1-cp310-abi3-musllinux_1_1_aarch64.whl
Size 10.2 MB
Tags CPython 3.10 Linux musl 1.1+ ARM64 abi3
SHA-256 checksum
How to use checksums
f1246cb4b2bd28b5cd43b34727dc1bf6c7532c255dcfa6ab59ee84cdd70389fe
BLAKE2b-256 checksum
How to use checksums
f1bc5eff83ff6222bfad4e04a22c8c8dd94b4e39566cff150ab4670757d982a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / baml_bridge-0.20.1-cp310-abi3-manylinux_2_24_aarch64.whl

Download URL baml_bridge-0.20.1-cp310-abi3-manylinux_2_24_aarch64.whl
Size 10.0 MB
Tags CPython 3.10 Linux glibc 2.24+ ARM64 abi3
SHA-256 checksum
How to use checksums
b59d78ba86d73041b26d6000640aa8f6e3e875d0d4132573340695da90f71f8c
BLAKE2b-256 checksum
How to use checksums
edc4eab78195d38babbd5ec9d313a8fa03a8d9c018deaa006b3260903ecc8edf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / baml_bridge-0.20.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL baml_bridge-0.20.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 10.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
c0ba0507758d44c0d0714ac33942da53113c224f34385f9c5618c410f3fc3306
BLAKE2b-256 checksum
How to use checksums
6de32c6b576fd64a7307149ac3250a861735e1a1d70c9fc480a402994163d239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / baml_bridge-0.20.1-cp310-abi3-macosx_11_0_arm64.whl

Download URL baml_bridge-0.20.1-cp310-abi3-macosx_11_0_arm64.whl
Size 10.1 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
17974a3e475adeef7fcd1d99382ca2d100e709e21b0f5b1bf64a58d42b8833a7
BLAKE2b-256 checksum
How to use checksums
9fedd482c1f1063f20315a1d79b8634316c4a786b71ced8f936e00109b11f3d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / baml_bridge-0.20.1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL baml_bridge-0.20.1-cp310-abi3-macosx_10_12_x86_64.whl
Size 10.4 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9bbadb15e891e0656a918e10ef8130764b6a27e05a3495d2931f489bbd6e2ee3
BLAKE2b-256 checksum
How to use checksums
430139904fc7b61b50b47a7604f2ee3f9f492df2237c9c12297cc7fe58afa731
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.20.1 This release

8 release files

0.20.0

8 release files

0.19.0

8 release files

0.17.0

8 release files

0.16.0

8 release files

0.15.0

8 release 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