Skip to main content

qx-eventstore

Event-sourced aggregates for the Qx framework. Aggregates are persisted as an immutable event stream in Postgres, with optional periodic snapshots for efficient replay.

Usage

from dataclasses import dataclass, field
from qx.eventstore import EventSourcedAggregate, EventStore, include_eventstore_tables

class MoneyDeposited(DomainEvent):
    event_name = "account.money_deposited"
    amount: int

@dataclass
class Account(EventSourcedAggregate[str]):
    balance: int = field(default=0)

    def deposit(self, amount: int) -> None:
        self.record_event(MoneyDeposited(amount=amount))

    def apply_moneydeposited(self, ev: MoneyDeposited) -> None:
        self.balance += ev.amount

Metadata

Release files for qx-eventstore 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qx-eventstore 1.1.0
File Size Uploaded Provenance Actions
qx_eventstore-1.1.0.tar.gz 7.2 kB Without provenance Details for qx_eventstore-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qx-eventstore 1.1.0
File Interpreter ABI Platform Actions
qx_eventstore-1.1.0-py3-none-any.whl Python 3 none any Details for qx_eventstore-1.1.0-py3-none-any.whl

Total release size: 14.3 kB

Release files / qx_eventstore-1.1.0.tar.gz

Download URL qx_eventstore-1.1.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7be5d3585586837d89068476eb3e134f0668dea27953512992a7a59096ec782f
BLAKE2b-256 checksum
How to use checksums
c16f4281eff6b567818fe6aff61452242ff16b0c8f9a3897e24f4ed279abe77d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / qx_eventstore-1.1.0-py3-none-any.whl

Download URL qx_eventstore-1.1.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2056156fcb8833e69920e7add2044b4a9508971f0f7fc86a631ba57f6c29d312
BLAKE2b-256 checksum
How to use checksums
53600522a4c2eaa76c0b13a2b1a84197bf3685085b77c7d9b94bed977455f127
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for qx-eventstore 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page