Skip to main content

Postgres connector for aett event store

Project description

Æt (Aett) is an Event Store for Python

Downloads

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

Usage

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

import psycopg
from aett.postgres.EventStore import PersistenceManagement

# Set up a new event store
mgmt = PersistenceManagement(psycopg.connect("host=localhost port=5432 dbname=aett user=aett password=aett"))
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 a Postgres database connection and specifying the configured table name.

from aett.postgres.EventStore import CommitStore, SnapshotStore
import pymongo.database

snapshot_store = SnapshotStore(psycopg.connect("host=localhost port=5432 dbname=aett user=aett password=aett"))

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_postgres-2.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

aett_postgres-2.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file aett_postgres-2.1.0.tar.gz.

File metadata

  • Download URL: aett_postgres-2.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for aett_postgres-2.1.0.tar.gz
Algorithm Hash digest
SHA256 17c4dc85ccbab846e19e000daef080b290eaab218f28740fa034fa04916133fb
MD5 68bc2046d641f957f14d85eab3461f31
BLAKE2b-256 6dcc7aa432bde1384d494f9557eaf72b372dc40913e4959689e57a4dac318dba

See more details on using hashes here.

File details

Details for the file aett_postgres-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aett_postgres-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7a60416b21646831e85c168fd0576c94a60acafddf7da992e8c1fc127d3bb74
MD5 9652eed5774529d631be1cd0647caf6c
BLAKE2b-256 627ce496d5a7266bbfbccb4d4c1cf1ff31491d2a51f60c6b3e6bdb44ba8c3225

See more details on using hashes here.

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