Module pipes :: Class Template
[hide private]
[frames] | no frames]

_ClassType Template

Class representing a pipeline template.

Instance Methods [hide private]
 
__init__(self)
Template() returns a fresh pipeline template.
 
__repr__(self)
t.__repr__() implements repr(t).
 
reset(self)
t.reset() restores a pipeline template to its initial state.
 
clone(self)
t.clone() returns a new pipeline template with identical initial state as the current one.
 
debug(self, flag)
t.debug(flag) turns debugging on or off.
 
append(self, cmd, kind)
t.append(cmd, kind) adds a new step at the end.
 
prepend(self, cmd, kind)
t.prepend(cmd, kind) adds a new step at the front.
 
open(self, file, rw)
t.open(file, rw) returns a pipe or file object open for reading or writing; the file is the other end of the pipeline.
 
open_r(self, file)
t.open_r(file) and t.open_w(file) implement t.open(file, 'r') and t.open(file, 'w') respectively.
 
open_w(self, file)
 
copy(self, infile, outfile)
 
makepipeline(self, infile, outfile)