sift_py.file_attachment.metadata
¶
Module containing optional metadata types to provide to Sift when uploading a file attachment. Though optional, providing this information could help improve quality of renders on the Sift app.
| CLASS | DESCRIPTION |
|---|---|
ImageMetadata |
Metadata for image media-types i.e. any mimetypes of the following pattern: |
Metadata |
|
VideoMetadata |
Metadata for video media-types i.e. any mimetypes of the following pattern: |
ImageMetadata
¶
Metadata
¶
Bases: AsJson
VideoMetadata
¶
VideoMetadata(
width: int,
height: int,
duration_seconds: float,
timestamp: Optional[datetime] = None,
)