-
Notifications
You must be signed in to change notification settings - Fork 0
Underlying frameworks
Joel T. Collins edited this page Jul 15, 2020
·
2 revisions
Our API server is based on the Flask framework due to it's lightweight nature, high extensibility, and vast community. While, unlike some similar frameworks, Flask does not natively support Web Sockets, this functionality is added in via Gevent.
The LabThings API relies on the conversion between arbitrary Python objects, and useful JSON representations of these objects. Marshmallow provides a simple framework for this conversion process.
It also introduces a standard set of data types that are used to define and parse expected arguments for API requests, and automatically generate full interactive API documentation.