luigi.format module¶
-
class
luigi.format.
FileWrapper
(file_object)[source]¶ Bases:
object
Wrap file in a “real” so stuff can be added to it after creation.
-
class
luigi.format.
InputPipeProcessWrapper
(command, input_pipe=None)[source]¶ Bases:
object
Initializes a InputPipeProcessWrapper instance.
Parameters: command – a subprocess.Popen instance with stdin=input_pipe and stdout=subprocess.PIPE. Alternatively, just its args argument as a convenience. -
create_subprocess
(command)[source]¶ http://www.chiark.greenend.org.uk/ucgi/~cjwatson/blosxom/2009-07-02-python-sigpipe.html
-
-
class
luigi.format.
OutputPipeProcessWrapper
(command, output_pipe=None)[source]¶ Bases:
object
-
WRITES_BEFORE_FLUSH
= 10000¶
-
-
class
luigi.format.
NewlineWrapper
(stream, newline=None)[source]¶ Bases:
luigi.format.BaseWrapper
-
class
luigi.format.
MixedUnicodeBytesWrapper
(stream, encoding=None)[source]¶ Bases:
luigi.format.BaseWrapper
-
class
luigi.format.
ChainFormat
(*args, **kwargs)[source]¶ Bases:
luigi.format.Format
-
class
luigi.format.
NopFormat
[source]¶ Bases:
luigi.format.Format
-
class
luigi.format.
WrappedFormat
(*args, **kwargs)[source]¶ Bases:
luigi.format.Format
-
class
luigi.format.
TextFormat
(*args, **kwargs)[source]¶ Bases:
luigi.format.WrappedFormat
-
input
= 'unicode'¶
-
output
= 'bytes'¶
-
wrapper_cls
¶ alias of
TextWrapper
-
-
class
luigi.format.
MixedUnicodeBytesFormat
(*args, **kwargs)[source]¶ Bases:
luigi.format.WrappedFormat
-
output
= 'bytes'¶
-
wrapper_cls
¶ alias of
MixedUnicodeBytesWrapper
-
-
class
luigi.format.
NewlineFormat
(*args, **kwargs)[source]¶ Bases:
luigi.format.WrappedFormat
-
input
= 'bytes'¶
-
output
= 'bytes'¶
-
wrapper_cls
¶ alias of
NewlineWrapper
-
-
class
luigi.format.
GzipFormat
(compression_level=None)[source]¶ Bases:
luigi.format.Format
-
input
= 'bytes'¶
-
output
= 'bytes'¶
-
-
class
luigi.format.
Bzip2Format
[source]¶ Bases:
luigi.format.Format
-
input
= 'bytes'¶
-
output
= 'bytes'¶
-