Registry / aws / aws-sdk-bedrock-runtime

aws-sdk-bedrock-runtime

JSON →
library0.5.0pypypiunverified

The aws-sdk-bedrock-runtime library provides a Python client for Amazon Bedrock Runtime, enabling inference with foundation models via the AWS SDK. Version 0.5.0 supports Python 3.12+ and is under active development. Release cadence is monthly or patch-as-needed.

pip install aws-sdk-bedrock-runtime
INSTALL
IMPORT
SIG · AWS-SDK-BEDROCK-RU
A
aws-sdk-bedrock-runtime
awspythonv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BedrockRuntimeClient
from aws_sdk_bedrock_runtime import BedrockRuntimeClient
from aws_sdk_bedrock_runtime import BedrockRuntimeClient

Initialize the Bedrock Runtime client, invoke a model via InvokeModelCommand, and print the response.

import os from aws_sdk_bedrock_runtime import BedrockRuntimeClient from aws_sdk_bedrock_runtime.models import InvokeModelCommand client = BedrockRuntimeClient(region=os.environ.get('AWS_REGION', 'us-east-1')) resp = client.invoke_model(InvokeModelCommand(modelId='amazon.titan-text-lite-v1', contentType='application/json', accept='application/json', body='{"inputText":"Hello"}')) print(resp.body)
Debug
Known issues
breakingThe package 'aws-sdk-bedrock-runtime' is distinct from the older 'boto3' Bedrock Runtime client and requires Python >=3.12. Existing code using boto3 bedrock-runtime will need rewriting.
fix
Migrate from boto3 to this SDK. Replace 'boto3.client("bedrock-runtime")' with 'BedrockRuntimeClient'.
affects: >=0.5.0
gotchaThe import path uses underscores, not hyphens. The package name on PyPI contains hyphens (aws-sdk-bedrock-runtime) but the Python module uses underscores (aws_sdk_bedrock_runtime).
fix
Use 'from aws_sdk_bedrock_runtime import ...' not 'from aws-sdk-bedrock-runtime'.
affects: all
deprecatedAs of version 0.5.0, the 'InvokeModelCommand' class may be renamed in future releases. Check the latest documentation for command class names.
fix
Monitor release notes and update imports when the naming stabilizes.
affects: 0.5.0
Upgrade
Version history
0.5.0latest on PyPI · released Apr 7, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
26
OpenAI (training)
1
Resources
aws-sdk-bedrock-runtime — pip install aws-sdk-bedrock-runtime · libregistry