An implementation of Apache Ant FileSet globs
Project description
Formic is an implementation of Apache Ant Globs in Python. The package can be used either from the command line or as a library.
Quickstart
Formic can be installed from the Cheeseshop with easy_install or pip.:
$ easy_install formic
Once installed, you can use Formic either from the command line:
$ formic -i “.py” -e “__init__.py” “*/test/” “test_*”
Or integrated right into your Python 2.7 project:
import formic fileset = formic.FileSet(include="**.py", exclude=["**/*test*/**", "test_*"] ) for file_name in fileset.qualified_files(): # Do something with file_name ...
That’s about it :)
More detailed instructions and API documentation are available at http://www.aviser.asia/formic
About Formic
Formic is written and maintained by Andrew Alcock (formic@aviser.asia) of Aviser LLP, Singapore.
Formic is Copyright (C) 2012, Aviser LLP and released under GPLv3. Aviser LLP would be happy to discuss other licensing arrangements; for details, please email the maintainer.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.