Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

formic-0.9beta.tar.gz (42.9 kB view hashes)

Uploaded Source

formic-0.9beta2.tar.gz (38.6 kB view hashes)

Uploaded Source

Built Distributions

formic-0.9beta-py2.7.egg (75.8 kB view hashes)

Uploaded Source

formic-0.9beta2-py2.7.egg (76.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page