1. pathvalidate

PyPI package version conda package version Supported Python versions Supported Python implementations Linux/macOS/Windows CI status Test coverage GitHub stars

1.1. Summary

pathvalidate is a Python library to sanitize/validate a string such as filenames/file-paths/etc.

1.2. Features

  • Sanitize/Validate a string as a:
    • file name

    • file path

  • file name/path argument validator/sanitizer for argparse and click

  • Multi platform support:
    • sanitize/validate file names/paths for a specific platform (Linux/Windows/macOS/Posix) or universal (platform independent)

  • Multibyte character support

2. Installation

2.1. Installation: pip

pip install pathvalidate

2.2. Installation: conda

conda install -c thombashi pathvalidate

2.3. Installation: apt

sudo add-apt-repository ppa:thombashi/ppa
sudo apt update
sudo apt install python3-pathvalidate

3. Dependencies

Python 3.5+ No external dependencies.