typing¶
Typing helpers.
- class deltona.typing.CDStatus(*values)¶
Bases:
IntEnumCD status codes.
-
DISC_OK =
4¶ Disc is OK.
-
DRIVE_NOT_READY =
3¶ Drive is not ready.
-
NO_DISC =
1¶ No disc in drive.
-
NO_INFO =
0¶ No information available.
-
TRAY_OPEN =
2¶ Tray is open.
-
DISC_OK =
- deltona.typing.DecodeErrorsOption¶
Decode errors option for string decoding functions.
alias of
Literal[‘ignore’, ‘replace’, ‘strict’]
- class deltona.typing.FormatDict¶
Bases:
TypedDictFFmpeg format dictionary.
- duration : NotRequired[str]¶
Duration of the media in seconds.
- tags : TagsDict¶
Tags dictionary.
- deltona.typing.INCITS38Code¶
Two-letter state code according to INCITS 38-2009.
alias of
Literal[‘AK’, ‘AL’, ‘AR’, ‘AS’, ‘AZ’, ‘CA’, ‘CO’, ‘CT’, ‘DC’, ‘DE’, ‘FL’, ‘FM’, ‘GA’, ‘GU’, ‘HI’, ‘IA’, ‘ID’, ‘IL’, ‘IN’, ‘KS’, ‘KY’, ‘LA’, ‘MA’, ‘MD’, ‘ME’, ‘MH’, ‘MI’, ‘MN’, ‘MO’, ‘MP’, ‘MS’, ‘MT’, ‘NC’, ‘ND’, ‘NE’, ‘NH’, ‘NJ’, ‘NM’, ‘NV’, ‘NY’, ‘OH’, ‘OK’, ‘OR’, ‘PA’, ‘PR’, ‘PW’, ‘RI’, ‘SC’, ‘SD’, ‘TN’, ‘TX’, ‘UM’, ‘UT’, ‘VA’, ‘VI’, ‘VT’, ‘WA’, ‘WI’, ‘WV’, ‘WY’]
- class deltona.typing.ProbeDict¶
Bases:
TypedDictFFmpeg probe result returned by
deltona.media.ffprobe().- format : FormatDict¶
Format dictionary.
- streams : Sequence[StreamsDict]¶
Dictionary of streams.
- class deltona.typing.StreamsDict¶
Bases:
TypedDictFFmpeg stream dictionary.
- disposition : StreamDispositionDict¶
Stream disposition dictionary.
- duration : NotRequired[str]¶
Duration of the stream in seconds.
- tags : TagsDict¶
Tags dictionary.
- deltona.typing.UNIXStrPath¶
String or
PathLike[str]that is a UNIX path.