This repository supports tutorial DynamoDB vs. Postgres - Which database to choose for your Python project?.
$ docker-compose up -d
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ export PYTHONPATH=$PWD:$PYTHONPATH
$ (venv) python fill_data/create_table_dynamodb.py
$ (venv) python fill_data/create_table_postgres.py
$ export PYTHONPATH=$PWD:$PYTHONPATH
$ (venv) python queries/list_all_by_owner_dynamodb.py
$ (venv) python queries/list_all_by_owner_postgres.py
You can do the same for other scripts in queries
directory.