flow.record.adapter

Submodules

Package Contents

Classes

Functions

with_metaclass

Create a base class with a metaclass. Python 2 and 3 compatible.

Attributes

flow.record.adapter.__path__
flow.record.adapter.with_metaclass(meta, *bases)

Create a base class with a metaclass. Python 2 and 3 compatible.

class flow.record.adapter.AbstractWriter

Bases: with_metaclass(abc.ABCMeta, object)

abstract write(rec)

Write a record.

abstract flush()

Flush any buffered writes.

abstract close()

Close the Writer, no more writes will be possible.

__del__()
__enter__()
__exit__(*args)
class flow.record.adapter.AbstractReader

Bases: with_metaclass(abc.ABCMeta, object)

abstract __iter__()

Return a record iterator.

close()

Close the Reader, can be overriden to properly free resources.

__enter__()
__exit__(*args)