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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

baml_core-0.12.2.dev2026061201-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.dev2026061201-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.dev2026061201-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.dev2026061201-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.2.dev2026061201-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.dev2026061201-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.dev2026061201-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061201-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 44b3a543f745f014f2faffc2f37fc90b2bb78b431243e9d5106813cca8c603c7
MD5 e4eafa46efa03fcbe4213a6b43d778e7
BLAKE2b-256 89a173ad8f790a4142a8b2fd4b250be2d2ae06338b414574965ea5d11cc331c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061201-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a1668890351ea675bf4a3f5b7dc5c08492386bd342e09f54d4fdf6dbf47eefb3
MD5 8dfdb0a6a7bfd1a1098f1aa9663fd4d5
BLAKE2b-256 c1efb650d641d1caa46097809718fa034f1081b9889a50109818e2c7fbb877e6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061201-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 5ed488ab57829816ce066de684a794aa504d211da2e578770f59f29c144053c0
MD5 32a50630f6508b080c4811c60789220e
BLAKE2b-256 2a4e92f906a018cdfb25ae62fae7f8dc1c01c64df3da11d5a72d859fdb96575a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061201-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 b8e3ef0fae7620f15c05ca9c7425925d5828bb033f31b380d9a8bd489ba269bf
MD5 09dd4f2a2fe1f455b3f8bc0b45c17ba0
BLAKE2b-256 052be399dce2c192851d7eb000bc543fc6ee6660b6db2eee2b79a6a5b55c31db

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061201-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 b17ce0f07f80c2a09c55adfd0750b97fd5f861b3635f51ccfa10bf4338fb2f8b
MD5 c2434f0df9943a355898d117c1c42463
BLAKE2b-256 37c0a79958f9f023d52494fcf6fd0c2e567cf16b05d9bf486ec01e2c738195ac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061201-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2451a953ed156ea40575aa82318cb4738ac7a56ad9fe4349ee7ad452d61a72d1
MD5 3817a11dcebc52d5b463978d83c3dcac
BLAKE2b-256 4580886a1480f59e10f59782372bf4085decca1877b6d6d5096d5dbc2ca1dae6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061201-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32a3a7d98d0be322516f6e8505870d249d183bdff98d25675cf578dc2f65c533
MD5 56a184ec191bca79f4b0ae20ddba8e6c
BLAKE2b-256 1e326fd1e036d7713a09dd94c01934f3a26a6103a5d70893910b1e3db1488fb1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061201-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 875e00356eece0e7cf3bddd0b4acab5d05a27f4a354f3fd35a4f8bfd7321165d
MD5 5bc8685d268895bcefc740fa9ff04d92
BLAKE2b-256 6ac092345e08ed213666df04dfb6335dfe43fc241f69cd72c7fbb400c7b8020a

See more details on using hashes here.

Provenance

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