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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

baml_core-0.12.1.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.1.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.1.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.1.dev2026061203-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.8 MB view details)

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

baml_core-0.12.1.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.1.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.1.dev2026061203-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for baml_core-0.12.1.dev2026061203-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 3cfacde4eb98301ad52602112a396483b5907fc7dd7c70ae73d2296105b92e07
MD5 749f0e4fe03d64112c7fe6e7ba8229d1
BLAKE2b-256 f219e58499af58965a9b9247dcdea24a521629d7754682a2fd16e707af96f6f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1.dev2026061203-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3cfbe44e861baada4e9f58aff75491d953e9e89eb531bdc7adefb92dae20c96d
MD5 75c47caf28e0bc5d7ad1e1e6f8d925af
BLAKE2b-256 df6673f718d414405f8e6f1a4ed94e20d30f0653410986e35be5d035540613ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1.dev2026061203-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 ed5e81e9e2a4cede19e102246687964d36c36abd7859a9dc95c64507b5c67387
MD5 cc6b2af9fd08b062483c0d6337b8805b
BLAKE2b-256 2ade738f18a31b8a5909e448b70e6665bb2c0113b0b2b53115085be4430febb4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1.dev2026061203-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 2a71f53cb534bfc5256539ea974e5bb39831dbf1ffb5cbf1027922c32b4ffe91
MD5 cbc7aac7d7c38a55010bd62915f189d7
BLAKE2b-256 4c39b5de257f93c36c6ff4ff59806175cd9e0ce455153e16344f822bf6b63aac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1.dev2026061203-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 d9747510cb2526eb376cc76ba261393ce5bee562f2968b82cde8c6a23a425109
MD5 7672ed4ad8012eab6eb10c1e31d13d72
BLAKE2b-256 3c0afe3b81fe0e308c4d97ff55670ee790be2ef7bfb6a66be9b3d3ac1cd76646

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1.dev2026061203-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 03ac3a50536da00f19ff56680f14dcd40f07159d189ebdfdbdcc54d3c85501d2
MD5 57f8b8ffcc3fb302d239e4e177d07b09
BLAKE2b-256 0f5622cb57ce039152fa92821b774ab0a48843ac4f206923927f9b6aea0ca25c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1.dev2026061203-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a187ef20d679edd4d85f6deda46a81716bd158f0f327c6c4e7b767a4673e7705
MD5 12d0b06c67c83054dd155eeef90cfb61
BLAKE2b-256 972c0b502761f5f29a7422939bda234cef5ab267b9d554ea4ffe78c8bde1fd6d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1.dev2026061203-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ebe08a1718045bf0b02dc798894bc20c4cee7a56c20b62609cf11f77bc3a7458
MD5 180fae10268f6594a65c15a79412d792
BLAKE2b-256 dead3625f606e7b2c541cae1eaef662eeefe0b8e33b15067d7f67a5cd9b1620b

See more details on using hashes here.

Provenance

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