Opinionated persistence with FlaskQL
Project description
microcosm-flask
Opinionated Flask services.
Conventions
- Classify API endpoints according to an enumerated set of operations with well-defined naming conventions
- Handle errors consistently using a top-level error and nested sub-errrors
- Handle UUIDs as route path keys
- Protect endpoints with basic auth
- Use HAL JSON links to related resources to each other
- Use Swagger to publish endpoints for interoperability
- Automate generation of endpoints according to conventions:
- A health check API endpoint exposes service health
- RESTful endpoints provide CRUD operations on resources
- RESTful endpoints allows one resource to be related to another
- API discovery endpoints allow resource data to be discovered/spidered
- Swagger endpoints allow endpoint integration to be automated
Setup
Create a virtualenv
mkvirtualenv microcosm-flask
Install dependencies
pip install -U -e .
Tests
Run the tests
python setup.py nosetests
Configuration
- The object graph's
debug
andtesting
flags are propagated to the Flask application
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for microcosm-flask-0.2708.dev2708.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2688c90b5aedde111d6dd6a04246154e4232e0650d48a91955edd2560f4aa882 |
|
MD5 | 8e349ab1e80fa8b228c8795d56ec0ca9 |
|
BLAKE2b-256 | 69b01424d0f8626a7f2d276fe2e63966c330b1d47476c7127314f679ff45d94d |