blackfennec.document_system.mime_type.in_memory package
Submodules
blackfennec.document_system.mime_type.in_memory.in_memory_mime_type module
- class blackfennec.document_system.mime_type.in_memory.in_memory_mime_type.InMemoryMimeType[source]
Bases:
MimeType
- export_structure(output: IO, structure: Structure)[source]
Exports a structure to a IO Stream
- Parameters
output (IO) – The IO Stream to export to
structure (Structure) – The structure to export
- import_structure(to_import) Structure [source]
Imports a structure from a IO Stream
- Parameters
to_import (IO) – The IO Stream to import from
- Returns
The imported structure
- Return type
- property mime_type_id: str
Returns the mime type id of this mime type e.g. application/json