biggr_models.handlers.db_interop_handlers#

Attributes#

Classes#

BaseInteropQueryHandler

Base class for HTTP request handlers.

QueryByGeneHandler

Base class for HTTP request handlers.

QueryByStrainHandler

Base class for HTTP request handlers.

QueryByPairHandler

Base class for HTTP request handlers.

StrainListHandler

Base class for HTTP request handlers.

GeneListHandler

Base class for HTTP request handlers.

GeneStrainPairListHandler

Base class for HTTP request handlers.

Module Contents#

biggr_models.handlers.db_interop_handlers.BASE_URL = 'https://bigg.bio'#
class biggr_models.handlers.db_interop_handlers.BaseInteropQueryHandler(application: Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)#

Bases: tornado.web.RequestHandler

Base class for HTTP request handlers.

Subclasses must define at least one of the methods defined in the “Entry points” section below.

Applications should not construct RequestHandler objects directly and subclasses should not override __init__ (override ~RequestHandler.initialize instead).

write_error(status_code: int, **kwargs)#

Override to implement custom error pages.

write_error may call write, render, set_header, etc to produce output as usual.

If this error was caused by an uncaught exception (including HTTPError), an exc_info triple will be available as kwargs["exc_info"]. Note that this exception may not be the “current” exception for purposes of methods like sys.exc_info() or traceback.format_exc.

class biggr_models.handlers.db_interop_handlers.QueryByGeneHandler(application: Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)#

Bases: BaseInteropQueryHandler

Base class for HTTP request handlers.

Subclasses must define at least one of the methods defined in the “Entry points” section below.

Applications should not construct RequestHandler objects directly and subclasses should not override __init__ (override ~RequestHandler.initialize instead).

async post()#
class biggr_models.handlers.db_interop_handlers.QueryByStrainHandler(application: Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)#

Bases: BaseInteropQueryHandler

Base class for HTTP request handlers.

Subclasses must define at least one of the methods defined in the “Entry points” section below.

Applications should not construct RequestHandler objects directly and subclasses should not override __init__ (override ~RequestHandler.initialize instead).

async post()#
class biggr_models.handlers.db_interop_handlers.QueryByPairHandler(application: Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)#

Bases: BaseInteropQueryHandler

Base class for HTTP request handlers.

Subclasses must define at least one of the methods defined in the “Entry points” section below.

Applications should not construct RequestHandler objects directly and subclasses should not override __init__ (override ~RequestHandler.initialize instead).

async post()#
class biggr_models.handlers.db_interop_handlers.StrainListHandler(application: Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)#

Bases: BaseInteropQueryHandler

Base class for HTTP request handlers.

Subclasses must define at least one of the methods defined in the “Entry points” section below.

Applications should not construct RequestHandler objects directly and subclasses should not override __init__ (override ~RequestHandler.initialize instead).

async get()#
class biggr_models.handlers.db_interop_handlers.GeneListHandler(application: Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)#

Bases: BaseInteropQueryHandler

Base class for HTTP request handlers.

Subclasses must define at least one of the methods defined in the “Entry points” section below.

Applications should not construct RequestHandler objects directly and subclasses should not override __init__ (override ~RequestHandler.initialize instead).

async get()#
class biggr_models.handlers.db_interop_handlers.GeneStrainPairListHandler(application: Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)#

Bases: BaseInteropQueryHandler

Base class for HTTP request handlers.

Subclasses must define at least one of the methods defined in the “Entry points” section below.

Applications should not construct RequestHandler objects directly and subclasses should not override __init__ (override ~RequestHandler.initialize instead).

async get()#