Skip to content

escaping

convert_kwargs_to_cmd_line_args

convert_kwargs_to_cmd_line_args(
    kwargs: dict[str, Any]
) -> list[str]

Helper function to build command line arguments out of dict.

Parameters:

Name Type Description Default
kwargs dict[str, Any]

The dict to convert.

required

Returns:

Type Description
list[str]

The command line arguments.

escape

escape(
    text: str | int | float, chars: str = "\\'=:"
) -> str

Helper function to escape uncomfortable characters.

Parameters:

Name Type Description Default
text str | int | float

The text to escape.

required
chars str

The characters to escape.

"\\'=:"

Returns:

Type Description
str

The escaped text.