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-2.1.0.tar.gz (7.0 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-2.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aett_sqlite-2.1.0.tar.gz
Algorithm Hash digest
SHA256 0f3adfa2c2c56c1679226c5bd28d94315c4f2c54627f373971c9c0271405a86a
MD5 db5d35c64d7ca1de7953cbb3636d2c78
BLAKE2b-256 664d87817681464424c46eb9865fa124c27dc9f4da8fbea4253d86ead6245778

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aett_sqlite-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for aett_sqlite-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97a15cbf346f63e3c8499f6339579899099d4afff19c9a86cc67f399b4627bc3
MD5 5c1dba6af4945c1a5501ea2e0dc36469
BLAKE2b-256 30a18e852c89510cc7c43105338a3682519561772d3415aad5db95a672dffa42

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