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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

baml_core-0.12.0-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.0-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.0-cp310-abi3-manylinux_2_24_aarch64.whl (6.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.24+ ARM64

baml_core-0.12.0-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.0-cp310-abi3-macosx_11_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

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

File metadata

  • Download URL: baml_core-0.12.0-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.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 fbc9bd58eb2da2a60a62d15c290fc07bc5e341f1dc2db1fe1f9036fd1b42faef
MD5 6beae22bab7167a1da8fba8ef5f537fb
BLAKE2b-256 8bcc13725a3e4a1df7ba8e82185ec010c0e3d444300c51035b3c688e1a876650

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: baml_core-0.12.0-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.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 666ee0bfb0064ce785c7ab9f0f53923ebe7383a8ad21594d1a6de3b6f87774c7
MD5 e563c377b3764dc79e822e4f8f176dd8
BLAKE2b-256 24b3aea57b68d3d882ced268af94c45fbba977df4ba496a278b743adfb4e886f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.0-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 a03330defd431828f2b8082d551890a4153a014b83d82a97c11eefd167fdb99d
MD5 1b2a0e4c59ca44e0560ac8ef0f2125b8
BLAKE2b-256 36e44b34cea809d593e5b3978852b09b94d6f04a0403d744b3fdf01e0773efa5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.0-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 67976f4ce2ee18215425c5fb69a7d0cf53c2ece9c5a59ad84524d9dcdd1eddf2
MD5 95a5cf32124305703498b1c890683b09
BLAKE2b-256 f71ebd902da366181a9e0ced6b0f070ad919c153b353f9c6af620d682df9b989

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.0-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 196ebb03064134cd2eb91fc6d4c7cfcba549a34094d0d127c9cc197cbf86c40f
MD5 a4da6c437206eb3db7d93d38fb526018
BLAKE2b-256 374e3b7b763f4bbbed41f5e3403034f8f94740087f6b3aa88f2f21a044e276ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d1fc0cddcab8fc52c08b3eea50f2014a2f7e86a80aff6b878f18c27b96380875
MD5 7e67df350d9805a4b49df48f0f90f707
BLAKE2b-256 1b1e3e32b924e379a21ffbe6e270ac95322e741d775bf186cb6621e2909a22bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c35bc02b45abd98d5c047d3717d3834d2d126ebb1a6239bbb988ed4cc5347817
MD5 88498067c6d01d24dfd387fbd790d1f4
BLAKE2b-256 2adbb151348870f7bbf6b5f73ef80b49724f8a6a2601a429f647d45de2df4f74

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_core-0.12.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d46b7093f79d8e320905574b35cfa8f44f5023b33799aab81d9eaf085a5d8792
MD5 43af9b990917f774a6e829f0e9506b79
BLAKE2b-256 7b507ed5d54e2e3f38c3bedddc44a0da6f76aa94ca725ab11460575530bb8a86

See more details on using hashes here.

Provenance

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