Skip to main content

microcosm-flask

Opinionated Flask services.

Circle CI

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 and testing flags are propagated to the Flask application

Metadata

Release files for microcosm-flask2 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for microcosm-flask2 4.0.0
File Size Uploaded
microcosm-flask2-4.0.0.tar.gz 53.3 kB Details

Release files / microcosm-flask2-4.0.0.tar.gz

Download URL microcosm-flask2-4.0.0.tar.gz
Size 53.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fc4676cc9a4ce3323cdfe2428e04331fadef329a29c27659dbbda9aeb7d84e8a
BLAKE2b-256 checksum
How to use checksums
786b198fcf3a41e95952bcf4e32d142a75c9c13885af8a4ed48ea30a486d4517
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.9

Release history Release notifications | RSS feed

This release

4.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page