color_print

Utility module for colored text print in terminal.

pygitrepo.color_print.pgr_print(message)[source]

Syntax sugar for:

[pygitrepo] … message … {Style.RESET_ALL}

pygitrepo.color_print.pgr_print_done(indent=0)[source]

Syntax sugar for:

[pygitrepo] {number_of_tab_indent}done

pygitrepo.color_print.colorful_path(path)[source]
Return type

str

pygitrepo.color_print.print_path(title, path)[source]

Print a description of a path and the absolute path. If path exists, path is in green, if not exists, path is in red.

Example: “- virtual environment directory: /path-to/my_venv”

pygitrepo.color_print.print_line(msg)[source]

Color print a message reset style before and after.

Return type

str