Skip to main content

Amazon DAX Client for Python

Project description

The Amazon DAX Client for Python is used to access Amazon DAX clusters from Python. It is nearly source-compatible with Boto3, with only a small change needed to the client initialization to use DAX instead of DynamoDB.


Install Amazon DAX Client using pip:

$ pip install amazon-dax-client

Quick Start

Boto3 has two different interfaces, the resource interface and the botocore client interface. Both are supported by the Amazon DAX client, with slightly different client initialization.

For the resource API, change from:

ddb = boto3.resource('dynamodb')


dax = AmazonDaxClient.resource(

All other boto3.resource() arguments are accepted.

For the botocore client API, change from:

session = botocore.session.get_session()
ddb = session.create_client('dynamodb', ...)


session = botocore.session.get_session()
dax = AmazonDaxClient(session, ...)

For Boto3 client API, change from:

ddb = boto3.client('dynamodb')


dax = AmazonDaxClient(endpoint_url='')

The Boto3 and botocore client APIs are exactly the same.

Unsupported Features

The Amazon DAX client does not support table operations. Any table manipulation operations must use the regular Boto3 or botocore DynamoDB client.

Paginators are not currently supported for DAX.


Once created, the interface is the same as the Boto3/botocore DynamoDB clients.

For acomplete example, follow the guide to create a sample app.

Getting Help

Please use these community resources for getting help.



  • Minor bug fixes


  • Linting fixes
  • Updated logging to log on Logger objects


  • Add jitter and backoff for retryable exceptions


  • Fixes bug starting with clusters of less than 3 nodes.


  • Fixes and improvements to service discovery logic.
  • Add support for Python 3.8.
  • Fix 'RetryHandler' object has no attribute '_cluster': AttributeError problem reported in the AWS Forums.
  • Fix problems found by static analysis.


  • Fixes a bug that can result in a failure to update the roster when it changes, which can later result in a NoRouteException.


  • Fixes a bug that can result in an infinite loop on node failure.
  • Update TransactWriteItem test item limit to 25.


  • Adds support for transact-get-items and transact-write-items APIs for DyanamoDB transactions.
  • Improved efficiency of connection pooling.


  • Fix scheduling of background tasks.


  • Properly de-anonymize UnprocessedItems results from BatchWrite.
  • Raise a proper error if no backends are available.


  • Fix UpdateItem result parsing with a subset of attributes changed


  • Use user-specified timeouts
  • Fix issue with update response if the item is not changed
  • Fix error decoding BatchWrite UnprocessedItems.


  • Fix AmazonDaxClient.resource() when using batch_get_items or batch_write_items.


  • Fix Python 2 encoding issues
  • Fix decoding of ConsumedCapacity, ItemCollectionMetrics in batch operations


  • Initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for amazon-dax-client, version 1.1.7
Filename, size File type Python version Upload date Hashes
Filename, size amazon-dax-client-1.1.7.tar.gz (93.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page