Website hosting service by

 Back to Index

8.13 pipes -- Interface to shell pipelines

Availability: Unix.

The pipes module defines a class to abstract the concept of a pipeline -- a sequence of convertors from one file to another.

Because the module uses /bin/sh command lines, a POSIX or compatible shell for os.system() and os.popen() is required.

The pipes module defines the following class:

class Template( )
An abstraction of a pipeline.


>>> import pipes
>>> t=pipes.Template()
>>> t.append('tr a-z A-Z', '--')
>>>'/tmp/1', 'w')
>>> f.write('hello world')
>>> f.close()
>>> open('/tmp/1').read()



2002-2004 Webhosting Service


Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to


Cheap domain registrar provides cheap domain registration, buy domain name and domain transfer from $5.95/year only   Cheap domain registration : Buy domain name and enjoy comprehensive free services