The pipes module

(Unix only). This module contains support functions to create “conversion pipelines”. You can create a pipeline consisting of a number of external utilities, and use it on one or more files.

Example: Using the pipes module
# File:

import pipes

t = pipes.Template()

# create a pipeline
t.append("sort", "--")
t.append("uniq", "--")

# filter some text
t.copy("samples/sample.txt", "")

Alan Jones (sensible party)
Kevin Phillips-Bong (slightly silly)
Tarquin Fin-tim-lin-bin-whin-bim-lin-bus-stop-F'tang-F'tang-Olé-Biscuitbarrel

A Django site. rendered by a django application. hosted by webfaction.