Metadata-Version: 1.1
Name: pywildcard
Version: 1.0.8
Summary: wildcard
Home-page: https://github.com/fire-carrot/python-wildcard
Author: Firecarrot
Author-email: support@firecarrot.com
License: GPL
Description: wildcard
        ========
        
        This library is a fork of fnmatch
        (https://docs.python.org/2/library/fnmatch.html) to implement \*\*
        
        |PypiDownloads|
        
        All documentation is identical to fnmatch except ``*`` , ``*`` is now
        ``**`` and ``*`` only affects the particular directory
        
        https://docs.python.org/2/library/fnmatch.html
        
        Install
        -------
        
        .. code:: bash
        
            pip install pywildcard
        
        Link pypi: https://pypi.python.org/pypi/pywildcard
        
        Example
        -------
        
        .. code:: python
        
            import pywildcard
            dirs = ['hello/world.py', 'hello/world.pyc', 'hello/world/other/folder/example.py']
            pywildcard.filter(dirs, 'hello/*')
            #  ['hello/world.py', 'hello/world.pyc']
        
            pywildcard.filter(dirs, 'hello/*.py')
            # ['hello/world.py']
        
            pywildcard.filter(dirs, 'hello/**')
            # ['hello/world.py', 'hello/world.pyc', 'hello/world/other/folder/example.py']
        
            pywildcard.filter(dirs, 'hello/**.py')
            # ['hello/world.py', 'hello/world/other/folder/example.py']
        
        Diffs fnmatch & pywildcard
        --------------------------
        
        fnmatch
        ~~~~~~~
        
        .. code:: python
        
            import re
            import fnmatch
        
            urls = ['example/l1/l2/test3-1.py',
                    'example/l1/test2-1.py',
                    'example/l1/test2-2.py',
                    'example/l1/l2/l3/test4-1.py']
        
            regex = fnmatch.translate('example/*')
            # 'example\\/.*\\Z(?ms)'
            re.findall(regex, "\n".join(urls))
            # return ['example/l1/l2/test3-1.py\nexample/l1/test2-1.py\nexample/l1/test2-2.py\nexample/l1/l2/l3/test4-1.py']
        
        pywildcard
        ~~~~~~~~~~
        
        .. code:: python
        
            import re
            import pywildcard
        
            urls = ['example/l1/l2/test3-1.py',
                    'example/l1/test2-1.py',
                    'example/l1/test2-2.py',
                    'example/l1/l2/l3/test4-1.py']
        
            regex = pywildcard.translate('example/*')
            # ''example\\/.*?$(?ms)
            re.findall(regex, "\n".join(urls))
            # return ['example/l1/l2/test3-1.py',
            #         'example/l1/test2-1.py',
            #         'example/l1/test2-2.py',
            #         'example/l1/l2/l3/test4-1.py']
        
        .. |PypiDownloads| image:: https://img.shields.io/pypi/dm/pywildcard.svg
           :target: https://pypi.python.org/pypi/pywildcard
        
        
        CHANGELOG
        =========
        
        1.0.8 (2015-11-26)
        ------------------
        
        -  update README.md
        
        1.0.7 (2015-11-25)
        ------------------
        
        -  Add documentation
        
        
Keywords: wildcard,pywildcard
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Natural Language :: English
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
