Faces proxy handler

Handler for a certain faces.

class luna_api.app.handlers.faces_proxy_handler.FaceHandler(request)[source]

Handler for work with a face. See spec_face.

Resource: “/{api_version}/faces/{faceId}”

class luna_api.app.handlers.faces_proxy_handler.FacesAttributeHandler(request)[source]

Handler for work with a face attributes. See spec_face_attributes.

Resource: “/{api_version}/faces/{faceId}/attributes”

class luna_api.app.handlers.faces_proxy_handler.FacesAttributeSamplesHandler(request)[source]

Handler for work with face attribute samples. See spec_get_face_attribute_samples.

Resource: “/{api_version}/faces/{faceId}/attributes/samples”

class luna_api.app.handlers.faces_proxy_handler.FacesAttributesCountHandler(request)[source]

Handler for getting count faces with attributes. See spec_get_face_attribute_count.

Resource: “/{api_version}/faces/attributes/count”

class luna_api.app.handlers.faces_proxy_handler.FacesCountHandler(request)[source]

Handler for getting face count. See spec_get_faces_count.

Resource: “/{api_version}/faces/count”

class luna_api.app.handlers.faces_proxy_handler.FacesHandler(request)[source]

Handler for create new faces. See spec_faces.

Resource: “/{api_version}/faces”

async postProcessingPost(response)[source]

Update urls in output json and location header :param response: from faces

Returns:

response

Return type:

HTTPResponse

async prepareRequestPost()[source]

Add account id to new face :returns: proxy request

Return type:

ProxyRequest