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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aett_postgres_async-2.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aett_postgres_async-2.1.0.tar.gz
Algorithm Hash digest
SHA256 77f12dcd73d23cca44339770b81f45ae98b9a4784ed1986a3c0f6a7a28ff7a77
MD5 645a2406bcea9afc0e947f148ccb1bda
BLAKE2b-256 ffa1d4509e2d0ab6444a833d8959bcf199c17b8ac4a2dec7d1f580991d471912

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aett_postgres_async-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe92c607177714e2ea1cc5a57026fa41daee8cbceec6e31ee9cc715ba142980c
MD5 c490e166dde2c0c3d135a594f1b76f5f
BLAKE2b-256 58cae7982cdbb30b766280d5596a89d4511300bd0f685e7de868d7e947110099

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page