Skip to main content

DynamoDB connector for aett event store

Project description

Æt (Aett) is an Event Store for Python

Downloads

Aett DynamoDB provides the ability to store and retrieve events from a DynamoDB table.

Usage

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

from aett.dynamodb.EventStore import PersistenceManagement

# Set up a new event store
mgmt = PersistenceManagement()
mgmt.initialize()

# Drop the store
mgmt.drop()

The package also provides CommitStore and SnapshotStore classes that can be used to store and retrieve events. They can be instantiated by providing AWS credentials and specifying the configured table name and region. If localhost is set as region, then the stores assume a server running at http://localhost:8000.

from aett.dynamodb.EventStore import CommitStore, SnapshotStore

commit_store = CommitStore()

snapshot_store = SnapshotStore()

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_dynamodb-2.0.3.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

aett_dynamodb-2.0.3-py3-none-any.whl (6.3 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