[Tutor] any best practice on how to glue tiny tools together

Daniel daniel.chaowang at gmail.com
Fri Feb 6 10:11:08 CET 2009


Hi Tutors,

I want to use python to finish some routine data processing tasks
automatically (on Windows).

The main task could be split to sub small tasks. Each can be done by
executing some small tools like "awk" or by some other python scripts.
One example of such task is conducting a data processing job, including:

   1. use tool-A to produce some patterns.
   2. feed tool-B with these patterns to mine more related data
   3. repeat these tasks circularly until meeting some conditions.

The real task includes more tools which run in parallel or sequential
manner.

I know how to do this with modules like subprocess, but the final python
program looks somewhat messy and hard to adapt for changes.

Do you have any best practices on this?

Thanks a lot,
Danny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090206/28eb7985/attachment.htm>


More information about the Tutor mailing list