Skip to main content

Python helpers for the drake workflow language

Project description

Utilities for making life easier in Python with Drake workflows.

Installing

Run pip install drakeutil.

Using

For Python steps inside your workflow include the line:

from drakeutil import *

This will populate the special family of variables INPUT, OUTPUT from the environment. For example:

somefile.out <- somefile.in [python]
    from drakeutil import *
    with open(INPUT) as istream:
        with open(OUTPUT) as ostream:
            for l in istream:
                for word in l.split():
                    print >> ostream, word

In the future we might add more helpers. Can you think of any that would be useful?

Changelog

0.1.0

  • Support special INPUT and OUTPUT family of environment variables

  • Provide mysql_cursor helper when MySQLdb module is installed

Project details


Download files

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

Source Distribution

drakeutil-0.1.0.tar.gz (2.3 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