I/O helper classes

The following classes are helpers for extract (from...()) and load (to...()) functions that use a file-like data source. An instance of any of the following classes can be used as the source argument to data extraction functions like fromcsv() etc., with the exception of StdoutSource which is write-only. An instance of any of the following classes can also be used as the source argument to data loading functions like tocsv() etc., with the exception of StdinSource, URLSource and PopenSource which are read-only. The behaviour of each source can usually be configured by passing arguments to the constructor, see the source code of the petl.io module for full details.

class petl.FileSource(filename, **kwargs)
class petl.GzipSource(filename, **kwargs)
class petl.BZ2Source(filename, **kwargs)
class petl.ZipSource(filename, membername, pwd=None, **kwargs)
class petl.StdinSource
class petl.StdoutSource
class petl.URLSource(*args, **kwargs)
class petl.StringSource(s=None)
class petl.PopenSource(*args, **kwargs)