Event store for Python
Project description
Æt (Aett) is an Event Store for Python
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
Release history Release notifications | RSS feed
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-2.0.2.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for aett_eventstore-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe08855ce94695c6ae324d93e569f05561002a9ffe368510b48abe090bb42d5c |
|
MD5 | 928cf5672babb5de1a2eb0f17444bb3d |
|
BLAKE2b-256 | 42c1e60965ed32fa52669d731d8c11566a83fed2f924ad56f72cd96496970aab |