forked from docarray/docarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenums.py
More file actions
27 lines (21 loc) · 633 Bytes
/
Copy pathenums.py
File metadata and controls
27 lines (21 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from enum import Enum
class DocumentMetadata(str, Enum):
MULTI_MODAL_SCHEMA = 'multi_modal_schema'
IMAGE_TYPE = 'image_type'
IMAGE_URI = 'image_uri'
AUDIO_TYPE = 'audio_type'
VIDEO_TYPE = 'video_type'
MESH_TYPE = 'mesh_type'
JSON_TYPE = 'json_type'
BLOB_TYPE = 'blob_type'
class AttributeType(str, Enum):
DOCUMENT = 'document'
PRIMITIVE = 'primitive'
ITERABLE_PRIMITIVE = 'iterable_primitive'
ITERABLE_DOCUMENT = 'iterable_document'
NESTED = 'nested'
ITERABLE_NESTED = 'iterable_nested'
class ImageType(str, Enum):
PIL = 'PIL'
URI = 'uri'
NDARRAY = 'ndarray'