Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 471 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 471 Bytes

Sight Machine

The BinaryLogger allows to store instances of BinaryLoggable classes and then enumerate all entries of any specified class in reverse order::

import sight_machine
with sight_machine.BinaryLogger() as log:
    log.write(BinaryLoggableX())
    log.write(BinaryLoggableY())
    log.write(BinaryLoggableX())
    log.write(BinaryLoggableX())

    for entry in log.read(BinaryLoggableX)):
        print(entry)