Skip to main content

BAML python bindings (new system, bex_engine)

Project description

baml_core

Python bindings for the BAML runtime (powered by bex_engine).

baml_core 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_core 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


Release history Release notifications | RSS feed

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_core-0.12.2.dev2026061203-cp310-abi3-win_arm64.whl (5.7 MB view details)

Uploaded CPython 3.10+Windows ARM64

baml_core-0.12.2.dev2026061203-cp310-abi3-win_amd64.whl (6.0 MB view details)

Uploaded CPython 3.10+Windows x86-64

baml_core-0.12.2.dev2026061203-cp310-abi3-musllinux_1_1_x86_64.whl (6.9 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.1+ x86-64

baml_core-0.12.2.dev2026061203-cp310-abi3-musllinux_1_1_aarch64.whl (6.5 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.1+ ARM64

baml_core-0.12.2.dev2026061203-cp310-abi3-manylinux_2_24_aarch64.whl (6.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.24+ ARM64

baml_core-0.12.2.dev2026061203-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

baml_core-0.12.2.dev2026061203-cp310-abi3-macosx_11_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

baml_core-0.12.2.dev2026061203-cp310-abi3-macosx_10_12_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file baml_core-0.12.2.dev2026061203-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061203-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 371ed13deed99e73b928b355aa24c1a752ecd368ece7ff97c87d69837a4ff49a
MD5 c6c7bf52ea1bcb4ffff3bd6590fbb100
BLAKE2b-256 062f6e2163cd026aae2376f1fcf69c84e392477ba5ae836f3f0a0afacb97b448

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.12.2.dev2026061203-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_core-0.12.2.dev2026061203-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061203-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f4e3e406c0457a9b0b6b4d92e22f8eca8cb5452d552c45812eb2779167678ddb
MD5 880060a0ac59dff671ace476f96e8e35
BLAKE2b-256 13469eed0c08abbc91b7bde3cc076f088a9fbceb755f2343c4d87c5c0361deff

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.12.2.dev2026061203-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_core-0.12.2.dev2026061203-cp310-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061203-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 9ea868d9b1efc5f542d2a8eae672d095475143c8ca83a31b30222497179269ed
MD5 51af67551ce81726fec34a23f980fe7e
BLAKE2b-256 55ce16fb42ee6706ba2cbe5d47ca2672741cc10a775aff956a69172653b3a965

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.12.2.dev2026061203-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_core-0.12.2.dev2026061203-cp310-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061203-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 0498a48a9b5b1d92bb12b75dcd338955517759f073b13ca9418fe935ef726d4a
MD5 4e7ae0738bc75e31f2b5a0626174bd14
BLAKE2b-256 8ac676b684b93fc0fb07009e3a0b3df3aead24e9d102cc4b5126ad908b9c2833

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.12.2.dev2026061203-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_core-0.12.2.dev2026061203-cp310-abi3-manylinux_2_24_aarch64.whl.

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061203-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 c4be0bb0d696dd84f99284972a8f3ea424e6ae333d4d71f9e5d2d73740ca004d
MD5 d8b70468275703ec4b05eeecc23ce54d
BLAKE2b-256 75887312454cb1c974e3f1a22fc497ed13989e75a4925eee5e481a0819100851

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.12.2.dev2026061203-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_core-0.12.2.dev2026061203-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061203-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 36c5fa5f0458f689d3a3f7017a843e634c63eff54b88292fb22749ff246e15f8
MD5 d07c028d25d3232dd87f00cc31606c24
BLAKE2b-256 c77970057898f419db745e8709dcfd8e80cda8aa1da9dccfe71aae011ad7bb0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.12.2.dev2026061203-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_core-0.12.2.dev2026061203-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061203-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77e97f309eba679e17a33598cde0bdc3561e56c88197c01eadfbb78dbe514e7b
MD5 5ce525d216cebaa34bc533c4c6efb0ae
BLAKE2b-256 6aefad50bc8cc0b1c658883545c587ae19404e7d541ec54a19d3f25c3361cc36

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.12.2.dev2026061203-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_core-0.12.2.dev2026061203-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061203-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ec2a3aafca3e6f47639e1df42300f06fd93ee9c1b6c59404c9ede5008c23549e
MD5 6a0e3654fa9dae351c7d0a58331f3eb0
BLAKE2b-256 8d1199c8b0df17a931dbe5a050b510b4c291a0b826c88ef3f86d4d99a98da9f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.12.2.dev2026061203-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