cloup.types

Parameter types and “shortcuts” for creating commonly used types.

Functions

path(*[, path_type, exists, file_okay, dir_okay, ...])

Shortcut for click.Path with path_type=pathlib.Path.

dir_path(*[, path_type, exists, readable, writable, ...])

Shortcut for click.Path with

file_path(*[, path_type, exists, readable, writable, ...])

Shortcut for click.Path with

Contents

cloup.types.path(*, path_type=pathlib.Path, exists=False, file_okay=True, dir_okay=True, readable=True, writable=False, executable=False, resolve_path=False, allow_dash=False)[source]

Shortcut for click.Path with path_type=pathlib.Path.

Parameters:
Return type:

click.Path

cloup.types.dir_path(*, path_type=pathlib.Path, exists=False, readable=True, writable=False, executable=False, resolve_path=False, allow_dash=False)[source]

Shortcut for click.Path with file_okay=False, path_type=pathlib.Path.

Parameters:
Return type:

click.Path

cloup.types.file_path(*, path_type=pathlib.Path, exists=False, readable=True, writable=False, executable=False, resolve_path=False, allow_dash=False)[source]

Shortcut for click.Path with dir_okay=False, path_type=pathlib.Path.

Parameters:
Return type:

click.Path