medkit.io.medkit_json._common#

Attributes#

Classes#

ContentType

Type of content.

Functions#

build_header(→ dict[str, Any])

check_header(data, expected_content_type)

Module Contents#

medkit.io.medkit_json._common.MEDKIT_JSON_VERSION = '0.2'#
class medkit.io.medkit_json._common.ContentType(*args, **kwds)#

Bases: enum.Enum

Type of content.

Attributes:
TEXT_DOCUMENTText document
TEXT_DOCUMENT_LISTList of text documents
TEXT_ANNOTATION_LISTList of text annotations
AUDIO_DOCUMENTAudio document
AUDIO_DOCUMENT_LISTList of audio documents
AUDIO_ANNOTATION_LISTList of audio annotations
TEXT_DOCUMENT = 'text_document'#
TEXT_DOCUMENT_LIST = 'text_document_list'#
TEXT_ANNOTATION_LIST = 'text_annotation_list'#
AUDIO_DOCUMENT = 'audio_document'#
AUDIO_DOCUMENT_LIST = 'audio_document_list'#
AUDIO_ANNOTATION_LIST = 'audio_annotation_list'#
medkit.io.medkit_json._common.build_header(content_type: ContentType) dict[str, Any]#
medkit.io.medkit_json._common.check_header(data, expected_content_type: ContentType)#