Skip to main content

pathvalidate-cli is a command line interface for pathvalidate library.

Project description

Summary

pathvalidate-cli is a command line interface for pathvalidate library.

Installation

pip install pathvalidate-cli

Usage

$ 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

$ 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 with the platform limitation.  [default:
                                -1]
  --platform PLATFORM           Execution platform name (case-insensitive).
                                Valid platform specifiers are
                                Linux/Windows/macOS. Valid special values are:
                                POSIX, universal (a) auto: automatically
                                detects the execution platform. (b) universal:
                                platform independent.  [default: universal]
  -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+

Project details


Download files

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

Source Distribution

pathvalidate-cli-0.0.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pathvalidate_cli-0.0.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pathvalidate-cli-0.0.1.tar.gz.

File metadata

  • Download URL: pathvalidate-cli-0.0.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pathvalidate-cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d08a3b61946abc4ea3ddfa9b572fe69e129b68a2d56d99db52dc9f1800a0a104
MD5 693771ccc14fe711f00a5e04a3095ce6
BLAKE2b-256 9eca2802c4b9a7375164921a7ca6d12922994d91ec0c5cf0cd4880b32768a27a

See more details on using hashes here.

File details

Details for the file pathvalidate_cli-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pathvalidate_cli-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e9e5d8d8470ed0a8a99b0ff51e996baf8ca82ffd6e7bdc1cadf8d45414db1b8
MD5 a8cdf7d06635be4c31ebe035d66a54a2
BLAKE2b-256 19815ca0e5688faa307599ac4ce0847aa6868931af869339f7cecd11366d533d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page