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

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.0.0.tar.gz (22.8 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.0.0-py2.py3-none-any.whl (18.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for sprockets-dynamodb-2.0.0.tar.gz
Algorithm Hash digest
SHA256 e53f769dbe350f98008efd4a479b57d48ff657836dd017a7eeb7f6bc3600e625
MD5 d5f5dee10471fa10d4dd4efc4666f6dd
BLAKE2b-256 e414f6fd8c299490142e2e2e4fca63327570e0c712023ce228a6cc0107a2d86f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sprockets_dynamodb-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9662a186c4e9260476956b4937e2bad5b0b1266d4a2e3621625af56c77089818
MD5 9ed063725419d4f5e60bf0fb830c45f2
BLAKE2b-256 bd7f36ee62a5b372118593cdade7703c5a5593f620a28db19a163edd5d67c08f

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