python-neva 3.1.1__py3-none-any.whl → 3.3.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.
neva/arch/application.py CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import os
4
4
  from collections import OrderedDict
5
- from collections.abc import AsyncIterator, Sequence
5
+ from collections.abc import AsyncGenerator, Sequence
6
6
  from contextlib import AsyncExitStack, asynccontextmanager
7
7
  from contextvars import ContextVar
8
8
  from pathlib import Path
@@ -13,6 +13,7 @@ from dishka.provider import BaseProvider
13
13
  from typing_extensions import deprecated
14
14
 
15
15
  from neva.arch.facade import Facade
16
+ from neva.arch.scopes import BaseScope, Scope
16
17
  from neva.arch.service_provider import Bootable, ServiceProvider
17
18
  from neva.config.loader import ConfigLoader
18
19
  from neva.support import Err, Ok, Result
@@ -41,7 +42,7 @@ class Application:
41
42
 
42
43
  self.config: ConfigRepository = ConfigRepository()
43
44
  self.providers: OrderedDict[type, ServiceProvider] = OrderedDict()
44
- self.root_provider: dishka.Provider = dishka.Provider(scope=dishka.Scope.APP)
45
+ self.root_provider: dishka.Provider = dishka.Provider(scope=Scope.APP)
45
46
 
46
47
  configuration_path = (
47
48
  config_path
@@ -112,7 +113,7 @@ class Application:
112
113
  source: type | Callable[..., Any],
113
114
  *,
114
115
  interface: type | None = None,
115
- scope: dishka.BaseScope | None = None,
116
+ scope: BaseScope | None = None,
116
117
  ) -> None:
117
118
  """Binds a source to the container."""
118
119
  _ = self.root_provider.provide(
@@ -146,14 +147,18 @@ class Application:
146
147
  return Err(f"Failed to resolve service '{interface.__name__}': {e}")
147
148
 
148
149
  @asynccontextmanager
149
- async def scope(self, scope: dishka.BaseScope | None = None) -> AsyncIterator[Self]:
150
+ async def scope(
151
+ self,
152
+ scope: BaseScope | None = None,
153
+ context: dict[type, Any] | None = None,
154
+ ) -> AsyncGenerator[Self]:
150
155
  """Enter a new scope.
151
156
 
152
157
  Yields:
153
158
  The application instance with the new scope.
154
159
  """
155
160
  parent = _current_container.get(self.container)
156
- async with parent(scope=scope) as container:
161
+ async with parent(scope=scope, context=context) as container:
157
162
  token = _current_container.set(container)
158
163
  try:
159
164
  yield self
@@ -161,7 +166,7 @@ class Application:
161
166
  _current_container.reset(token)
162
167
 
163
168
  @asynccontextmanager
164
- async def lifespan(self) -> AsyncIterator[None]:
169
+ async def lifespan(self) -> AsyncGenerator[None]:
165
170
  """Wire the facades and providers."""
166
171
  Facade.set_facade_application(self)
167
172
 
neva/arch/markers.py ADDED
@@ -0,0 +1,4 @@
1
+ from dishka.entities.marker import BaseMarker, Has, Marker
2
+
3
+
4
+ __all__ = ["BaseMarker", "Has", "Marker"]
neva/arch/scopes.py ADDED
@@ -0,0 +1,5 @@
1
+ from dishka.entities.scope import BaseScope, Scope
2
+
3
+
4
+ __all__ = ["BaseScope", "Scope"]
5
+
@@ -21,6 +21,8 @@ from typing import (
21
21
 
22
22
  import dishka
23
23
 
24
+ from neva.arch.markers import BaseMarker, Marker
25
+ from neva.arch.scopes import BaseScope, Scope
24
26
  from neva.support import Result
25
27
 
26
28
 
@@ -69,6 +71,7 @@ class ServiceProvider(abc.ABC):
69
71
 
70
72
  app: "Application"
71
73
  listen: ClassVar[dict[type[Event], list[type[EventListener[Any]]]]] = {}
74
+ when: ClassVar[Marker | None] = None
72
75
 
73
76
  def __init__(self, app: "Application") -> None:
74
77
  """Initialize the service provider.
@@ -77,23 +80,101 @@ class ServiceProvider(abc.ABC):
77
80
  app: The application instance.
78
81
 
79
82
  """
80
- self.provider: dishka.Provider = dishka.Provider(scope=dishka.Scope.APP)
83
+ self.provider: dishka.Provider = dishka.Provider(
84
+ scope=dishka.Scope.APP,
85
+ when=self.when,
86
+ )
81
87
  self.app = app
82
88
 
89
+ def activator(
90
+ self,
91
+ activation_fn: Callable[..., bool],
92
+ *markers: Marker | type[Marker],
93
+ ) -> None:
94
+ """Registers an activator function for the given markers.
95
+
96
+ Args:
97
+ activation_fn: The activator function.
98
+ markers: Markers triggered by this function.
99
+ """
100
+ _ = self.provider.activate(activation_fn, *markers)
101
+
83
102
  def bind(
84
103
  self,
85
104
  source: type | Callable[..., Any],
86
105
  *,
87
106
  interface: type | None = None,
88
- scope: dishka.BaseScope | None = None,
107
+ scope: BaseScope | None = None,
108
+ when: BaseMarker | None = None,
109
+ cache: bool = True,
89
110
  ) -> None:
90
111
  """Binds a source to the container."""
91
112
  _ = self.provider.provide(
92
113
  source=source,
93
114
  scope=scope,
94
115
  provides=interface,
116
+ cache=cache,
117
+ when=when,
95
118
  )
96
119
 
120
+ def scoped(
121
+ self,
122
+ source: type | Callable[..., Any],
123
+ *,
124
+ interface: type | None = None,
125
+ when: BaseMarker | None = None,
126
+ ) -> Self:
127
+ """Binds the source to the container.
128
+
129
+ Scope is REQUEST by default but a custom scope be provided.
130
+ Dependency declared with this are cached no matter what.
131
+
132
+ Returns:
133
+ the provider itself for chaining purposes
134
+ """
135
+ self.bind(source, interface=interface, scope=Scope.REQUEST, when=when)
136
+ return self
137
+
138
+ def transient(
139
+ self,
140
+ source: type | Callable[..., Any],
141
+ *,
142
+ interface: type | None = None,
143
+ when: BaseMarker | None = None,
144
+ ) -> Self:
145
+ """Binds the source to the container as a transient dependency.
146
+
147
+ Dependencies declared this way have global scope and are never
148
+ cached.
149
+
150
+ Returns:
151
+ the provider itself for chaining purposes
152
+ """
153
+ self.bind(source, interface=interface, when=when, cache=False)
154
+ return self
155
+
156
+ def extend(
157
+ self,
158
+ source: Callable[..., Any],
159
+ *,
160
+ interface: type | None = None,
161
+ scope: dishka.BaseScope | None = None,
162
+ when: BaseMarker | None = None,
163
+ ) -> Self:
164
+ """Extends a dependency declared by another provider.
165
+
166
+ This allows to 'extend' a dependency, maybe even override it entirely.
167
+ Particularly useful if you want to run some code on a dependency declared
168
+ by another provider / package.
169
+
170
+ You may also provide a scope for this.
171
+
172
+ Returns:
173
+ the provider itself for chaining purposes
174
+ """
175
+ _ = self.provider.decorate(source, provides=interface, scope=scope, when=when)
176
+ return self
177
+
97
178
  @abc.abstractmethod
98
179
  def register(self) -> Result[Self, str]:
99
180
  """Register services into the application container.
neva/events/__init__.py CHANGED
@@ -9,7 +9,8 @@ Three components are of particular interest:
9
9
 
10
10
  from neva.events.dispatcher import EventDispatcher
11
11
  from neva.events.event import Event
12
- from neva.events.listener import EventListener, HandlingPolicy, listener
12
+ from neva.events.listener import EventListener, listener
13
+ from neva.events.policy import HandlingPolicy
13
14
  from neva.events.provider import EventServiceProvider
14
15
 
15
16
 
@@ -0,0 +1,7 @@
1
+ from neva.events.contracts.dispatcher import EventDispatcher
2
+ from neva.events.contracts.event import Event
3
+ from neva.events.contracts.handler import EventHandler
4
+ from neva.events.contracts.listener import EventListener
5
+
6
+
7
+ __all__ = ["Event", "EventDispatcher", "EventHandler", "EventListener"]
@@ -0,0 +1,24 @@
1
+ from typing import Protocol
2
+
3
+ from neva.events.contracts.event import Event
4
+ from neva.events.contracts.listener import EventListener
5
+ from neva.support import Result
6
+
7
+
8
+ class EventDispatcher(Protocol):
9
+ """Event dispatcher protocol."""
10
+
11
+ async def dispatch(
12
+ self,
13
+ event: Event,
14
+ ) -> list[Result[None, str]]:
15
+ """Dispatch an event to all registered listeners."""
16
+ ...
17
+
18
+ def listen[T: Event](
19
+ self,
20
+ event_cls: type[T],
21
+ listener_cls: type[EventListener[T]],
22
+ ) -> None:
23
+ """Register a listener for an event."""
24
+ ...
@@ -0,0 +1,7 @@
1
+ import pydantic
2
+
3
+
4
+ class Event(pydantic.BaseModel):
5
+ """Base Event class."""
6
+
7
+ pass
@@ -0,0 +1,14 @@
1
+ from typing import Protocol
2
+
3
+ from neva.events.contracts.event import Event
4
+ from neva.support import Result
5
+
6
+
7
+ class EventHandler[T: Event](Protocol):
8
+ """Define a valid function for event handling."""
9
+
10
+ __name__: str
11
+
12
+ async def __call__(self, event: T) -> Result[None, str]:
13
+ """Handle an event."""
14
+ ...
@@ -0,0 +1,19 @@
1
+ from typing import Protocol
2
+
3
+ from neva.events.contracts.event import Event
4
+ from neva.events.policy import HandlingPolicy
5
+ from neva.support import Result
6
+
7
+
8
+ class EventListener[T: Event](Protocol):
9
+ """Event listener protocol."""
10
+
11
+ policy: HandlingPolicy
12
+
13
+ async def handle(self, event: T) -> Result[None, str]:
14
+ """Handle an event.
15
+
16
+ Returns:
17
+ A result indicating whether the event was handled successfully.
18
+ """
19
+ ...
neva/events/dispatcher.py CHANGED
@@ -1,26 +1,65 @@
1
1
  """Base implementation of the event dispatcher."""
2
2
 
3
- from typing import final
3
+ from typing import Callable, Protocol, override, runtime_checkable
4
4
 
5
5
  from neva.arch.application import Application
6
6
  from neva.database.manager import DatabaseManager
7
7
  from neva.database.transaction import TransactionCallback
8
- from neva.events.event import Event
8
+ from neva.events import contracts
9
9
  from neva.events.event_registry import EventRegistry
10
- from neva.events.listener import EventListener
11
10
  from neva.support import Err, Nothing, Result, Some
12
11
 
13
12
 
14
- @final
15
- class EventDispatcher:
13
+ @runtime_checkable
14
+ class AsyncBeforeDispatchHook(Protocol):
15
+ async def __call__(self, context: contracts.Event) -> None: ...
16
+
17
+
18
+ @runtime_checkable
19
+ class SyncBeforeDispatchHook(Protocol):
20
+ def __call__(self, context: contracts.Event) -> None: ...
21
+
22
+
23
+ BeforeDispatchHook = AsyncBeforeDispatchHook | SyncBeforeDispatchHook
24
+
25
+
26
+ class EventDispatcher(contracts.EventDispatcher):
16
27
  """Event dispatcher implementation."""
17
28
 
18
- def __init__(self, app: Application, db: DatabaseManager) -> None:
19
- self._registry = EventRegistry()
20
- self._app = app
21
- self._db = db
29
+ def __init__(
30
+ self,
31
+ app: Application,
32
+ db: DatabaseManager,
33
+ registry: EventRegistry,
34
+ ) -> None:
35
+ self._registry: EventRegistry = registry
36
+ self._app: Application = app
37
+ self._db: DatabaseManager = db
38
+ self._before_dispatch_hooks: list[BeforeDispatchHook] = []
39
+
40
+ async def _apply_before_dispatch(self, event: contracts.Event) -> None:
41
+ """Extension hook called before listeners are invoked.
22
42
 
23
- async def dispatch(self, event: Event) -> list[Result[None, str]]:
43
+ Override in a subclass to add cross-cutting behaviour such as
44
+ persisting the event to an event store. The default implementation
45
+ is a no-op.
46
+
47
+ Args:
48
+ event: The event about to be dispatched.
49
+ """
50
+ for hook in self._before_dispatch_hooks:
51
+ match hook:
52
+ case AsyncBeforeDispatchHook():
53
+ await hook(event)
54
+ case SyncBeforeDispatchHook():
55
+ hook(event)
56
+
57
+ async def before_dispatch(self, hook: BeforeDispatchHook) -> None:
58
+ """Register a hook to be called before listeners are invoked."""
59
+ self._before_dispatch_hooks.append(hook)
60
+
61
+ @override
62
+ async def dispatch(self, event: contracts.Event) -> list[Result[None, str]]:
24
63
  """Dispatch an event to all registered listeners.
25
64
 
26
65
  Listeners are resolved from the DI container when available,
@@ -32,19 +71,23 @@ class EventDispatcher:
32
71
  Returns:
33
72
  A list of results, one per listener invocation.
34
73
  """
74
+ await self._apply_before_dispatch(event)
35
75
  results: list[Result[None, str]] = []
36
- listeners = self._registry.get_listeners(event)
76
+ listeners = self._registry.resolve_listeners(event)
37
77
 
38
- to_execute = listeners.immediate.copy()
78
+ immediate: list[type[contracts.EventListener[contracts.Event]]] = []
79
+ deferred: list[type[contracts.EventListener[contracts.Event]]] = []
80
+ [immediate.extend(listener.immediate.copy()) for listener in listeners]
81
+ [deferred.extend(listener.deferred.copy()) for listener in listeners]
39
82
 
40
83
  match self._db.current():
41
84
  case Some(tx):
42
- for listener_cls in listeners.deferred:
85
+ for listener_cls in deferred:
43
86
  _ = tx.on_commit(self._build_callback(event, listener_cls))
44
87
  case Nothing():
45
- to_execute += listeners.deferred
88
+ immediate.extend(deferred)
46
89
 
47
- for listener_cls in to_execute:
90
+ for listener_cls in immediate:
48
91
  listener = self._resolve_listener(listener_cls)
49
92
  try:
50
93
  results.append(await listener.handle(event))
@@ -53,17 +96,20 @@ class EventDispatcher:
53
96
 
54
97
  return results
55
98
 
56
- def listen[T: Event](
99
+ @override
100
+ def listen[T: contracts.Event](
57
101
  self,
58
- event_cls: type[T],
59
- listener_cls: type[EventListener[T]],
102
+ event_cls: type[T] | list[type[T]],
103
+ listener_cls: type[contracts.EventListener[T]],
60
104
  ) -> None:
61
105
  """Register a listener for an event."""
106
+ if not isinstance(event_cls, list):
107
+ event_cls = [event_cls]
62
108
  self._registry.register(event_cls, listener_cls)
63
109
 
64
- def _resolve_listener[T: Event](
65
- self, listener_cls: type[EventListener[T]]
66
- ) -> EventListener[T]:
110
+ def _resolve_listener[T: contracts.Event](
111
+ self, listener_cls: type[contracts.EventListener[T]]
112
+ ) -> contracts.EventListener[T]:
67
113
  """Resolve a listener from the container.
68
114
 
69
115
  Listeners are resolved from the DI container when available,
@@ -77,10 +123,10 @@ class EventDispatcher:
77
123
  return result.unwrap()
78
124
  return listener_cls()
79
125
 
80
- def _build_callback[T: Event](
126
+ def _build_callback[T: contracts.Event](
81
127
  self,
82
128
  event: T,
83
- listener_cls: type[EventListener[T]],
129
+ listener_cls: type[contracts.EventListener[T]],
84
130
  ) -> TransactionCallback:
85
131
  async def callback() -> Result[None, str]:
86
132
  listener = self._resolve_listener(listener_cls)
neva/events/event.py CHANGED
@@ -4,10 +4,11 @@ import datetime as dt
4
4
 
5
5
  import pydantic
6
6
 
7
+ from neva.events import contracts
7
8
  from neva.support import time
8
9
 
9
10
 
10
- class Event[T](pydantic.BaseModel):
11
+ class Event[T](contracts.Event):
11
12
  """Base event class."""
12
13
 
13
14
  event_id: T
@@ -1,27 +1,30 @@
1
1
  """Event/listener registry."""
2
2
 
3
- from typing import Any
3
+ import inspect
4
+ from typing import Any, TypeVar
4
5
 
5
- from neva.events.event import Event
6
- from neva.events.listener import EventListener, HandlingPolicy
6
+ from neva.events import contracts, policy
7
7
 
8
8
 
9
- class EventListenerRegistry[T: Event]:
9
+ class EventListenerRegistry[T: contracts.Event]:
10
10
  """Event listener registry for a given event."""
11
11
 
12
12
  def __init__(self) -> None:
13
- self.immediate: list[type[EventListener[T]]] = []
14
- self.deferred: list[type[EventListener[T]]] = []
13
+ self.immediate: list[type[contracts.EventListener[T]]] = []
14
+ self.deferred: list[type[contracts.EventListener[T]]] = []
15
15
 
16
- def add_listener(self, listener_cls: type[EventListener[T]]) -> None:
16
+ def add_listener(self, listener_cls: type[contracts.EventListener[T]]) -> None:
17
17
  """Add a listener to the correct category in the registry."""
18
18
  match listener_cls.policy:
19
- case HandlingPolicy.IMMEDIATE:
19
+ case policy.HandlingPolicy.IMMEDIATE:
20
20
  self.immediate.append(listener_cls)
21
- case HandlingPolicy.DEFERRED:
21
+ case policy.HandlingPolicy.DEFERRED:
22
22
  self.deferred.append(listener_cls)
23
23
 
24
24
 
25
+ T = TypeVar("T", bound=contracts.Event, covariant=True)
26
+
27
+
25
28
  class EventRegistry:
26
29
  """Event/listener registry."""
27
30
 
@@ -31,14 +34,26 @@ class EventRegistry:
31
34
  """Initialize the registry."""
32
35
  self.__listeners = {}
33
36
 
34
- def register[T: Event](
35
- self, event_cls: type[T], listener_cls: type[EventListener[T]]
37
+ def register(
38
+ self,
39
+ event_cls: list[type[T]],
40
+ listener_cls: type[contracts.EventListener[T]],
36
41
  ) -> None:
37
42
  """Register a listener for an event."""
38
- self.__listeners.setdefault(event_cls, EventListenerRegistry()).add_listener(
39
- listener_cls
40
- )
41
-
42
- def get_listeners[T: Event](self, event: T) -> EventListenerRegistry[T]:
43
+ for cls in event_cls:
44
+ self.__listeners.setdefault(cls, EventListenerRegistry()).add_listener(
45
+ listener_cls
46
+ )
47
+
48
+ def resolve_listeners(self, event: T) -> list[EventListenerRegistry[T]]:
49
+ """Return all listeners registries for an event type."""
50
+ registries = [
51
+ self.__listeners[cls]
52
+ for cls in inspect.getmro(type(event))
53
+ if cls in self.__listeners
54
+ ]
55
+ return registries
56
+
57
+ def get_listeners(self, event: T) -> EventListenerRegistry[T]:
43
58
  """Return all listeners registered for an event type."""
44
59
  return self.__listeners.get(type(event), EventListenerRegistry[T]())
neva/events/listener.py CHANGED
@@ -1,49 +1,26 @@
1
1
  """Event listener protocol."""
2
2
 
3
- import abc
4
- from enum import StrEnum
5
3
  from types import new_class
6
- from typing import Callable, Protocol
4
+ from typing import Callable, override
7
5
 
8
- from neva.events.event import Event
6
+ from neva.events import contracts
7
+ from neva.events.policy import HandlingPolicy
9
8
  from neva.support import Result
10
9
  from neva.support.strconv import snake2pascal
11
10
 
12
11
 
13
- class HandlingPolicy(StrEnum):
14
- """Event dispatch policy."""
15
-
16
- IMMEDIATE = "immediate"
17
- DEFERRED = "deferred"
18
-
19
-
20
- class EventListener[T: Event](abc.ABC):
21
- """Event listener protocol."""
12
+ class EventListener[T: contracts.Event](contracts.EventListener[T]):
13
+ """Base event listener class."""
22
14
 
23
15
  policy: HandlingPolicy = HandlingPolicy.IMMEDIATE
24
16
 
25
- @abc.abstractmethod
26
- async def handle(self, event: T) -> Result[None, str]:
27
- """Handle an event.
28
-
29
- Returns:
30
- A result indicating whether the event was handled successfully.
31
- """
32
-
33
-
34
- class EventHandler[T: Event](Protocol):
35
- """Define a valid function for event handling."""
36
-
37
- __name__: str
38
-
39
- async def __call__(self, event: T) -> Result[None, str]:
40
- """Handle an event."""
41
- ...
17
+ @override
18
+ async def handle(self, event: contracts.Event) -> Result[None, str]: ...
42
19
 
43
20
 
44
- def listener[T: Event](
21
+ def listener[T: contracts.Event](
45
22
  policy: HandlingPolicy = HandlingPolicy.IMMEDIATE,
46
- ) -> Callable[[EventHandler[T]], type[EventListener[T]]]:
23
+ ) -> Callable[[contracts.EventHandler[T]], type[EventListener[T]]]:
47
24
  """Create a listener from a function.
48
25
 
49
26
  Returns:
@@ -51,7 +28,7 @@ def listener[T: Event](
51
28
  """
52
29
 
53
30
  def decorator(
54
- func: EventHandler[T],
31
+ func: contracts.EventHandler[T],
55
32
  ) -> type[EventListener[T]]:
56
33
  async def handle(_: EventListener[T], event: T) -> Result[None, str]:
57
34
  return await func(event)
neva/events/policy.py ADDED
@@ -0,0 +1,8 @@
1
+ import enum
2
+
3
+
4
+ class HandlingPolicy(enum.StrEnum):
5
+ """Determines when a listener is invoked."""
6
+
7
+ IMMEDIATE = "immediate"
8
+ DEFERRED = "deferred"
neva/events/provider.py CHANGED
@@ -3,6 +3,9 @@
3
3
  from typing import Self, override
4
4
 
5
5
  from neva.arch.service_provider import ServiceProvider
6
+ from neva.events import contracts
7
+ from neva.events.dispatcher import EventDispatcher
8
+ from neva.events.event_registry import EventRegistry
6
9
  from neva.support import Ok, Result
7
10
 
8
11
 
@@ -21,7 +24,7 @@ class EventServiceProvider(ServiceProvider):
21
24
  Returns:
22
25
  Result[Self, str]: The result of the registration.
23
26
  """
24
- from neva.events.dispatcher import EventDispatcher
25
-
27
+ self.bind(EventRegistry)
26
28
  self.bind(EventDispatcher)
29
+ self.bind(EventDispatcher, interface=contracts.EventDispatcher)
27
30
  return Ok(self)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-neva
3
- Version: 3.1.1
3
+ Version: 3.3.0
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.12
6
6
  Requires-Dist: aiosqlite>=0.20.0
@@ -20,3 +20,8 @@ Requires-Dist: neva-fastapi>=1.0.0; extra == 'fastapi'
20
20
  Provides-Extra: testing
21
21
  Requires-Dist: pytest-asyncio>=0.25.3; extra == 'testing'
22
22
  Requires-Dist: pytest>=9.0.2; extra == 'testing'
23
+ Description-Content-Type: text/markdown
24
+
25
+ # The Neva framework
26
+
27
+ PLACEHOLDER
@@ -1,9 +1,11 @@
1
1
  neva/arch/__init__.py,sha256=1ukTl5Ynz5PrGa5e-tFSMaNgVkfhQRrYQGPUqUeXMMg,429
2
- neva/arch/application.py,sha256=9qvg_MeSjhgQZnX6RSuWaJQfmC5GqEd2XtHR6FGGfpc,7142
2
+ neva/arch/application.py,sha256=DH1CXVEsiOCDQIigOXfXI2jYGVZr-TwMgilTQu6qPq0,7258
3
3
  neva/arch/config.py,sha256=R8_wMKTwX8vTFqfQhgglDQ9PfB6Yo6mx6OnKg8bnIWw,1042
4
4
  neva/arch/facade.py,sha256=1kYVhyYto8zSyOZV6sAYJ3xWzQDJRzoVV-e_EarTp0Q,7927
5
+ neva/arch/markers.py,sha256=STdhmW88qV8uogIa9kSD9gs-uMRaglZI8HOw3PrhX1Q,103
5
6
  neva/arch/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- neva/arch/service_provider.py,sha256=iXOicvbkZ-c455NElEeWD9tzZyLVIXkje-C3PQWiE6k,3165
7
+ neva/arch/scopes.py,sha256=Gu0kJk39Yv8LCCzxjdu0lIE0FXtnsG36LGKDuNin2CE,87
8
+ neva/arch/service_provider.py,sha256=zEFwix2cL6l1Frv9w1OMtnL_zjkl_BVpGBhRaNK6bb0,5636
7
9
  neva/arch/integrations/__init__.py,sha256=cXuqC4JfZdGYLlh6POgYUVXUT2NQ84276eC-RYTyFxk,75
8
10
  neva/arch/integrations/faststream.py,sha256=AOwfpfdL3O5HLAx80SwUGQb_hKEeAkFOUyIXtjODaHM,1696
9
11
  neva/config/__init__.py,sha256=Ygfnh-MRRKYDdf54_LeMSHwmck5VpNHTdnnMtGEFLtU,121
@@ -18,13 +20,19 @@ neva/database/manager.py,sha256=VNvhVumZD2hoGKpkdXMAkT6KykE4H80WcG2DgShK5Hs,4240
18
20
  neva/database/provider.py,sha256=l2be4Ri53RtQq1-qzohy3cqzJQpTaNzqXGVhXPKUCXc,1674
19
21
  neva/database/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
22
  neva/database/transaction.py,sha256=_0Dsao_vhCJT5YRUmrHOLb0uxvfdE-5k3n0yMPLC1o8,5167
21
- neva/events/__init__.py,sha256=xwIAXNcOASpuCY4DJpshZc1gtxQHimzwy-s7c-4QuiQ,746
22
- neva/events/dispatcher.py,sha256=i7PYbesKnX6PkbRZomBfUOG2oNQ__eXPrKnglzwJFo0,2858
23
- neva/events/event.py,sha256=g3vAx-2qiR3QRM_or8G9mK5qx66A2LZiZ3n517R4lGQ,251
24
- neva/events/event_registry.py,sha256=jucYOUjCERz-ICdPiDrxYw_ySvmPJOcRzYKCgka29qY,1491
25
- neva/events/listener.py,sha256=-7RQOhVusKN8lopB3T2yfoQVlxX6GOSM5Pk1mPEMMro,1833
26
- neva/events/provider.py,sha256=L-yYJMM1KelWItUKCrESrmrF6On8SFg-OxpXF1--SVE,771
23
+ neva/events/__init__.py,sha256=Gpi5q-pNlIi-q23U2ZOsNf8Y9rB6AQtsBbbBFU0tkFc,776
24
+ neva/events/dispatcher.py,sha256=fFhF39sba1VOiwLa2eHzib5qWk4n_SOoWiYkmZL044o,4686
25
+ neva/events/event.py,sha256=q-KyyxNkU3AN2YSaujuNPIoXQMXhGOwClTap5y8fU5I,282
26
+ neva/events/event_registry.py,sha256=IZnpR3oLyvt5K2pn9KMCBw5W4JP7Ok_zMKI2SgQoXVM,1945
27
+ neva/events/listener.py,sha256=2d5RHVKO0pU-eL_evLReTG0DIoX9tZyOcn8PWLeECZo,1435
28
+ neva/events/policy.py,sha256=I67ziob0IEVeXdkilNPpj2f48gEz2EZneR1Fz8Nlt2U,154
29
+ neva/events/provider.py,sha256=cVxADLv7VXCK6gTMJsDNRzspMOH2lrIkvMRhqVh2cK4,954
27
30
  neva/events/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
+ neva/events/contracts/__init__.py,sha256=6-xRFR_5t6PbU-owl0WtM8mmdvmNvuHPUyL1sbFfqU8,293
32
+ neva/events/contracts/dispatcher.py,sha256=jJ4qLM_5-bXcBPH_txnbwHXAs6GFB080MiDkEViatTk,594
33
+ neva/events/contracts/event.py,sha256=kUUECex_AlmaPJ-fXRg32eMkiqNS75CHldOr7bbpFqo,89
34
+ neva/events/contracts/handler.py,sha256=SwLuuRtXhCzGkcBBLdH3MjUAkjEr0_rhqgE6dkWVJxI,327
35
+ neva/events/contracts/listener.py,sha256=0xwPrjprkMzXu9vY1Z-EjSLFdvOUpomiE65hH16nfxA,465
28
36
  neva/obs/__init__.py,sha256=dVzgljk9Hvo44LI34RcwbDyT42_z4nSnFVmL4GLbKD0,331
29
37
  neva/obs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
38
  neva/obs/instrumentation/__init__.py,sha256=SfIAvuCs-L0kEzOxUJ4aOIkhbydCe7qBwWtGeDELVA0,36
@@ -83,6 +91,6 @@ neva/testing/fakes.py,sha256=5HuuwMeAKhFSZfn9T8raQIjdgHkjFeZsFXDud0T4v7Q,2674
83
91
  neva/testing/fixtures.py,sha256=oiPa5ntUkW-SbySDvwEHXtti8NqSwI-R0CT1_ezTx_Y,1445
84
92
  neva/testing/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
85
93
  neva/testing/test_case.py,sha256=zJBZJeKI-sv-EOaXNuSJ0V2Zp_6hdk64W4dOh0eP8RI,3290
86
- python_neva-3.1.1.dist-info/METADATA,sha256=-unAEo_Et-8d0UuFhe5dTFOgrTT0RMW4ErfCfh4slcg,771
87
- python_neva-3.1.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
88
- python_neva-3.1.1.dist-info/RECORD,,
94
+ python_neva-3.3.0.dist-info/METADATA,sha256=7J-vn_EdbJAX-DgR0zsWf8NWVIq2BPd5Fp5YYiZcbic,846
95
+ python_neva-3.3.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
96
+ python_neva-3.3.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.29.0
2
+ Generator: hatchling 1.30.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any