biothings.web.applications
Biothings Web Applications -
define the routes and handlers a supported web framework would consume
basing on a config file, typically named config.py, enhanced by
biothings.web.settings.configs
.
The currently supported web frameworks are Tornado, Flask, and FastAPI.
The biothings.web.launcher
can start the compatible HTTP servers
basing on their interface. And the web applications delegate routes defined
in the config file to handlers typically in biothings.web.handlers
.
Web Framework |
Interface |
Handlers |
---|---|---|
Tornado |
Tornado |
biothings.web.handlers.* |
Flask |
WSGI |
biothings.web.handlers._flask |
FastAPI |
ASGI |
biothings.web.handlers._fastapi |
- biothings.web.applications.BiothingsAPI
alias of
TornadoBiothingsAPI