$npx skillfedfor your agent

baml-bridge

BAML python bindings (new system, bex_engine)

With conditionsPyPI Python ModulesReleased Aug 202687.9K downloads / moApache-2.0Platform wheel

Decision gist · record as of 2026-08-14

platform wheels — baml_bridge-0.16.0-cp310-abi3-macosx_10_12_x86_64.whl · baml_bridge-0.16.0-cp310-abi3-macosx_11_0_arm64.whl · baml_bridge-0.16.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
v0.16.0 · released 2026-08-12 · Python >=3.10 · 2 runtime deps: protobuf, typing-extensions

Yes, if you are using BAML-generated Python code—it is the required runtime layer. Install directly only if you are authoring BAML runtime extensions or running bridge tests; otherwise, it will be pulled in automatically by your generated SDK. No known vulnerabilities; active maintenance and permissive license.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; protobuf >= 6.31.1 must be installed.
  • Medium install friction due to compiled wheels across multiple platforms (macOS, Linux, Windows, ARM/x86).
  • Released 2 days ago with active maintenance status.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

last release 2026-08-12 (2 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 87,864 downloads/mo, #13,764 on PyPI

Verify before relying

from baml_bridge import BamlRuntime

rt = BamlRuntime.initialize_runtime(
    root_path=".",
    files={"main.baml": baml_source},
    sdk_root="my_sdk",
)
  • Whether direct use outside of generated BAML SDK code is documented or supported.
  • Performance characteristics and memory footprint of the BamlRuntime singleton.
  • Compatibility guarantees between baml_bridge versions and generated SDK versions.
Same gist for agents: .md · .json

What it is and what it does

baml_bridge is the runtime layer that powers BAML SDK packages generated by the baml-cli tool. It provides the core BamlRuntime singleton that manages BAML program execution, handles protobuf serialization and deserialization, and exposes observability primitives (Collector and BamlCtxManager) for monitoring and debugging. The package wraps the bex_engine backend and is designed primarily as an indirect dependency—generated BAML SDK code imports it automatically at runtime.

The package is built as compiled wheels for multiple platforms and Python versions (3.10–3.13, CPython). While it can be used directly for runtime authoring and testing, most users will encounter it as a transitive dependency of their generated BAML SDK. It requires protobuf >= 6.31.1 and Python 3.10+.

Use it for

  • Running BAML programs generated by baml-cli generate --target python without manually managing the runtime.
  • Authoring custom BAML runtime extensions or bridge implementations.
  • Testing BAML SDK packages that depend on baml_bridge for initialization and execution.
  • Monitoring BAML program execution via the Collector and BamlCtxManager observability APIs.
  • Integrating BAML-generated code into Python applications that need structured LLM interactions.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are using BAML-generated Python code—it is the required runtime layer.

Install directly only if you are authoring BAML runtime extensions or running bridge tests; otherwise, it will be pulled in automatically by your generated SDK. No known vulnerabilities; active maintenance and permissive license.

Install

baml-bridge on PyPI

Before you install

Medium install friction due to compiled wheels across multiple platforms (macOS, Linux, Windows, ARM/x86). Released 2 days ago with active maintenance status. Requires Python 3.10+.

Requires Python 3.10 or later; protobuf >= 6.31.1 must be installed.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

from baml_bridge import BamlRuntime

rt = BamlRuntime.initialize_runtime(
    root_path=".",
    files={"main.baml": baml_source},
    sdk_root="my_sdk",
)

Verify before relying

  • Whether direct use outside of generated BAML SDK code is documented or supported.
  • Performance characteristics and memory footprint of the BamlRuntime singleton.
  • Compatibility guarantees between baml_bridge versions and generated SDK versions.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionMedium. Platform-specific wheel
Runtime dependencies
2 packages
protobuftyping-extensions
MaintenanceActively maintained 2 days since the last release
First released
Downloads87,864 / month, #13,764 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Libraries :: Python Modules

Evidence: baml_bridge-0.16.0-cp310-abi3-macosx_10_12_x86_64.whl; baml_bridge-0.16.0-cp310-abi3-macosx_11_0_arm64.whl; baml_bridge-0.16.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; baml_bridge-0.16.0-cp310-abi3-manylinux_2_24_aarch64.whl; baml_bridge-0.16.0-cp310-abi3-musllinux_1_1_aarch64.whl; baml_bridge-0.16.0-cp310-abi3-musllinux_1_1_x86_64.whl; baml_bridge-0.16.0-cp310-abi3-win_amd64.whl; baml_bridge-0.16.0-cp310-abi3-win_arm64.whl

Tags

Capabilities
BAML runtime bindingsBAML Python bridgeprotobuf encoder decoderBAML SDK runtimebex_engine PythonBAML observabilitygenerated BAML code runtime
Topics
bamlruntime-bindingsllm-framework

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “BAML runtime bindings”

  • baml-bridgeProvides Python bindings for the BAML runtime, exposing the…
  • baml-pybaml-py is the Python runtime for executing BAML programs, a language…
  • PyQt5-sipPyQt5-sip provides the runtime support module for PyQt5 bindings,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also baml-py · protobuf-py-ext · protobuf-py · bbpb · opentelemetry-exporter-otlp-proto-http · databento-dbn · protobuf-decoder · opentelemetry-exporter-otlp-proto-grpc · brotlipy · smg-grpc-proto