flow.record.adapter.text
#
Module Contents#
Classes#
dict() -> new empty dictionary |
|
Records are printed as textual representation with repr() or using format_spec. |
Attributes#
- flow.record.adapter.text.__usage__ = Multiline-String#
Show Value
""" Textual output adapter, similar to `repr()` (writer only) --- Write usage: rdump -w text://[PATH] [PATH]: path to file. Leave empty or "-" to output to stdout """
- flow.record.adapter.text.REPLACE_LIST = [('\\r', '\r'), ('\\n', '\n'), ('\\t', '\t')]#
- class flow.record.adapter.text.DefaultMissing#
Bases:
dict
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
- __missing__(key)#
- class flow.record.adapter.text.TextWriter(path, flush=True, format_spec=None, **kwargs)#
Bases:
flow.record.adapter.AbstractWriter
Records are printed as textual representation with repr() or using format_spec.
- fp#
- write(rec)#
Write a record.
- flush()#
Flush any buffered writes.
- close()#
Close the Writer, no more writes will be possible.