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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061204-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 a933c1333f27874316a6bc8e832042bc1733393dc58741c241362446b7275062
MD5 318a9e2bb42d5502bc41d4e9a8b9071a
BLAKE2b-256 34ce2c2673e1c2031d52f04fd5d9046d71a6bdf422e1897bbb260609ae8840fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061204-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4a18f72f58e8c13bfb06d2c75119480eea8846d6a2675b39799276854ddb4e68
MD5 d157fd7be8ce3dbf2b1c7e54a95da590
BLAKE2b-256 8184a8918bccf4148a5a65b476af5a6ad3d120e2c00e7b7e15e30ec28ceba4bb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061204-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 3200f213083628625110dbeafb653802f1420cf30dcfa73ef965d5129786de78
MD5 cc33e5fd0183edabe647f193ce2d4ee4
BLAKE2b-256 cfef03cdc1456ea43fc8eb056cecf71c0aa8d247696fec13764c79932b878385

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061204-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 4d402e9d79bb1db197ad2d58fbb83719f07682437deca9ade3eb277207436688
MD5 607e7a6d6fb2103e6d94e72a24869ff6
BLAKE2b-256 5f6f457f2a720ebda15bc5fb1c83b2b3f4f15337aac1e836b7db87dd756bb304

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061204-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 399a8a24663499a835ff6e0076215565ac8e0f67c8308e0260627b6b7f351ce3
MD5 c052a69d09a83c23812cfb5d9d1e10f4
BLAKE2b-256 6f37ccb65c5fb7fd74be956dcfcd228b417481d3c428daedbe7628fb7fd9dcc8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061204-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 23650bae0b7213415729db0e32de84f29d96ecd7737fbdf2d108e95de13f9e7e
MD5 2ceb9c634eb32a6b4b3f94a979af30b9
BLAKE2b-256 e0098946006fe9ba4126969ec9dc31192c7998f06490888dd4120ec5b394fd8e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061204-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83df144dca5d317a67de8306bf9b774e07aef1aa570b562015873e826f9d31de
MD5 84393251d44053042348f761f628595f
BLAKE2b-256 af907882df46f8b205059ccfea818c33c7dcf06734017ccd08defa0751055a47

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.2.dev2026061204-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 977b1e0555e3f10d3f8ddbb2bca5ac8d81399d616f6b96b097b1ff065b233a4e
MD5 5b6a9e6c0679aa0088ef610a2b43bd44
BLAKE2b-256 17577048722a80356220553885bfbbeb06f14326177b1342fd592026c12cba48

See more details on using hashes here.

Provenance

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