Done in short bursts in less than a week while on vacation.
Use pipenv to install the dependencies:
pipenv install
Launch the server:
pipenv run python app.py
Issue the following requests:
GET http://localhost:3000/api/widgets/
GET, DELETE http://localhost:3000/api/widget/id
POST, PUT http://localhost:3000/api/widget/id {
"name": "widget1",
"number_parts": 8
}
Use pipenv to install the dev dependencies:
pipenv install --dev
Run them with:
pipenv run pep8 --show-source app.py
pipenv run bandit -r app.py
pipenv run flake8 app.py