Skip to main content

Store configuration details in DynamoDB

Project description

# DynamoDB Config Store

Store your configuration in DynamoDB using DynamoDB Config Store.

Using this Python class you’ll be able to easily manage application configuration directly in DynamoDB. It works almost like any configuration file, except that an option can have multiple values. For example your configuration could look like this:

————+—————-+—————-+—————-+—————- _store | _option | host | port | secret-key ————+—————-+—————-+—————-+—————- prod | db | | 27017 | prod | external-port | | 80 | prod | secret-key | | | abcd1234 test | db | localhost | 27017 | test | external-port | | 4000 | test | secret-key | | | test1234 ————+—————-+—————-+—————-+—————-

You can then retrieve configuration like this:

store = DynamoDBConfigStore(
connection, # dynamodb2 connection from boto ‘config’, # DynamoDB table name ‘prod’) # Store name

# Get the ‘db’ option and all it’s values store.config.get(‘db’) # Returns {‘host’: ‘’, ‘port’, Decimal(27017)}

In our lingo a Store is roughly equivivalent to a configuration file. And an Option is an key in the Store which holds zero or more Keys.

## Documentation

The project documentation is hosted at [](

## Contributing

### Creating pull requests

If you want to open a pull request, please do it towards the develop branch. I’d also appreciate if the pull request contains tests for the added functionality.

### Running tests

#### Requirements

You must have [DynamoDB Local]( installed. It is a local version of DynamoDB that can be used for local development and test execution.

The test suite assumes that DynamoDB Local will be running at port 8000.

You can either run DynamoDB Local your self or install it under dynamodb-local in the project root. If you do this, you can simply start the database with make dynamodb_local

#### Executing the test suite

You can run the test suite via make tests or python

## License

APACHE LICENSE 2.0 Copyright 2014 Sebastian Dahlgren

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
dynamodb-config-store-0.2.2.tar.gz (14.9 kB) Copy SHA256 hash SHA256 Source None Jun 28, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page