Skip to main content

'A Python click type which is similar to click.Path but returns a pathlib Path'

Project description

Build Status codecov PyPI

Click Pathlib

A Python click type which is similar to click.Path but returns a Pathlib.Path.


$ pip install click-pathlib

This supports Python 3.8+.


Use the click_pathlib.Path just like a click.Path type and your function will receive a pathlib.Path.

import click
import click_pathlib

def delete(existing_file):


Thanks to @jeremyh for describing this solution on GitHub at

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for click-pathlib, version 2020.3.13.0
Filename, size File type Python version Upload date Hashes
Filename, size click_pathlib-2020.3.13.0-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size click-pathlib-2020.3.13.0.tar.gz (15.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page