/Flask-Philo-PynamoDB

Flask Philo extension that connects to DynamoDB AWS

Primary LanguagePythonMIT LicenseMIT

Flask-Philo-PynamoDB

Flask-Philo Logo

Flask-Philo-PynamoDB is a Flask-Philo-Core extension that use PynamoDB to connect to DynamoDB AWS.

Configuration

PynamoDB is a great library that provides Amazon DynamoDB support out of the box.

You need to define the following configuration parameters in your Flask-Philo project:


    config = {
        'AWS': {
            'AWS_REGION': '',
            'AWS_ACCESS_KEY_ID': ,
            'AWS_SECRET_ACCESS_KEY': ,
        },
        'PYNAMODB': {
            'host': 'http://db:8000'
        }

    }

Running Test Suite

We use docker and docker-compose for development, therefore you will need to install those two tools if you want to run the test suite for this project. The following command runs the tests:

cd tests
python3 run_tests

Resources