https://github.com/thombashi/pathvalidate-cli
pathvalidate-cli is a command line interface for pathvalidate library. The tool can do sanitize/validate a string such as file-names/file-paths.
https://github.com/thombashi/pathvalidate-cli
filepath linter sanitization validation-tool
Last synced: 2 months ago
JSON representation
pathvalidate-cli is a command line interface for pathvalidate library. The tool can do sanitize/validate a string such as file-names/file-paths.
- Host: GitHub
- URL: https://github.com/thombashi/pathvalidate-cli
- Owner: thombashi
- License: mit
- Created: 2023-09-17T09:33:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-17T14:01:07.000Z (over 1 year ago)
- Last Synced: 2024-05-17T00:01:48.672Z (about 1 year ago)
- Topics: filepath, linter, sanitization, validation-tool
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
.. contents:: **pathvalidate-cli**
:backlinks: top
:depth: 2Summary
============================================``pathvalidate-cli`` is a command line interface for `pathvalidate `__ library.
The tool can sanitize/validate strings such as file-names/file-paths.|PyPI pkg ver| |Supported Python ver| |CI status| |CodeQL|
.. |PyPI pkg ver| image:: https://badge.fury.io/py/pathvalidate-cli.svg
:target: https://badge.fury.io/py/pathvalidate-cli
:alt: PyPI package version.. |Supported Python ver| image:: https://img.shields.io/pypi/pyversions/pathvalidate-cli.svg
:target: https://pypi.org/project/pathvalidate-cli
:alt: Supported Python versions.. |CI status| image:: https://github.com/thombashi/pathvalidate-cli/actions/workflows/ci.yml/badge.svg
:target: https://github.com/thombashi/pathvalidate-cli/actions/workflows/ci.yml
:alt: CI status of Linux/macOS/Windows.. |CodeQL| image:: https://github.com/thombashi/pathvalidate-cli/actions/workflows/github-code-scanning/codeql/badge.svg
:target: https://github.com/thombashi/pathvalidate-cli/actions/workflows/github-code-scanning/codeql
:alt: CodeQLInstallation
============================================
::pip install pathvalidate-cli
Usage
============================================Sanitize file paths
--------------------------------------------::
$ pathvalidate sanitize 'fi:l*e/p"a?t>h|.th|.th|.t', '|', '<'), value='fi:l*e/p"a?t>h|.t`__