A Click parameter type that behaves like click.Path but returns a pathlib.Path object instead of a string. Version 2020.3.13.0 is the latest released in March 2020. Low activity; no releases since 2020.
pip install click-pathlibNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a Click command with a pathlib.Path option that does not require the path to exist.
Check Click version compatibility. Use click.Path with path_type=pathlib.Path for simpler cases.
Consider using click.Path(path_type=pathlib.Path) instead, which is built into Click.
Understand that validation happens at click parsing time; the function receives a valid Path.
Use 'from click_pathlib import Path'.
Use the parameter decorator correctly: @click.option('--path', type=Path(exists=False)).Set exists=False if the file may not pre-exist, or create the file before invoking.