Skip to main content

Event store for Python

Project description

Æt (Aett) is an Event Store for Python

Downloads

Provides a framework for managing event streams.

Usage

To create an event stream to manage events, you can use the EventStream class.

from aett.eventstore.EventStream import EventStream

# Create a new event stream
event_stream = EventStream.create('bucket_name', 'stream_name')

# Append an event to the stream
event_stream.add(SomeEvent())

# Load the event stream from the event store
event_stream = EventStream.load('bucket_name', 'stream_name', [A commit store instance], 0, 100)

The example above is high level and does not include the details of the commit store. The commit store is a class that implements the CommitStore interface and is used to store and retrieve events from the event store. An implementation is provided in the aett.dynamodb.EventStore module.

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

aett_eventstore-1.1.0.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

aett_eventstore-1.1.0-py3-none-any.whl (6.0 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