Metadata-Version: 1.2
Name: formic2
Version: 1.0.1
Summary: An implementation of Apache Ant FileSet and Globs
Home-page: https://github.com/wolfhong/formic
Author: Aviser LLP, Singapore; wolfhong
Author-email: hongxucai1991@gmail.com
License: GPLv3+
Description: Formic: Apache Ant FileSet and Globs in Python
        ==============================================
        
        History
        -------
        
        Formic is forked from https://bitbucket.org/aviser/formic. The original project only supports python2.7 and has not been maintained for a long time.
        
        I added Python3 supports and fixed some issues.
        Formic now can work on any Python 2.6+ or Python 3.4+ system. If not, please `file an issue <https://github.com/wolfhong/formic/issues/new>`_. Yet not tested on other Python version.
        
        Formic has no runtime dependencies outside the Python system libraries.
        
        Quickstart
        ----------
        
        Formic can be installed from the Cheeseshop with easy_install::
        
           $ easy_install formic2
        
        Or pip::
        
           $ pip install formic2
        
        Once installed, you can use Formic either from the command line to find from the current directory::
        
           $ formic -i "*.py" -e "__init__.py" "**/*test*/" "test_*"
        
        This will search for files all Python files under the current directory
        excluding all `__init__.py` files, any file in directories whose name contains
        the word 'test', and any files that start `test_`.
        
        You can also find from the specified directory like below::
        
           $ formic /specified/directory/can/ignore/ -i "*.py" "**/test/**/*.txt" "*.ini"
        
        Or integrated right into your Python project::
        
            import formic
            fileset = formic.FileSet(include="**.py",
                                     exclude=["**/*test*/**", "test_*"],
                                     directory="./",
                                     symlinks=False, )
        
            for file_name in fileset:
                # Do something with file_name
                ...
        
        Formic is always case-insensitive::
        
            $ formic ./test/ -i "upper*" "upper*/"
            /some/where/formic/test/lower/UPPER.txt
            /some/where/formic/test/UPPER/lower.txt
            /some/where/formic/test/UPPER/UPPER.txt
        
        That's about it :)
        
        Features
        --------
        
        Formic is a Python implementation of Apache Ant `FileSet and Globs
        <http://ant.apache.org/manual/dirtasks.html#patterns>`_ including the directory wildcard `**`.
        
        FileSet provides a terse way of specifying a set of files without having to enumerate individual files. It:
        
        1. **Includes** files from one or more Ant Globs, then
        2. Optionally **excludes** files matching further Ant Globs.
        
        Ant Globs are a superset of ordinary file system globs. The key differences:
        
        * They match whole paths, eg ``/root/myapp/*.py``
        * \*\* matches *any* directory or *directories*, eg ``/root/**/*.py`` matches
          ``/root/one/two/my.py``
        * You can match the topmost directory or directories, eg ``/root/**``, or
        * The parent directory of the file, eg ``**/parent/*.py``, or
        * Any parent directory, eg ``**/test/**/*.py``
        
        This approach is the de-facto standard in several other languages and tools,
        including Apache Ant and Maven, Ruby (Dir) and Perforce (...).
        
        Python has built-in support for simple globs in `fnmatcher
        <http://docs.python.org/library/fnmatch.html>`_ and `glob
        <http://docs.python.org/library/glob.html>`_, but Formic:
        
        * Can recursively scan subdirectories
        * Matches arbitrary directories *in* the path (eg ``/1/**/2/**/3/**/*.py``).
        * Has a high level interface:
        
          * Specify one or more globs to find files
          * Globs can be used to exclude files
          * Ant, and Formic, has a set of *default excludes*. These are files and
            directories that, by default, are automatically excluded from all searches.
            The majority of these are files and directories related to VCS (eg .svn
            directories). Formic adds ``__pycache__``.
          * Iterate through all matches in the sub-tree
        
        * Is more efficient with many common patterns; it runs relatively faster on large directory trees with large numbers of files.
        
        About
        -----
        
        Formic is originally written and maintained by `Andrew Alcock <mailto:formic@aviser.asia>`_ of `Aviser LLP <http://www.aviser.asia>`_, Singapore.
        
        But now, I forked it on GitHub and will maintain this project voluntarily for a long time.
        
        * `Origin Homepage <http://www.aviser.asia/formic>`_
        * `Current Issue tracker <https://github.com/wolfhong/formic/issues?status=new&status=open>`_
        * `Current Source <https://github.com/wolfhong/formic>`_ on GitHub
        
        Formic is Copyright (C) 2012, Aviser LLP and released under
        `GPLv3 <http://www.gnu.org/licenses/gpl.html>`_. Aviser LLP would be happy to discuss other licensing arrangements; for details, please email the Aviser LLP maintainer.
        
Keywords: Apache Ant,glob,recurse,FileSet,file utilities,find,fnmatcher
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires-Python: >=2.6, <4
