biothings.web.launcher

Biothings API Launcher

In this module, we have three framework-specific launchers and a command-line utility to provide both programmatic and command-line access to start Biothings APIs.

class biothings.web.launcher.BiothingsAPIBaseLauncher(config=None)[source]

Bases: object

get_app()[source]
get_server()[source]
start(port=8000)[source]
biothings.web.launcher.BiothingsAPILauncher

alias of biothings.web.launcher.TornadoAPILauncher

class biothings.web.launcher.FastAPILauncher(config=None)[source]

Bases: biothings.web.launcher.BiothingsAPIBaseLauncher

get_app()[source]
class biothings.web.launcher.FlaskAPILauncher(config=None)[source]

Bases: biothings.web.launcher.BiothingsAPIBaseLauncher

get_app()[source]
get_server()[source]
start(port=8000, dev=True)[source]
class biothings.web.launcher.TornadoAPILauncher(config=None)[source]

Bases: biothings.web.launcher.BiothingsAPIBaseLauncher

get_app()[source]
get_server()[source]
start(port=8000)[source]
static use_curl()[source]

Use curl implementation for tornado http clients. More on https://www.tornadoweb.org/en/stable/httpclient.html

biothings.web.launcher.main(app_handlers=None, app_settings=None, use_curl=False)[source]

Start a Biothings API Server