Catalog PyPI
Back to packageRELEASE DETAILS

2.1.0

PyPI

aett-postgres

Postgres connector for aett event store

eventeventspostgresstore
Published23 Nov 2024
Direct dependencies6
Transitive dependenciesNot calculated

README

Version 2.1.0 documentation

Æ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"))

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 6

Native requirements
6 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
aett-domain
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
aett-domain>=2.1.0runtime
psycopg
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
psycopg~=3.2.3runtime
psycopg-binary
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
psycopg-binary~=3.2.3runtime
pip-tools
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pip-tools; extra == "dev"runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pytest; extra == "dev"runtime
behave
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
behave; extra == "dev"runtime

Distribution files

2 collected
aett_postgres-2.1.0-py3-none-any.whl

bdist_wheel · 5.8 KB · Python py3

Source file
aett_postgres-2.1.0.tar.gz

sdist · 6.04 KB · Python source

Source file

Repository

PENDING
jjrdk/aett

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:57 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:d3a7e68ea2d3df3095fb055914c3dd906eb3864ce6f412eb5bd5299160e9fb0a

Other collected versions

View all collected versions →