Skip to main content

BAML python bindings (new system, bex_engine)

Project description

baml_bridge

Python bindings for the BAML runtime (powered by bex_engine).

baml_bridge 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_bridge 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


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

Uploaded CPython 3.10+Windows ARM64

baml_bridge-0.14.1-cp310-abi3-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.10+Windows x86-64

baml_bridge-0.14.1-cp310-abi3-musllinux_1_1_x86_64.whl (8.6 MB view details)

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

baml_bridge-0.14.1-cp310-abi3-musllinux_1_1_aarch64.whl (8.1 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.1+ ARM64

baml_bridge-0.14.1-cp310-abi3-manylinux_2_24_aarch64.whl (7.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.24+ ARM64

baml_bridge-0.14.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.4 MB view details)

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

baml_bridge-0.14.1-cp310-abi3-macosx_11_0_arm64.whl (7.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

baml_bridge-0.14.1-cp310-abi3-macosx_10_12_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file baml_bridge-0.14.1-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 cae1087814b8acd561771db6d8e63ed485c6e7f2961afec22a34e7ad08111ec4
MD5 ac882e2877c54d896001168cf896be82
BLAKE2b-256 7b7be7e577c0226ecae99899f3e21e246abd6ef3848cf68ad523d01a45605045

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.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_bridge-0.14.1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d160ac5a3b85882fb2535bccb9a7c30f2f2db17c8ba3ff20048795da5689d572
MD5 62b417c555fb9cd02f304045641aedd0
BLAKE2b-256 c7c17b69a4171229f9af59774b574a1ce68e10143fc320cdb4948a05a444ae64

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.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_bridge-0.14.1-cp310-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 ff4351f61ecdb5a108a77a8713b90103906fe28e29c9acbfc42ef60a3bd20bea
MD5 6aa69e7d53ef646245afed1244b42bd9
BLAKE2b-256 24c2474f478b20aaf48333c0179fcb2d1a37c4d1281767804d2e66abc08676f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.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_bridge-0.14.1-cp310-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 fc9c4d24471939eeb54f1d91a7d8d058227ad16c280392ff54a7a62f2379bff8
MD5 134ebf8cf1a24c7da8f517a43231d5b2
BLAKE2b-256 13e6f44ce1c0bd2e70797744a0aea25f5e27991d692d8a6927b838d737d018f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.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_bridge-0.14.1-cp310-abi3-manylinux_2_24_aarch64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 bd0e2c54421a293b0abd162919176753974c1adb8bf37cdc4ffdefd8bdd17c98
MD5 b88a3e8a7fb27e71b564f049c1eb2081
BLAKE2b-256 a72abab6b9794a41cfffd95b55acdf71f14b5e6a542b5140575fa5cc1ccad6a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.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_bridge-0.14.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6ed95776bae172b8439b5a45d951615de12265f468c38d0e6d651eb15364a5fd
MD5 e35bb2941ffd4adb6a10fca84a39b9db
BLAKE2b-256 b4110ed97221fa3a4ff164938723075a81cf6a83110a55d3bd0135d005ed3948

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.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_bridge-0.14.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d38e75bf5bb48964d157085cfd823a1e4f69e96a810bfbd730231bac3c2396f
MD5 1a10a4e9a12b770ca92fd2770e26a170
BLAKE2b-256 95e161b45512b05df47e157d2beb67250ce0f67605ff6ad055a04c50f7551db3

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.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_bridge-0.14.1-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0d868e4f3b8204fe10f59d7153a730cb9ac7b32f1163ec55d3caf2df37a1bb8e
MD5 d4aa9e1826ab67274a02dad0c6971b61
BLAKE2b-256 2bef1be55a8050c9af565f9dfb1f71f51231e1d57dae06581f6ada3f9265fff1

See more details on using hashes here.

Provenance

The following attestation bundles were made for baml_bridge-0.14.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