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
debugandtestingflags 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
microcosm-flask-2.5.0.tar.gz
(46.7 kB
view details)
File details
Details for the file microcosm-flask-2.5.0.tar.gz.
File metadata
- Download URL: microcosm-flask-2.5.0.tar.gz
- Upload date:
- Size: 46.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6a8a6e28b9cfe95a1ba36358aa19298aee9ef6293483db21bd2ba229f4729b4
|
|
| MD5 |
18b2ffe3885f6f03d7434f3b16beb194
|
|
| BLAKE2b-256 |
b45fc42f261c93938d0a3ca824dbbfdfcd0d1e2c515440c46c5cc81e9de7fbd2
|