Python matcher Body Matcher handler

Matcher handler.

class luna_python_matcher.app.handlers.matcher_body_handler.BodyMatcherHandler(request)[source]

Matcher handler allows to submit tasks to a service that searches for bodies similar to a given reference by matching them.

Resource: “/{api_version}/matcher/bodies”

static getPythonMatcherMatchTool(candidateBatch)[source]

Get match tool.

Parameters

candidateBatch – prepared candidate batch from request, not suitable for matcher match tool

Returns

matchTool - faces db / events db match tool

Return type

Type[PythonMatcherMatchTool]

async post()[source]

Match events or raw descriptors by bodies. See spec_matcher.

Returns

response with matching results

Return type

HTTPResponse