Metadata-Version: 1.1
Name: pathvalidate
Version: 0.1.0
Summary: pathvalidate is a python library to validate filename.

Home-page: https://github.com/thombashi/pathvalidate
Author: Tsuyoshi Hombashi
Author-email: gogogo.vm@gmail.com
License: MIT License
Description: **pathvalidate**
        
        .. image:: https://img.shields.io/pypi/pyversions/pathvalidate.svg
           :target: https://pypi.python.org/pypi/pathvalidate
        .. image:: https://travis-ci.org/thombashi/pathvalidate.svg?branch=master
            :target: https://travis-ci.org/thombashi/pathvalidate
        .. image:: https://coveralls.io/repos/github/thombashi/pathvalidate/badge.svg?branch=master
            :target: https://coveralls.io/github/thombashi/pathvalidate?branch=master
        
        .. contents:: Table of contents
           :backlinks: top
           :local:
        
        Summary
        =======
        pathvalidate is a python library to validate filename.
        
        Installation
        ============
        
        ::
        
            pip install pathvalidate
        
        Usage
        =====
        
        Filename validation
        -------------------
        
        .. code:: python
        
            import pathvalidate
        
            filename = "a*b:c<d>e%f(g)h.txt"
            try:
                pathvalidate.validate_filename(filename)
            except ValueError:
                print("invalid filename!")
        
        .. code:: console
        
            invalid filename!
        
        Replace invalid chars
        ---------------------
        
        .. code:: pythn
        
            import pathvalidate
        
            filename = "a*b:c<d>e%f(g)h.txt"
            print(pathvalidate.sanitize_filename(filename))
        
        .. code:: console
        
            abcde%f(g)h+i.txt
        
        Replace symbols
        ---------------
        
        .. code:: pythn
        
            import pathvalidate
        
            filename = "a*b:c<d>e%f(g)h.txt"
            print(pathvalidate.replace_symbol(filename))
        
        .. code:: console
        
            abcdefgh+itxt
        
        Dependencies
        ============
        
        Python 2.6+ or 3.3+
        
        -  `DataPropery <https://github.com/thombashi/DataProperty>`__
        
        Test dependencies
        -----------------
        
        -  `pytest <https://pypi.python.org/pypi/pytest>`__
        -  `pytest-runner <https://pypi.python.org/pypi/pytest-runner>`__
        -  `tox <https://pypi.python.org/pypi/tox>`__
        
Keywords: path,filename,validation
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
