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.

Filename, size & hash SHA256 hash help File type Python version Upload date
formic-0.9beta2-py2.7.egg (76.6 kB) Copy SHA256 hash SHA256 Egg 2.7
formic-0.9beta2.tar.gz (38.6 kB) Copy SHA256 hash SHA256 Source None
formic-0.9beta-py2.7.egg (75.8 kB) Copy SHA256 hash SHA256 Egg 2.7
formic-0.9beta.tar.gz (42.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page