wmwpy.utils.file_types package¶
Submodules¶
wmwpy.utils.file_types.Documents module¶
- class wmwpy.utils.file_types.Documents.DatabaseFile[source]¶
Bases:
Reader
- EXTENSION = 'db'¶
- MIME = 'application/x-sqlite3'¶
- check(mime: str, extension: str, rawdata: BytesIO, **kwargs)[source]¶
Check file type.
- Parameters:
mime (str) – File mime.
extension (str) – File extension
rawdata (io.BytesIO) – Contents of file as file-like object.
- Returns:
Whether the file is of this type.
- Return type:
bool
- class wmwpy.utils.file_types.Documents.ImagelistFile[source]¶
Bases:
Reader
- EXTENSION = 'imagelist'¶
- MIME = 'text/imagelist'¶
- class wmwpy.utils.file_types.Documents.ObjectFile[source]¶
Bases:
Reader
- EXTENSION = 'hs'¶
- MIME = 'text/hs'¶
- class wmwpy.utils.file_types.Documents.SpriteFile[source]¶
Bases:
Reader
- EXTENSION = 'sprite'¶
- MIME = 'text/sprite'¶
- class wmwpy.utils.file_types.Documents.XMLFile[source]¶
Bases:
Reader
- EXTENSION = 'xml'¶
- MIME = 'text/xml'¶
wmwpy.utils.file_types.Images module¶
- class wmwpy.utils.file_types.Images.ImageFile[source]¶
Bases:
Reader
- EXTENSION = ''¶
- MIME = 'image/'¶
- class wmwpy.utils.file_types.Images.WaltexFile[source]¶
Bases:
Reader
- EXTENSION = 'waltex'¶
- MIME = 'image/waltex'¶