AWS SDK for Python (Developer Preview)

repository·develop·Indexed 41 days ago

https://github.com/aws/aws-sdk-python

A next-generation, async-first, and modular SDK designed for high-throughput and streaming AWS service interactions. This developer preview includes modular clients for services such as Amazon Bedrock, Amazon API Gateway, and AWS CloudTrail. Note that these clients are under active development and may undergo breaking changes before the version 1.0.0 release.

Tokens
95.6K
Snippets
552
Records
676
Agent score
51%

What's inside AWS SDK for Python

  1. Use the Data Automation for Amazon Bedrock Client

    develop

    The aws_sdk_bedrock_data_automation client provides programmatic access to Amazon Bedrock Data Automation. Note that this client is currently under active development; breaking changes may occur before version 1.0.0 is released.

    Detailed API documentation is located in the /docs directory of the aws_sdk_bedrock_data_automation package. To view this documentation as portable HTML files, follow the build instructions provided in the package's local docs/README.md file.

  2. Understand the experimental Amazon Bedrock Runtime client for Python

    develop

    The experimental Amazon Bedrock Runtime client for Python is a new, Smithy-based, asynchronous SDK designed specifically for interacting with Amazon Bedrock Runtime.

    Key Characteristics

    • Async-first: It is an experimental async Python SDK.
    • Experimental Status: It is in early development; expect breaking changes.
    • Service Scope: Currently, this specific package only supports Amazon Bedrock Runtime.

    Using this SDK with Boto3

    If you need to access AWS services other than Amazon Bedrock Runtime, you should use Boto3. You can use Boto3 and this experimental SDK together within the same application to build comprehensive solutions.

  3. Available Polly Streaming Example Scripts

    develop

    There are two primary scripts provided to demonstrate different ways of consuming the bidirectional streaming API:

    1. stream_speech_to_file.py: Streams synthesized audio and saves the resulting stream directly to an MP3 file. Requires no extra dependencies.
    2. stream_speech_to_speakers.py: Provides real-time MP3 playback through your speakers as audio arrives. The MP3 decoder handles the buffering. Requires the miniaudio dependency.
  4. Key features of AWS SDK for Python v4

    develop

    The SDK is built from Smithy models and provides several core capabilities:

    • Async operations: Every service operation is an async method compatible with asyncio.
    • Per-service packages: Granular installation of only the clients your application requires.
    • Type annotations: Operations, input models, and response models include type annotations for IDE and type checker support without extra stubs.
    • Streaming support: Support for event streams and bidirectional streaming for supported services.