:py:mod:`flow.record.adapter.archive` ===================================== .. py:module:: flow.record.adapter.archive Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: flow.record.adapter.archive.ArchiveWriter flow.record.adapter.archive.ArchiveReader Attributes ~~~~~~~~~~ .. autoapisummary:: flow.record.adapter.archive.__usage__ .. py:data:: __usage__ :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ Record archiver adapter, writes records to YYYY/mm/dd directories (writer only) --- Write usage: rdump -w archive://[PATH] [PATH]: path to folder """ .. raw:: html
.. py:class:: ArchiveWriter(path, **kwargs) Bases: :py:obj:`flow.record.adapter.AbstractWriter` .. py:attribute:: writer .. py:method:: write(r) Write a record. .. py:method:: flush() Flush any buffered writes. .. py:method:: close() Close the Writer, no more writes will be possible. .. py:class:: ArchiveReader(path, **kwargs) Bases: :py:obj:`flow.record.adapter.AbstractReader`