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

This version

0.1.2

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

Uploaded CPython 3.10+Windows ARM64

baml_core-0.1.2-cp310-abi3-win_amd64.whl (5.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

baml_core-0.1.2-cp310-abi3-musllinux_1_1_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.1+ x86-64

baml_core-0.1.2-cp310-abi3-musllinux_1_1_aarch64.whl (5.9 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.1+ ARM64

baml_core-0.1.2-cp310-abi3-manylinux_2_24_aarch64.whl (5.7 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.24+ ARM64

baml_core-0.1.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.1 MB view details)

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

baml_core-0.1.2-cp310-abi3-macosx_11_0_arm64.whl (5.3 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

baml_core-0.1.2-cp310-abi3-macosx_10_12_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file baml_core-0.1.2-cp310-abi3-win_arm64.whl.

File metadata

  • Download URL: baml_core-0.1.2-cp310-abi3-win_arm64.whl
  • Upload date:
  • Size: 5.0 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.1.2-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 6b3b0d67427e64bb8bcb59f742314bb63ec8d41ebfc7d7a70f989762e33ce9fc
MD5 33cdb30b4f0ec18aa492f22cdf2e81b6
BLAKE2b-256 43d376303fa2f95f3319f571a961bde86669a74544daf429091bba2d615dfe30

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.1.2-cp310-abi3-win_arm64.whl:

Publisher: release-sdk.yaml 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.1.2-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: baml_core-0.1.2-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 5.3 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.1.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 30677a5c87bd663108b49fd9f865f244efc8c7871d58d048f61828f51c356604
MD5 1188313eb0515359a033a0b1480157f2
BLAKE2b-256 ca2ce133924afa80295563cee3e9d197726580e52801b64c636954e3b9a4da71

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.1.2-cp310-abi3-win_amd64.whl:

Publisher: release-sdk.yaml 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.1.2-cp310-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for baml_core-0.1.2-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 60ec1270234698758d0ab553d82b29348ce42af2c15229a3b2facbab6a69d453
MD5 ebb4aa8940abb9ffaddb41ad9e10a0ab
BLAKE2b-256 e00bc0c20b56e83b3ce884565fa61088d37164b4df81dac22e89a39b62a1c72d

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.1.2-cp310-abi3-musllinux_1_1_x86_64.whl:

Publisher: release-sdk.yaml 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.1.2-cp310-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for baml_core-0.1.2-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 bd6a0b297b514ed218338198a76dd6cac7b67c6121ff9b84eeab297977e5136a
MD5 7e733ac5e2c935eb7d0d350eff912ba4
BLAKE2b-256 3dfdf211bc6f759b1e5606249a769adf51f78e79b881236d585fbde94c5b1a12

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.1.2-cp310-abi3-musllinux_1_1_aarch64.whl:

Publisher: release-sdk.yaml 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.1.2-cp310-abi3-manylinux_2_24_aarch64.whl.

File metadata

File hashes

Hashes for baml_core-0.1.2-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 02aba9fd5e0d2844cecd768c1f2bca03c4bb00d8e560a79bebc8f847e0011cb7
MD5 b9980a544b6602878b6d7f2f8c4c07ac
BLAKE2b-256 688d5edc32551a91a7b585a51ade1f4b2f399972c054177a3c8b6f4b54c3db8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.1.2-cp310-abi3-manylinux_2_24_aarch64.whl:

Publisher: release-sdk.yaml 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.1.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for baml_core-0.1.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 77bb2eebf3a13fbc64e9f382b8ba18d2657c886f912ab535a38cc49e16458464
MD5 48cb46c2d55e6a673528e07521a8addc
BLAKE2b-256 e3e0927d37b6c40910e969403d4be017f8f06233cfcfcaaefd1924d030626ad9

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.1.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-sdk.yaml 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.1.2-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for baml_core-0.1.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e92b040243a20df7fb448d072993dc5a029a3bead6862904390480952371cc4
MD5 b22d4d9deefc096e5d03810cd389f922
BLAKE2b-256 6ce4e4c4a26826e91531bd07e2d7f61b310abf64c606fc27ee2998b67a3bf52a

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.1.2-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release-sdk.yaml 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.1.2-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for baml_core-0.1.2-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f03d76bcdb95a080f3a9948846160615ddca666a7ea15ed6f4ed7b33da11c7e9
MD5 ebed38014aa5a56bc9f3013fabbce69c
BLAKE2b-256 dd8e86726bf540a5ac7a0e8db92822adadb938c8a4af18f514b1e22f0732062b

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_core-0.1.2-cp310-abi3-macosx_10_12_x86_64.whl:

Publisher: release-sdk.yaml 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