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
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.
Source Distribution
drakeutil-0.1.0.tar.gz
(2.3 kB
view details)
File details
Details for the file drakeutil-0.1.0.tar.gz
.
File metadata
- Download URL: drakeutil-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 900a02ceeace70387c8b20469126b74b5ba02864a93a369e4e68f858c0bab3ef |
|
MD5 | c584f643a44e3b02cb20467340cc2dfd |
|
BLAKE2b-256 | ea98406edb7d0fe96613d9dc2345d716a363f07215c3e79609405027f2867008 |