Skip to main content

S3 connector for aett event store

Project description

Æt (Aett) is an Event Store for Python

Downloads

Aett S3 provides the ability to store and retrieve events from an S3 bucket.

Usage

To create an event stream to manage events, you will need to create a bucket, which will serve as the root storage.

The package also provides CommitStore and SnapshotStore classes that can be used to store and retrieve events. They can be instantiated by providing a Postgres database connection and specifying the configured table name.

from aett.s3 import CommitStore, SnapshotStore, S3Config
from aett.eventstore import TopicMap

config = S3Config(bucket='test',
                  endpoint_url='http://localhost:9000',
                  use_tls=False,
                  aws_access_key_id='minioadmin',
                  aws_secret_access_key='minioadmin')
commit_store = CommitStore(s3_config=config, topic_map=TopicMap())
snapshot_store = SnapshotStore(s3_config=config)

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_s3-1.2.1.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

aett_s3-1.2.1-py3-none-any.whl (5.7 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