pathvalidate-cli 0.0.3

Last updated:

0 purchases

pathvalidate-cli 0.0.3 Image
pathvalidate-cli 0.0.3 Images
Add to Cart

Description:

pathvalidatecli 0.0.3

pathvalidate-cli

Summary
Installation
Usage

Sanitize file paths
Validate file paths
Command Help


Dependencies
Related Project



Summary
pathvalidate-cli is a command line interface for pathvalidate library.
The tool can sanitize/validate strings such as file-names/file-paths.



Installation
pip install pathvalidate-cli


Usage

Sanitize file paths
$ pathvalidate sanitize 'fi:l*e/p"a?t>h|.t<xt'
file/path.txt
$ pathvalidate --filename sanitize 'fi:l*e/p"a?t>h|.t<xt'
filepath.txt


Validate file paths
$ pathvalidate validate file/path.txt
$
$ pathvalidate validate 'fi:l*e/p"a?t>h|.t<xt'
[PV1100] invalid characters found: invalids=(':', '*', '"', '?', '>', '|', '<'), value='fi:l*e/p"a?t>h|.t<xt', platform=Windows


Command Help
Usage: pathvalidate [OPTIONS] COMMAND [ARGS]...

Options:
--version Show the version and exit.
--debug For debug print.
-q, --quiet Suppress execution log messages.
--filename Consider inputs as filenames.
--max-len, --max-bytes BYTES Maximum byte counts of file paths. -1: same
value as the platform limitation. [default:
-1]
--platform PLATFORM Target platform name (case-insensitive). Valid
platform specifiers are Linux/Windows/macOS.
Valid special values are: auto, universal,
POSIX (a) auto: automatically detects the
execution platform. (b) universal: platform
independent. (c) POSIX: POSIX-compliant
platform. [default: universal]
--security-check Enable security checks.
-v, --verbose Verbosity level [default: 0]
-h, --help Show this message and exit.

Commands:
error Print error reasons.
sanitize Sanitize file paths.
validate Validate file paths.



Dependencies
Python 3.8+


Related Project

pathvalidate

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.