An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

.. contents:: **pathvalidate-cli**
:backlinks: top
:depth: 2

Summary
============================================

``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: CodeQL

Installation
============================================
::

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`__