Skip to main content

DynamoDB client and mixin for Tornado applications

Project description

An asynchronous DynamoDB client and mixin for Tornado applications

Version Downloads Status Coverage License

Installation

sprockets-dynamodb is available on the Python package index and is installable via pip:

pip install sprockets-dynamodb

Documentation

Documentation is available at sprockets-dynamodb.readthedocs.io.

Configuration

The following table details the environment variable configuration options.

Variable

Definition

Default

DYNAMODB_ENDPOINT

Override the default DynamoDB HTTP endpoint

DYNAMODB_MAX_CLIENTS

Maximum number of concurrent DynamoDB clients/requests per process

100

DYNAMODB_MAX_RETRIES

Maximum number retries for transient errors

3

DYANMODB_NO_CREDS_RATE_LIMIT

If set to true, a sprockets_dynamodb.NoCredentialsException will return a 429 response when using sprockets_dynamodb.DynamoDBMixin

Mixin Configuration

The sprockets_dynamodb.mixins.DynamoDBMixin class will automatically raise HTTPError responses for different classes of errors coming from DynamoDB. In addition it will attempt to work with the Sprockets InfluxDB client to instrument all DynamoDB requests, submitting per request measurements to InfluxDB. It will attempt to automatically tag measurements with the application/service name if the SERVICE environment variable is set. It will also tag the measurement if the ENVIRONMENT environment variable is set with the environment that the application is running in. Finally, if you are using the Sprockets Correlation Mixin, measurements will automatically be tagged with the correlation ID for a request.

Requirements

Version History

Available at https://sprockets-dynamodb.readthedocs.org/en/latest/history.html

Project details


Download files

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

Source Distribution

sprockets-dynamodb-2.1.3.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sprockets_dynamodb-2.1.3-py2.py3-none-any.whl (19.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sprockets-dynamodb-2.1.3.tar.gz.

File metadata

File hashes

Hashes for sprockets-dynamodb-2.1.3.tar.gz
Algorithm Hash digest
SHA256 4bab67426f35243dbadda0acd557fca6a07dfd84f1d27bda1c9739257a493bc9
MD5 ad9767e12e53040bc31a3725c6de603d
BLAKE2b-256 e2fe589e5976ef658b149ca9c85147fdfed71bf25da4e0875b993829df9ffb07

See more details on using hashes here.

File details

Details for the file sprockets_dynamodb-2.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sprockets_dynamodb-2.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 12e11bf9ed30d88708ed300f2a365755c2188925573b7e4fb5044a9c77634100
MD5 5fd3c65d7967ac913ce2558a1b0925fa
BLAKE2b-256 61e2d1469cc82f0b8e164a9892bafcfa6cda74058622f6cc30ed1c567f7360bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page