SqLite connector for aett event store
Project description
Æt (Aett) is an Event Store for Python
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
304177956025549e792c09ee227e54978126efae259fa37a5326836238b9250a
|
|
| MD5 |
848664979170c80ff80bd1d28c4ab06b
|
|
| BLAKE2b-256 |
d364cc0b9a617c32e3e365646b8e42cf2b755bf61cbc40969be9708466a735d7
|
File details
Details for the file aett_sqlite_async-2.1.0-py3-none-any.whl.
File metadata
- Download URL: aett_sqlite_async-2.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85149823d78e5f2a6ed7b4d0bdf83953dcf3accc0f2ab4e92419dc32c0368ff4
|
|
| MD5 |
593ecb4a928be897e4a02dca06d027c0
|
|
| BLAKE2b-256 |
7844010f39d88a452bf4bda47e228f235c1c2cc72ecc5eb7b0026ee3b6b23d60
|