mendevi.cli.parse

Parse and verify some user input.

Classes

PixelParamType()

Parse the pixel format.

ResolutionParamType()

Parse the resolution.

Functions

parse_videos_database(prt, videos[, ...])

Find or create the database and extract all the videos.

Details

class mendevi.cli.parse.PixelParamType[source]

Parse the pixel format.

class mendevi.cli.parse.ResolutionParamType[source]

Parse the resolution.

mendevi.cli.parse.parse_videos_database(prt: Printer, videos: tuple[str], database: str = None, _quiet: bool = False) tuple[list[Path], Path][source]

Find or create the database and extract all the videos.

Parameters

prtcontext_verbose.Printer

The Printer instance to verbose the process.

videostuple[str]

The full pseudo pathlike video pointers.

databasestr, optional

The provided link to the video.

Returns

videoslist[pathlib.Path]

All the existing unfolded video files.

databasepathlib.Path

The existing database path.