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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061202-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 c3aaad59cdc4fd14c54b624c128c195a273be31dcb2be371a2d5ae06cfc0eb1a
MD5 567e60aeef9fd0837b9e28624a4463de
BLAKE2b-256 6953689cb950819af5f819d5445780d36b5d50c251d49431d5f703542335160b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061202-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5c4b17eeaee4646346787239dc7c71c3b32fbc3a360ed113db3f9c2708a732cc
MD5 7fdbd99aff6e14e48fc1769194a2c7c9
BLAKE2b-256 ba63bab8180d30e5d86e130279464e99f699788014fdfca38420a88d77f76ed7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061202-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 4d98f600369cc156f50a07ac311de91bee605c3eb1a22b005d708d64347b241c
MD5 2039a132c147bbc7779f59977826482c
BLAKE2b-256 8da56ca0821259dfb527df9b4afc333bacf7bc9839a3a2c60c78ade816d0dd1a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061202-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 ff4a126bfa6162043d5583402e6d7186bdae4c115fcd70a801d383791095212a
MD5 875641b0158a116ae7cfe27d2d3a7dc2
BLAKE2b-256 114a6990adb3738cfd89abbdfb9a1399afdf70606a3bb66206d6714a5c135f86

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061202-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 162dc678843e8d837423dd0fea086746fe1aa2156f8fc36d247712e69e20f90b
MD5 d9b80dcc850222990278a672382e6311
BLAKE2b-256 65854752090822db076ae7bc1210d597ad74db0b572c07774874b8a2f5648a5b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061202-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 02b4f0613b28f175bd976cb6d643eecc04766f3297ec286e8efc1fab8eac8c11
MD5 697a5107855148a2604c82dd315b39a4
BLAKE2b-256 15158ce776c0e6355a577352c3e96d356c93fbb59bb3ebdb7dd828fb74c8523c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061202-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c1499d600a125e5a8a30535eaa847752e9db115cfabb48421ff95551c9eb65b
MD5 2325076ca707dcc1d4f98b38265b1195
BLAKE2b-256 e2812b2d51c138d38ae07659192683eb27e0b2c6310624dfdbef161ecf074ccf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061202-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8397ffbf06b47755f52bef5353be679345408ad2fcf0c8536a0fdf4ab9385a73
MD5 d3fe8dd3b6071f302c494e733b1c484e
BLAKE2b-256 5ff58bfad2f16a42e977ef2d8dffaa5e008a3f2b7a4baf8dbbed912add666b82

See more details on using hashes here.

Provenance

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