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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

baml_bridge-0.14.0-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.0-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.0-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.0-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.0-cp310-abi3-macosx_11_0_arm64.whl (7.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

baml_bridge-0.14.0-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.0-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for baml_bridge-0.14.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 240011cc94551f1bbf640bc3e406cb6d75bd764c80bf9a0332c31d531b78af2b
MD5 c59232c86c2e35b38427d4fd62ec8296
BLAKE2b-256 b40bb4c265c0acd86b632d70f738f2909115414b02e9bde4478b9df40280d8c5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e556eb3eebf7b13005963ca7bd07d4e46426487e671518cde38bebfbb31b7682
MD5 6ae55931de6a3787e849343df1a7d263
BLAKE2b-256 9afda48a5ba85ae22045235a695c562e12aace9a077648e140fb761296b84b41

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.0-cp310-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 9b84299c07827871e14991490dc3554ec4ca384891fdc0e97b91e43d02d480b6
MD5 e9c465911f720f3bc6904acb76401785
BLAKE2b-256 bde474791882e7fe3ad8eabc43081b1dd51f93b1f0db206ca8d4df5125a9f5e9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.0-cp310-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 46988ee8ecd36b7099a6ab8f26c3b61398578da195986aa6a10ad5741ec87ee3
MD5 411024c30e10f69a9060102ea15a5adb
BLAKE2b-256 58583bb5b459b9a59a9714822638884f6da8cb4818386c2803be2dd38af56840

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.0-cp310-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 f4aa25eecca5a96f20296a832bd64c83b285c1fc698391ce35302b8f4935d70c
MD5 d650498a5be1be8a5da7e5c25011b778
BLAKE2b-256 389853ce0f4f628659613a085fd11177ca9b960ca8048b13387bb550a9342dfa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3562edfb0452ffc9882aa81896e94ff82ce9e0691b61935fb43daff9c593beb6
MD5 5d6d408957b2a03a611a6b550dcaf787
BLAKE2b-256 142c57f280fb287d2ebaeebf690002a9c5367ff78645ce0ac9ed977884ea4074

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79e44f445e4db630888b8d898148a95ba6ebccab59b44ccef13aa475af19d4ad
MD5 adfe02792cf320a02653040db44978fa
BLAKE2b-256 e91ef4e98822a6142071a10516c48134c85de8af45459127e5d1332e0224f7d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for baml_bridge-0.14.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9be56d883b74176a286789bf53c3a19cfe5471bf188cb68fefcaa14fcd45d9fa
MD5 223cfc445a96c01d14cc3cbead18cdd6
BLAKE2b-256 c6a24c13b35fe04fb831298194a6db9f5684a3ad17ff530d2b62b7e0d443610b

See more details on using hashes here.

Provenance

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