Skip to main content

lmux-bedrock-shared

Shared internals for the two lmux providers that talk to Amazon Bedrock:

  • lmux-aws-bedrock — the Converse-API provider (all Bedrock vendors + embeddings).
  • lmux-anthropic [bedrock] — the native Anthropic Messages API provider (AnthropicBedrockProvider).

It exists so those two packages don't duplicate the AWS-specific transport code or the Anthropic-on-Bedrock pricing table, while keeping core lmux free of any AWS-specific code.

Contents

Module Purpose
sigv4.py sign() — minimal, stdlib-only AWS Signature Version 4 signer (unit-tested for byte-parity against botocore.auth.SigV4Auth).
eventstream.py EventStreamDecoder / decode_messages — stdlib-only decoder for AWS's binary vnd.amazon.eventstream framing.
pricing.py ANTHROPIC_PRICING + calculate_bedrock_anthropic_cost() — the Anthropic-on-Bedrock pricing subset, generated by scripts/update_bedrock_pricing.py. Shared so both providers price Claude identically.

sigv4/eventstream are pure stdlib. pricing depends only on lmux (for the pricing types). This package is an internal building block; its API is not intended for direct use outside the lmux Bedrock providers.

Metadata

Release files for lmux-bedrock-shared 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lmux-bedrock-shared 0.3.0
File Size Uploaded
lmux_bedrock_shared-0.3.0.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lmux-bedrock-shared 0.3.0
File Interpreter ABI Platform
lmux_bedrock_shared-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.6 kB

Release files / lmux_bedrock_shared-0.3.0.tar.gz

Download URL lmux_bedrock_shared-0.3.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ac165bcc1f87f9ba3f8ef477c1d1a547a6d9d4e8913efeac116bdeb844b302bd
BLAKE2b-256 checksum
How to use checksums
5f91a6872657dd155d694554281bf0e83cdfda3abd1a47a32bbb8ee6a4e2a515
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.

Transparency log

Release files / lmux_bedrock_shared-0.3.0-py3-none-any.whl

Download URL lmux_bedrock_shared-0.3.0-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fb9a1180b9a8f7524e5c2b417a6ea6f7fb762aafbbb2458be1560be2e233658
BLAKE2b-256 checksum
How to use checksums
1bf06d1cf7582a560a04b515b5950c3198021e23b27286aed9192b8e69ac72e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page