mendevi.cli.parse

Parse and verify some user input.

Classes

CallBackType()

Parse the callback function.

CopyRamType()

Parse the ram copy format.

PixelParamType()

Parse the pixel format.

ResolutionParamType()

Parse the resolution.

Functions

parse_expr(expr, prt, start_msg)

Ensure that the expression provided is valid.

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

Find or create the database and extract all the videos.

Details

class mendevi.cli.parse.CallBackType[source]

Parse the callback function.

class mendevi.cli.parse.CopyRamType[source]

Parse the ram copy format.

class mendevi.cli.parse.PixelParamType[source]

Parse the pixel format.

class mendevi.cli.parse.ResolutionParamType[source]

Parse the resolution.

mendevi.cli.parse.parse_expr(expr: str | None, prt: Printer, start_msg: str) None[source]

Ensure that the expression provided is valid.

mendevi.cli.parse.parse_videos_database(prt: Printer, videos: tuple[str], database: str | None = 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.