Base application context

Module contains base application and request class.

class luna_python_matcher.app_common.base_application.MatcherBaseApp(thirdPartyLoggerWhiteList=None, serviceConfig=None, defaultPort=None)[source]

Base service application

requestCls

alias of MatcherRequest

class luna_python_matcher.app_common.base_application.MatcherRequest(*args, **kwargs)[source]

Matcher request

loadData(convertBytes=False)[source]
Return type:

dict

Loads request data from json / msgpack. :param convertBytes: whether to load data from msgpack with a custom hook to convert bytes

making data suitable for jsonschema-rs validation

Luna Python Matcher application context

Sanic application server.

class luna_python_matcher.app.app.PythonMatcherApp(thirdPartyLoggerWhiteList=None, serviceConfig=None, defaultPort=None)[source]

Python matcher application

configCls

alias of ServiceSettings

ctxCls

alias of PythonMatcherCtx

Luna Python Matcher Proxy application context

Application server.

class luna_python_matcher.app_proxy.app.PythonMatcherProxyApp(thirdPartyLoggerWhiteList=None, serviceConfig=None, defaultPort=None)[source]

Python matcher proxy application

configCls

alias of ServiceProxySettings

ctxCls

alias of PythonMatcherProxyCtx