Developer Preview: This documentation covers the AWS SDK for Python v4, which is in Developer Preview and intended for evaluation and testing only. Do not use it for production workloads. For production applications, use the AWS SDK for Python (Boto3). To understand the differences between the two SDKs, see Choosing the right AWS SDK for Python.
Overview
This chapter takes you from a new Python environment to two working AWS examples. The first example uses a synchronous client to create a temporary Amazon DynamoDB table, write and read an item, and delete the table. The second example uses an asynchronous client to send prerecorded audio to Amazon Transcribe and print completed transcript segments as they arrive.
Both examples use the same basic workflow:
Install only the service client packages that your application needs.
Configure how the SDK authenticates with AWS.
Create a client for the service.
Call the client's operations with keyword arguments. With an asynchronous client, you also
awaiteach call.