Skip to main content

Simple binary logger

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sight_machine-0.2.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

sight_machine-0.2-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page