Skip to main content

SqLite 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_sqlite_async-2.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

aett_sqlite_async-2.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aett_sqlite_async-2.1.0.tar.gz
Algorithm Hash digest
SHA256 304177956025549e792c09ee227e54978126efae259fa37a5326836238b9250a
MD5 848664979170c80ff80bd1d28c4ab06b
BLAKE2b-256 d364cc0b9a617c32e3e365646b8e42cf2b755bf61cbc40969be9708466a735d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aett_sqlite_async-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85149823d78e5f2a6ed7b4d0bdf83953dcf3accc0f2ab4e92419dc32c0368ff4
MD5 593ecb4a928be897e4a02dca06d027c0
BLAKE2b-256 7844010f39d88a452bf4bda47e228f235c1c2cc72ecc5eb7b0026ee3b6b23d60

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