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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

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

File metadata

  • Download URL: baml_core-0.12.1-cp310-abi3-win_arm64.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: CPython 3.10+, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for baml_core-0.12.1-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 883af54f7336feec050dc0b950784bdfac7c6521ed1d3d6c291a7a0fbd92f3d8
MD5 cc4e73b83b7f0926e5e558c77fe4a904
BLAKE2b-256 0574ee144d6be9736d43d11c659fb4e84bb8dc2e92bdc2d6147e8552e986ec68

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: baml_core-0.12.1-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for baml_core-0.12.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e64093fb0b8c38edc6ea3d3f980b94ffe27862cfb26e71edab6181621395883b
MD5 d071e063838a4c95f4196dfeb1bfaaf8
BLAKE2b-256 0d113581e98c92016696206b1504135751c48b8027e219b1eb0bfaa08cf0bfe8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 cc20f64ad83b598f052ec3c6ba0afaed1b65e05fff357b011c6329eba3b4cea5
MD5 d324ba84f48f56d15bdd525cf9c33fef
BLAKE2b-256 f4a065534b4a78fd08d2de8dc912f6900c7772a52f48dc79e879a987b56bc4ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 506a307cb34fcbf277f4737dc474db03b6b24a8420e85f1a1cf4234ce15b2ef1
MD5 37960a7d6e466bc029a29a189eb35c97
BLAKE2b-256 55d696aa1deb80b219ab12c0aaa4a8851241ed79b134573b7fb14b439dd0ed2f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 e61bce5220e7bde0345feca636148147374d9669cfb92db13f30cfab6bd6f7b7
MD5 11e691285cf66228ac5607ba8a1651d4
BLAKE2b-256 30a427b3d05a9e576baf661f6415e257d1ba012f61df597b6581b3c631956c18

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b66189aa4f6b2baacb7e230e8e7dd3a748f32d8b0580376a9b61cf2150b8fd8e
MD5 082f1ed57e439a192b123fb3c8793f04
BLAKE2b-256 05b721e221d6c436a699399214f5f02ed63cdf6d565ab29382207f1f25d4ce39

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf3ed4897d2c5c7d6c8efc26284a9c467f9c9198ae3ab5f7455a58e9dcd91800
MD5 ab916f5d36c07a910292872939c54962
BLAKE2b-256 d612ad58c571025a093c8c8c72b20fe18ecaebde05258a25c734fab7e86dee09

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6f3b733ac7c96d8ef1da12c6c0ff658df34b1539d470726a8a659a414d59f4ed
MD5 87f43db5004ac555d152da37f5f0d675
BLAKE2b-256 8fe2d2c7353d9f81c0669eb99056dff4b1b4347709e3a82dc78129e0a1e342f7

See more details on using hashes here.

Provenance

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