python-event-sourcery 0.5.3a4__py3-none-any.whl → 0.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- event_sourcery/_event_store/backend.py +18 -1
- event_sourcery/_event_store/event/dto.py +59 -13
- event_sourcery/_event_store/event/serde.py +22 -12
- event_sourcery/_event_store/event_store.py +44 -4
- event_sourcery/event.py +6 -0
- event_sourcery/exceptions.py +5 -0
- event_sourcery_otel/__init__.py +12 -0
- event_sourcery_otel/_carrier.py +9 -0
- event_sourcery_otel/_context.py +38 -0
- event_sourcery_otel/_enricher.py +27 -0
- {python_event_sourcery-0.5.3a4.dist-info → python_event_sourcery-0.6.0.dist-info}/METADATA +3 -1
- {python_event_sourcery-0.5.3a4.dist-info → python_event_sourcery-0.6.0.dist-info}/RECORD +14 -10
- {python_event_sourcery-0.5.3a4.dist-info → python_event_sourcery-0.6.0.dist-info}/WHEEL +1 -1
- {python_event_sourcery-0.5.3a4.dist-info → python_event_sourcery-0.6.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -14,6 +14,7 @@ from event_sourcery._event_store.event.encryption import (
|
|
|
14
14
|
from event_sourcery._event_store.event.registry import EventRegistry
|
|
15
15
|
from event_sourcery._event_store.event.serde import Serde
|
|
16
16
|
from event_sourcery._event_store.event_store import (
|
|
17
|
+
EventContextEnricher,
|
|
17
18
|
EventStore,
|
|
18
19
|
StorageStrategy,
|
|
19
20
|
)
|
|
@@ -36,7 +37,7 @@ from event_sourcery._event_store.subscription.interfaces import (
|
|
|
36
37
|
SubscriptionStrategy,
|
|
37
38
|
)
|
|
38
39
|
from event_sourcery._event_store.tenant_id import DEFAULT_TENANT, TenantId
|
|
39
|
-
from event_sourcery.exceptions import NoProviderConfigured
|
|
40
|
+
from event_sourcery.exceptions import ConflictingContextComponent, NoProviderConfigured
|
|
40
41
|
|
|
41
42
|
T = TypeVar("T")
|
|
42
43
|
T_co = TypeVar("T_co", covariant=True)
|
|
@@ -107,6 +108,10 @@ class _Container:
|
|
|
107
108
|
return new
|
|
108
109
|
|
|
109
110
|
|
|
111
|
+
class ContextEnrichers(tuple[EventContextEnricher, ...]):
|
|
112
|
+
pass
|
|
113
|
+
|
|
114
|
+
|
|
110
115
|
class Backend(_Container):
|
|
111
116
|
"""
|
|
112
117
|
Dependency Injection container for Event Sourcery components.
|
|
@@ -140,9 +145,11 @@ class Backend(_Container):
|
|
|
140
145
|
self[StorageStrategy] = not_configured(
|
|
141
146
|
"Use one of pyES backends: SQLAlchemy, Django or KurrentDB",
|
|
142
147
|
)
|
|
148
|
+
self[ContextEnrichers] = ContextEnrichers()
|
|
143
149
|
self[EventStore] = lambda c: EventStore(
|
|
144
150
|
storage_strategy=c[StorageStrategy],
|
|
145
151
|
serde=c[Serde],
|
|
152
|
+
context_enrichers=c[ContextEnrichers],
|
|
146
153
|
)
|
|
147
154
|
self[Outbox] = lambda c: Outbox(
|
|
148
155
|
strategy=c[OutboxStorageStrategy],
|
|
@@ -206,6 +213,16 @@ class Backend(_Container):
|
|
|
206
213
|
)
|
|
207
214
|
return self
|
|
208
215
|
|
|
216
|
+
def with_context_enrichers(self, *enrichers: EventContextEnricher) -> Self:
|
|
217
|
+
names = set[str]()
|
|
218
|
+
for enricher in enrichers:
|
|
219
|
+
name = enricher.component_type.__context_name__
|
|
220
|
+
if name in names:
|
|
221
|
+
raise ConflictingContextComponent(name)
|
|
222
|
+
names.add(name)
|
|
223
|
+
self[ContextEnrichers] = ContextEnrichers(enrichers)
|
|
224
|
+
return self
|
|
225
|
+
|
|
209
226
|
|
|
210
227
|
class TransactionalBackend(Backend):
|
|
211
228
|
"""
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import dataclasses
|
|
2
2
|
from dataclasses import dataclass
|
|
3
3
|
from datetime import datetime, timezone
|
|
4
|
-
from typing import Any, Generic, TypeAlias, TypeVar
|
|
4
|
+
from typing import Any, ClassVar, Generic, TypeAlias, TypeVar, cast
|
|
5
5
|
from uuid import UUID, uuid4
|
|
6
6
|
|
|
7
|
-
from pydantic import BaseModel
|
|
7
|
+
from pydantic import BaseModel, Field, PrivateAttr
|
|
8
|
+
from typing_extensions import Self
|
|
8
9
|
|
|
9
10
|
from event_sourcery._event_store.stream_id import StreamId
|
|
10
11
|
from event_sourcery._event_store.tenant_id import DEFAULT_TENANT, TenantId
|
|
@@ -76,23 +77,66 @@ TEvent = TypeVar("TEvent", bound=Event)
|
|
|
76
77
|
TContext = TypeVar("TContext", bound=BaseModel)
|
|
77
78
|
|
|
78
79
|
|
|
79
|
-
class
|
|
80
|
-
"""
|
|
81
|
-
Extensible context object for event metadata.
|
|
80
|
+
class ContextComponent(BaseModel):
|
|
81
|
+
"""A typed, independently owned part of an event context."""
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
__context_name__: ClassVar[str]
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
TContextComponent = TypeVar("TContextComponent", bound=ContextComponent)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class EventCorrelation(ContextComponent):
|
|
90
|
+
"""Typed view of the root correlation and causation fields."""
|
|
91
|
+
|
|
92
|
+
correlation_id: UUID | None = None
|
|
93
|
+
causation_id: UUID | None = None
|
|
86
94
|
|
|
87
|
-
Attributes:
|
|
88
|
-
correlation_id (UUID | None): Identifier for correlating related events.
|
|
89
|
-
causation_id (UUID | None): Identifier for the cause of the event.
|
|
90
95
|
|
|
91
|
-
|
|
96
|
+
class Context(BaseModel, extra="forbid"):
|
|
97
|
+
"""Event metadata with fixed fields and independently typed components.
|
|
98
|
+
|
|
99
|
+
New writes may contain root correlation fields and registered component payloads.
|
|
100
|
+
Extra root fields in historical events are retained by the deserialization path
|
|
101
|
+
for backwards-compatible reads.
|
|
92
102
|
"""
|
|
93
103
|
|
|
94
104
|
correlation_id: UUID | None = None
|
|
95
105
|
causation_id: UUID | None = None
|
|
106
|
+
components: dict[str, dict[str, Any]] = Field(default_factory=dict)
|
|
107
|
+
_legacy_fields: dict[str, Any] = PrivateAttr(default_factory=dict)
|
|
108
|
+
|
|
109
|
+
def get(self, component_type: type[TContextComponent]) -> TContextComponent | None:
|
|
110
|
+
"""Return a component validated as ``component_type`` when present."""
|
|
111
|
+
if component_type is EventCorrelation:
|
|
112
|
+
return cast(
|
|
113
|
+
TContextComponent,
|
|
114
|
+
EventCorrelation(
|
|
115
|
+
correlation_id=self.correlation_id,
|
|
116
|
+
causation_id=self.causation_id,
|
|
117
|
+
),
|
|
118
|
+
)
|
|
119
|
+
payload = self.components.get(component_type.__context_name__)
|
|
120
|
+
return component_type.model_validate(payload) if payload is not None else None
|
|
121
|
+
|
|
122
|
+
def with_component(self, component: ContextComponent) -> Self:
|
|
123
|
+
"""Return a copy with ``component`` added without mutating this context."""
|
|
124
|
+
if isinstance(component, EventCorrelation):
|
|
125
|
+
return self.model_copy(
|
|
126
|
+
update={
|
|
127
|
+
"correlation_id": component.correlation_id,
|
|
128
|
+
"causation_id": component.causation_id,
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
return self.model_copy(
|
|
133
|
+
update={
|
|
134
|
+
"components": {
|
|
135
|
+
**self.components,
|
|
136
|
+
component.__context_name__: component.model_dump(mode="json"),
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
)
|
|
96
140
|
|
|
97
141
|
|
|
98
142
|
@dataclasses.dataclass()
|
|
@@ -139,7 +183,9 @@ class WrappedEvent(Generic[TEvent]):
|
|
|
139
183
|
)
|
|
140
184
|
|
|
141
185
|
def get_context(self, context_type: type[TContext]) -> TContext:
|
|
142
|
-
|
|
186
|
+
exclude = set() if "components" in context_type.model_fields else {"components"}
|
|
187
|
+
context = self.context.model_dump(exclude=exclude)
|
|
188
|
+
return context_type.model_validate({**context, **self.context._legacy_fields})
|
|
143
189
|
|
|
144
190
|
|
|
145
191
|
@dataclasses.dataclass(frozen=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import dataclasses
|
|
2
|
-
from collections.abc import Mapping
|
|
3
|
-
from typing import cast
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, cast
|
|
4
4
|
|
|
5
5
|
from event_sourcery._event_store.event.dto import (
|
|
6
6
|
Context,
|
|
@@ -23,13 +23,31 @@ class Serde:
|
|
|
23
23
|
self.registry = registry
|
|
24
24
|
self.encryption = encryption
|
|
25
25
|
|
|
26
|
+
def _deserialize_context(self, context: Mapping[str, Any]) -> Context:
|
|
27
|
+
field_names = {"correlation_id", "causation_id", "components"}
|
|
28
|
+
restored = Context(
|
|
29
|
+
correlation_id=context.get("correlation_id"),
|
|
30
|
+
causation_id=context.get("causation_id"),
|
|
31
|
+
components=context.get("components", {}),
|
|
32
|
+
)
|
|
33
|
+
restored._legacy_fields = {
|
|
34
|
+
name: value for name, value in context.items() if name not in field_names
|
|
35
|
+
}
|
|
36
|
+
return restored
|
|
37
|
+
|
|
38
|
+
def _serialize_context(self, context: Context) -> dict[str, Any]:
|
|
39
|
+
stored = context.model_dump(mode="json")
|
|
40
|
+
if not context.components:
|
|
41
|
+
del stored["components"]
|
|
42
|
+
return {**stored, **context._legacy_fields}
|
|
43
|
+
|
|
26
44
|
def deserialize(self, event: RawEvent) -> WrappedEvent:
|
|
27
45
|
event_as_dict = dataclasses.asdict(event)
|
|
28
46
|
del event_as_dict["stream_id"]
|
|
29
47
|
del event_as_dict["name"]
|
|
30
48
|
data = cast(Mapping, event_as_dict.pop("data"))
|
|
31
49
|
context = event_as_dict.pop("context", {})
|
|
32
|
-
event_as_dict["context"] =
|
|
50
|
+
event_as_dict["context"] = self._deserialize_context(context)
|
|
33
51
|
event_type = self.registry.type_for_name(event.name)
|
|
34
52
|
|
|
35
53
|
processed_data = self.encryption.decrypt(
|
|
@@ -43,9 +61,6 @@ class Serde:
|
|
|
43
61
|
event=event_type(**processed_data),
|
|
44
62
|
)
|
|
45
63
|
|
|
46
|
-
def deserialize_many(self, events: Sequence[RawEvent]) -> list[WrappedEvent]:
|
|
47
|
-
return [self.deserialize(event) for event in events]
|
|
48
|
-
|
|
49
64
|
def deserialize_record(self, record: RecordedRaw) -> Recorded:
|
|
50
65
|
return Recorded(
|
|
51
66
|
wrapped_event=self.deserialize(record.entry),
|
|
@@ -66,10 +81,5 @@ class Serde:
|
|
|
66
81
|
version=event.version,
|
|
67
82
|
name=self.registry.name_for_type(type(event.event)),
|
|
68
83
|
data=self.encryption.encrypt(event.event, stream_id),
|
|
69
|
-
context=event.context
|
|
84
|
+
context=self._serialize_context(event.context),
|
|
70
85
|
)
|
|
71
|
-
|
|
72
|
-
def serialize_many(
|
|
73
|
-
self, events: Sequence[WrappedEvent], stream_id: StreamId
|
|
74
|
-
) -> list[RawEvent]:
|
|
75
|
-
return [self.serialize(event, stream_id) for event in events]
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import dataclasses
|
|
1
2
|
from collections.abc import Sequence
|
|
2
3
|
from functools import singledispatchmethod
|
|
3
|
-
from typing import cast
|
|
4
|
+
from typing import Protocol, cast
|
|
4
5
|
|
|
5
6
|
from typing_extensions import Self
|
|
6
7
|
|
|
7
8
|
from event_sourcery._event_store.event.dto import (
|
|
9
|
+
Context,
|
|
10
|
+
ContextComponent,
|
|
8
11
|
Event,
|
|
9
12
|
Position,
|
|
10
13
|
RawEvent,
|
|
@@ -19,6 +22,18 @@ from event_sourcery._event_store.versioning import (
|
|
|
19
22
|
)
|
|
20
23
|
|
|
21
24
|
|
|
25
|
+
class EventContextEnricher(Protocol):
|
|
26
|
+
component_type: type[ContextComponent]
|
|
27
|
+
|
|
28
|
+
def enrich(
|
|
29
|
+
self,
|
|
30
|
+
context: Context,
|
|
31
|
+
*,
|
|
32
|
+
event: WrappedEvent,
|
|
33
|
+
stream_id: StreamId,
|
|
34
|
+
) -> ContextComponent | None: ...
|
|
35
|
+
|
|
36
|
+
|
|
22
37
|
class StorageStrategy:
|
|
23
38
|
"""
|
|
24
39
|
Interface for event store backends.
|
|
@@ -104,9 +119,15 @@ class StorageStrategy:
|
|
|
104
119
|
class EventStore:
|
|
105
120
|
"""API for working with events."""
|
|
106
121
|
|
|
107
|
-
def __init__(
|
|
122
|
+
def __init__(
|
|
123
|
+
self,
|
|
124
|
+
storage_strategy: StorageStrategy,
|
|
125
|
+
serde: Serde,
|
|
126
|
+
context_enrichers: tuple[EventContextEnricher, ...] = (),
|
|
127
|
+
) -> None:
|
|
108
128
|
self._storage_strategy = storage_strategy
|
|
109
129
|
self._serde = serde
|
|
130
|
+
self._context_enrichers = context_enrichers
|
|
110
131
|
|
|
111
132
|
def load_stream(
|
|
112
133
|
self,
|
|
@@ -133,7 +154,7 @@ class EventStore:
|
|
|
133
154
|
A sequence of events or empty list if the stream doesn't exist.
|
|
134
155
|
"""
|
|
135
156
|
events = self._storage_strategy.fetch_events(stream_id, start=start, stop=stop)
|
|
136
|
-
return self._serde.
|
|
157
|
+
return [self._serde.deserialize(event) for event in events]
|
|
137
158
|
|
|
138
159
|
@singledispatchmethod
|
|
139
160
|
def append(
|
|
@@ -216,12 +237,31 @@ class EventStore:
|
|
|
216
237
|
else:
|
|
217
238
|
versioning = NO_VERSIONING
|
|
218
239
|
|
|
240
|
+
serialized_events = [
|
|
241
|
+
self._serde.serialize(self._enrich(event, stream_id), stream_id)
|
|
242
|
+
for event in events
|
|
243
|
+
]
|
|
219
244
|
self._storage_strategy.insert_events(
|
|
220
245
|
stream_id=stream_id,
|
|
221
246
|
versioning=versioning,
|
|
222
|
-
events=
|
|
247
|
+
events=serialized_events,
|
|
223
248
|
)
|
|
224
249
|
|
|
250
|
+
def _enrich(self, event: WrappedEvent, stream_id: StreamId) -> WrappedEvent:
|
|
251
|
+
context = event.context
|
|
252
|
+
for enricher in self._context_enrichers:
|
|
253
|
+
component = enricher.enrich(
|
|
254
|
+
context,
|
|
255
|
+
event=event,
|
|
256
|
+
stream_id=stream_id,
|
|
257
|
+
)
|
|
258
|
+
if (
|
|
259
|
+
component is not None
|
|
260
|
+
and component.__context_name__ not in context.components
|
|
261
|
+
):
|
|
262
|
+
context = context.with_component(component)
|
|
263
|
+
return dataclasses.replace(event, context=context)
|
|
264
|
+
|
|
225
265
|
def delete_stream(self, stream_id: StreamId) -> None:
|
|
226
266
|
"""Deletes a stream with a given ID.
|
|
227
267
|
|
event_sourcery/event.py
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
__all__ = [
|
|
2
2
|
"Context",
|
|
3
|
+
"ContextComponent",
|
|
3
4
|
"Entry",
|
|
4
5
|
"Event",
|
|
6
|
+
"EventContextEnricher",
|
|
7
|
+
"EventCorrelation",
|
|
5
8
|
"EventRegistry",
|
|
6
9
|
"Position",
|
|
7
10
|
"RawEvent",
|
|
@@ -14,8 +17,10 @@ __all__ = [
|
|
|
14
17
|
|
|
15
18
|
from event_sourcery._event_store.event.dto import (
|
|
16
19
|
Context,
|
|
20
|
+
ContextComponent,
|
|
17
21
|
Entry,
|
|
18
22
|
Event,
|
|
23
|
+
EventCorrelation,
|
|
19
24
|
Position,
|
|
20
25
|
RawEvent,
|
|
21
26
|
Recorded,
|
|
@@ -24,3 +29,4 @@ from event_sourcery._event_store.event.dto import (
|
|
|
24
29
|
)
|
|
25
30
|
from event_sourcery._event_store.event.registry import EventRegistry
|
|
26
31
|
from event_sourcery._event_store.event.serde import Serde
|
|
32
|
+
from event_sourcery._event_store.event_store import EventContextEnricher
|
event_sourcery/exceptions.py
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""OpenTelemetry propagation integration for Event Sourcery event contexts."""
|
|
2
|
+
|
|
3
|
+
from event_sourcery_otel._carrier import OpenTelemetryCarrier
|
|
4
|
+
from event_sourcery_otel._context import get_parent_context, use_parent_context
|
|
5
|
+
from event_sourcery_otel._enricher import OpenTelemetryContextEnricher
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"OpenTelemetryCarrier",
|
|
9
|
+
"OpenTelemetryContextEnricher",
|
|
10
|
+
"get_parent_context",
|
|
11
|
+
"use_parent_context",
|
|
12
|
+
]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from collections.abc import Iterator
|
|
2
|
+
from contextlib import contextmanager
|
|
3
|
+
from functools import singledispatch
|
|
4
|
+
|
|
5
|
+
from opentelemetry import context, propagate
|
|
6
|
+
from opentelemetry.context import Context as OtelContext
|
|
7
|
+
|
|
8
|
+
from event_sourcery.event import Context, WrappedEvent
|
|
9
|
+
from event_sourcery_otel._carrier import OpenTelemetryCarrier
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@singledispatch
|
|
13
|
+
def get_parent_context(event_context: object) -> OtelContext:
|
|
14
|
+
raise TypeError(f"Unsupported event context type: {type(event_context)!r}")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@get_parent_context.register
|
|
18
|
+
def _(event_context: Context) -> OtelContext:
|
|
19
|
+
carrier = event_context.get(OpenTelemetryCarrier)
|
|
20
|
+
return propagate.extract(carrier.values) if carrier else OtelContext()
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@get_parent_context.register
|
|
24
|
+
def _(event: WrappedEvent) -> OtelContext:
|
|
25
|
+
return get_parent_context(event.context)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@contextmanager
|
|
29
|
+
def use_parent_context(event_context: WrappedEvent | Context) -> Iterator[None]:
|
|
30
|
+
"""Temporarily activate the OpenTelemetry parent context of an event.
|
|
31
|
+
|
|
32
|
+
The previously active context is restored when the scope exits.
|
|
33
|
+
"""
|
|
34
|
+
token = context.attach(get_parent_context(event_context))
|
|
35
|
+
try:
|
|
36
|
+
yield
|
|
37
|
+
finally:
|
|
38
|
+
context.detach(token)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from opentelemetry import propagate
|
|
2
|
+
|
|
3
|
+
from event_sourcery import StreamId
|
|
4
|
+
from event_sourcery.event import (
|
|
5
|
+
Context,
|
|
6
|
+
ContextComponent,
|
|
7
|
+
EventContextEnricher,
|
|
8
|
+
WrappedEvent,
|
|
9
|
+
)
|
|
10
|
+
from event_sourcery_otel._carrier import OpenTelemetryCarrier
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class OpenTelemetryContextEnricher(EventContextEnricher):
|
|
14
|
+
"""Persist the active OpenTelemetry propagation carrier with each event."""
|
|
15
|
+
|
|
16
|
+
component_type: type[ContextComponent] = OpenTelemetryCarrier
|
|
17
|
+
|
|
18
|
+
def enrich(
|
|
19
|
+
self,
|
|
20
|
+
context: Context,
|
|
21
|
+
*,
|
|
22
|
+
event: WrappedEvent,
|
|
23
|
+
stream_id: StreamId,
|
|
24
|
+
) -> OpenTelemetryCarrier | None:
|
|
25
|
+
values: dict[str, str] = {}
|
|
26
|
+
propagate.inject(values)
|
|
27
|
+
return OpenTelemetryCarrier(values=values) if values else None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: python-event-sourcery
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: A library for event-based systems in Python.
|
|
5
5
|
Author-email: Sebastian Buczyński <nnplaya@gmail.com>, Łukasz Żukowski <lukasz.zukowski@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -13,6 +13,8 @@ Provides-Extra: django
|
|
|
13
13
|
Requires-Dist: django<6,>=4; extra == 'django'
|
|
14
14
|
Provides-Extra: kurrentdb
|
|
15
15
|
Requires-Dist: kurrentdbclient>=1.0.6; extra == 'kurrentdb'
|
|
16
|
+
Provides-Extra: otel
|
|
17
|
+
Requires-Dist: opentelemetry-api<2,>=1; extra == 'otel'
|
|
16
18
|
Provides-Extra: sqlalchemy
|
|
17
19
|
Requires-Dist: sqlalchemy>=2.0; extra == 'sqlalchemy'
|
|
18
20
|
Description-Content-Type: text/markdown
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
event_sourcery/__init__.py,sha256=gPheLaW9KCkRAINF28lVep9KZQnT_cLwj_7BZjLtBr8,696
|
|
2
2
|
event_sourcery/backend.py,sha256=Hq-x8HBTr_v8LWBOTNv4m2KtcV6dPNm7XPGZ80G_Iss,413
|
|
3
3
|
event_sourcery/encryption.py,sha256=MyzuknP1x9Qx-2wTOzu4yCepvN7o0s90lB8FMhpecx0,340
|
|
4
|
-
event_sourcery/event.py,sha256=
|
|
5
|
-
event_sourcery/exceptions.py,sha256=
|
|
4
|
+
event_sourcery/event.py,sha256=NESiopC5IpICowFM3JRlWYLOIECR-z5fywaznvj3p-s,664
|
|
5
|
+
event_sourcery/exceptions.py,sha256=7DaVvgKEHEZuHGQm2c1EmSTxhxmFVGJS2ccnyGtmdM4,1120
|
|
6
6
|
event_sourcery/in_transaction.py,sha256=wmWJ67Pts0TBRWq0VWTnCyECyfuXHKw7KZTOfittzFU,183
|
|
7
7
|
event_sourcery/interfaces.py,sha256=XAuWIDO5o95NfGRxu9_cXcxMI2AKTbD1s6Oh2E2QfnE,645
|
|
8
8
|
event_sourcery/outbox.py,sha256=1bgcnWJPInKw-NFnwLYk8jkiTwt3eCdX8UZujGkksKM,184
|
|
9
9
|
event_sourcery/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
event_sourcery/subscription.py,sha256=X9cwqkOjRy-gek6xzdrWHCPbocDUsONakomgCcwGR1Q,310
|
|
11
11
|
event_sourcery/_event_store/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
event_sourcery/_event_store/backend.py,sha256
|
|
13
|
-
event_sourcery/_event_store/event_store.py,sha256
|
|
12
|
+
event_sourcery/_event_store/backend.py,sha256=--ldYOvr3ThCavEcxBiEUrP-oyHbSLv5cMZaFzoFLX4,7661
|
|
13
|
+
event_sourcery/_event_store/event_store.py,sha256=Rf6s-Zvdvsv3jATCq4ttakfWBYTzdcV7OWyplZ4eb-M,9808
|
|
14
14
|
event_sourcery/_event_store/in_memory.py,sha256=4k2x1NFhX2FystZUUjIRaBbHl694FHQ8L93pX5G0A-s,12899
|
|
15
15
|
event_sourcery/_event_store/outbox.py,sha256=SGn3if-kAgkZnZ1DDiIAc5IdLKKIsTtHGc0-tS7G7KA,3595
|
|
16
16
|
event_sourcery/_event_store/stream_id.py,sha256=9gue_TWyigh0zOX0AmX0NXwvnq6qaNc1Mh8IbuqCoa4,2873
|
|
17
17
|
event_sourcery/_event_store/tenant_id.py,sha256=rIMXo0Lrqu_NHJKB3Msy37IsiZUlOozcT0RFZKkF7Eg,101
|
|
18
18
|
event_sourcery/_event_store/versioning.py,sha256=-e0OTmoQXm6e2V3_c95V95RuBPgb4KuqZtmqW8v8PsE,3211
|
|
19
19
|
event_sourcery/_event_store/event/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
-
event_sourcery/_event_store/event/dto.py,sha256=
|
|
20
|
+
event_sourcery/_event_store/event/dto.py,sha256=HhheaWJuznGp8xb_qfi0I8InloZUSfO7A5PBdp4xFZU,8291
|
|
21
21
|
event_sourcery/_event_store/event/encryption.py,sha256=CIUqcBN7NdQkUiFbG92ewB1jasRK-nvpTONXZrP9s88,8419
|
|
22
22
|
event_sourcery/_event_store/event/registry.py,sha256=zozQkvRVhlUSwqmjlZqZtBOXTt6yVO0MJtbpxv8fu_Y,4026
|
|
23
|
-
event_sourcery/_event_store/event/serde.py,sha256=
|
|
23
|
+
event_sourcery/_event_store/event/serde.py,sha256=8QXvkO1Xq9TRAAFKmNl9vBzaLEuXhKQpOCW1uwL2Ezk,2836
|
|
24
24
|
event_sourcery/_event_store/subscription/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
event_sourcery/_event_store/subscription/builder.py,sha256=JXutKB7ZGsFVpC4aHWCwtHDTqGpO34S09roXmfFOgK4,3049
|
|
26
26
|
event_sourcery/_event_store/subscription/in_transaction.py,sha256=D15hAm6BuqwiGiGlg_rRZgXPYQv7X1U0d6JZcP0SEzk,5031
|
|
@@ -47,6 +47,10 @@ event_sourcery_kurrentdb/outbox.py,sha256=8mK2psVH85Wuq8e2QBibuwMBfja4GXJcmks1Zy
|
|
|
47
47
|
event_sourcery_kurrentdb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
48
48
|
event_sourcery_kurrentdb/stream.py,sha256=WXZnLQYw06LNPVjOAu48WKuvQKXF46rpWnJVAmt5eJA,1887
|
|
49
49
|
event_sourcery_kurrentdb/subscription.py,sha256=NxZmVcT6qfBFJ1G2Get_0mssTX9b4CV84IhCeABSk3w,2699
|
|
50
|
+
event_sourcery_otel/__init__.py,sha256=b32_-0Xzj2-fxm_uSOTZPJS1iKpzlWFZaXbCoxGOVhA,424
|
|
51
|
+
event_sourcery_otel/_carrier.py,sha256=kDL28bSTa6KVBXhcntLrgT0AskH3I456erMnUS8K-4c,209
|
|
52
|
+
event_sourcery_otel/_context.py,sha256=StJsw-YwrFP8zQPzTmC_lxHkC_5eZOqSMaXreK8j0LE,1196
|
|
53
|
+
event_sourcery_otel/_enricher.py,sha256=3WWsisFvDE7ZKgoPx0mx-H14m9d4SQuDD90d6UWTV-g,762
|
|
50
54
|
event_sourcery_sqlalchemy/__init__.py,sha256=0gHKRMFKXmcr60n_3dVaF7B58z9Fx02K208T_IrbwhA,6464
|
|
51
55
|
event_sourcery_sqlalchemy/cursors_dao.py,sha256=DQ2701su623p2h3_wKp5fcehS3ut_PC48dEvuV9W-xE,3327
|
|
52
56
|
event_sourcery_sqlalchemy/dto.py,sha256=Q9wkni0rAF6fx65kYKK6xRADAAcBCGTE5ms00QScZE4,646
|
|
@@ -59,7 +63,7 @@ event_sourcery_sqlalchemy/subscription.py,sha256=5g0p1BoGrfeolA1IZZ5PLfs0fmHP9AY
|
|
|
59
63
|
event_sourcery_sqlalchemy/models/__init__.py,sha256=oEqiEwDclR0l3m5GKldy-XX5Dlh4BI0f-7Mf8KclI2I,2852
|
|
60
64
|
event_sourcery_sqlalchemy/models/base.py,sha256=zOpI829M53MKLYyU0KmjxcVMvM_rqMKgFxlKCBnl_-s,7783
|
|
61
65
|
event_sourcery_sqlalchemy/models/default.py,sha256=gPo3dAV4mR38qb7jBqedsgT7gCawZ-1DKUSfEm6r-Ts,597
|
|
62
|
-
python_event_sourcery-0.
|
|
63
|
-
python_event_sourcery-0.
|
|
64
|
-
python_event_sourcery-0.
|
|
65
|
-
python_event_sourcery-0.
|
|
66
|
+
python_event_sourcery-0.6.0.dist-info/METADATA,sha256=MW-Ixsqmywk075FNc5jfbSQBsH5GSH2VHlh-tN0Qkm0,4749
|
|
67
|
+
python_event_sourcery-0.6.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
68
|
+
python_event_sourcery-0.6.0.dist-info/licenses/LICENSE,sha256=ufzizVlKJ_TRa5OZMIHzSrciFMdlx7ec29nUPLSe_zQ,1077
|
|
69
|
+
python_event_sourcery-0.6.0.dist-info/RECORD,,
|
{python_event_sourcery-0.5.3a4.dist-info → python_event_sourcery-0.6.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|