buz 2.17.0rc4__py3-none-any.whl → 2.17.0rc6__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.
- buz/event/transactional_outbox/transactional_outbox_event_bus.py +4 -2
- {buz-2.17.0rc4.dist-info → buz-2.17.0rc6.dist-info}/METADATA +2 -4
- {buz-2.17.0rc4.dist-info → buz-2.17.0rc6.dist-info}/RECORD +5 -5
- {buz-2.17.0rc4.dist-info → buz-2.17.0rc6.dist-info}/LICENSE +0 -0
- {buz-2.17.0rc4.dist-info → buz-2.17.0rc6.dist-info}/WHEEL +0 -0
|
@@ -20,7 +20,8 @@ class TransactionalOutboxEventBus(EventBus):
|
|
|
20
20
|
self.__outbox_repository = outbox_repository
|
|
21
21
|
self.__event_to_outbox_record_translator = event_to_outbox_record_translator
|
|
22
22
|
self.__outbox_record_validator = outbox_record_validator
|
|
23
|
-
self.
|
|
23
|
+
self.__publish_middleware = publish_middlewares
|
|
24
|
+
self.__publish_middleware_chain_resolver = PublishMiddlewareChainResolver(self.__publish_middleware or [])
|
|
24
25
|
|
|
25
26
|
def publish(self, event: Event) -> None:
|
|
26
27
|
self.__publish_middleware_chain_resolver.resolve(event, self.__perform_publish)
|
|
@@ -30,10 +31,11 @@ class TransactionalOutboxEventBus(EventBus):
|
|
|
30
31
|
self.__outbox_repository.save(outbox_record)
|
|
31
32
|
|
|
32
33
|
def bulk_publish(self, events: Iterable[Event]) -> None:
|
|
34
|
+
publish_middleware_chain_resolver = PublishMiddlewareChainResolver(self.__publish_middleware or [])
|
|
33
35
|
outbox_records: list[OutboxRecord] = []
|
|
34
36
|
|
|
35
37
|
for event in events:
|
|
36
|
-
|
|
38
|
+
publish_middleware_chain_resolver.resolve(event, lambda resolved_event: None)
|
|
37
39
|
outbox_records.append(self.__process_event(event))
|
|
38
40
|
|
|
39
41
|
if len(outbox_records) == 0:
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: buz
|
|
3
|
-
Version: 2.17.
|
|
3
|
+
Version: 2.17.0rc6
|
|
4
4
|
Summary: Buz is a set of light, simple and extensible implementations of event, command and query buses.
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Luis Pintado Lozano
|
|
7
7
|
Author-email: luis.pintado.lozano@gmail.com
|
|
8
8
|
Maintainer: Fever - Platform Squad
|
|
9
9
|
Maintainer-email: platform@feverup.com
|
|
10
|
-
Requires-Python: >=3.
|
|
10
|
+
Requires-Python: >=3.10
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: License :: OSI Approved :: MIT License
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
20
18
|
Classifier: Topic :: Software Development :: Libraries
|
|
21
19
|
Classifier: Typing :: Typed
|
|
22
20
|
Provides-Extra: aiokafka
|
|
@@ -140,7 +140,7 @@ buz/event/transactional_outbox/outbox_record_validation/outbox_record_validation
|
|
|
140
140
|
buz/event/transactional_outbox/outbox_record_validation/outbox_record_validator.py,sha256=XGHTT1dH2CJOqhYYnyPJHmZsAuVXuDOeqgJzK7mRidc,328
|
|
141
141
|
buz/event/transactional_outbox/outbox_record_validation/size_outbox_record_validator.py,sha256=f8sQ5IHfO4J8m5l7rS3JYUoBvx0B1EAFMRsJ0HPQKG8,2436
|
|
142
142
|
buz/event/transactional_outbox/outbox_repository.py,sha256=Sn7aWaq1G6uiKXcV09l9L1eVQ_bPUTqY-OSD12_H2jU,628
|
|
143
|
-
buz/event/transactional_outbox/transactional_outbox_event_bus.py,sha256=
|
|
143
|
+
buz/event/transactional_outbox/transactional_outbox_event_bus.py,sha256=Z9YTfixQ2gd0WRVkyK-rCi7EGJvLZqBYvfsFI8ZZEo8,2693
|
|
144
144
|
buz/event/transactional_outbox/transactional_outbox_worker.py,sha256=x6kf-Oc4oYKu9S4MTcCqd3VqPNURScTReYJ3Ahx4rKA,2221
|
|
145
145
|
buz/event/worker.py,sha256=BL9TXB_kyr0Avql9fIcFm3CDNnXPvZB6O6BxVwjtCdA,942
|
|
146
146
|
buz/handler.py,sha256=W6jSTo5BNV9u9QKBaEMhLIa3tgQocd6oYEJf5K4EfEU,358
|
|
@@ -258,7 +258,7 @@ buz/serializer/message_to_json_bytes_serializer.py,sha256=RGZJ64t4t4Pz2FCASZZCv-
|
|
|
258
258
|
buz/wrapper/__init__.py,sha256=GnRdJFcncn-qp0hzDG9dBHLmTJSbHFVjE_yr-MdW_n4,77
|
|
259
259
|
buz/wrapper/async_to_sync.py,sha256=OfK-vrVUhuN-LLLvekLdMbQYtH0ue5lfbvuasj6ovMI,698
|
|
260
260
|
buz/wrapper/event_loop.py,sha256=pfBJ1g-8A2a3YgW8Gf9Fg0kkewoh3-wgTy2KIFDyfHk,266
|
|
261
|
-
buz-2.17.
|
|
262
|
-
buz-2.17.
|
|
263
|
-
buz-2.17.
|
|
264
|
-
buz-2.17.
|
|
261
|
+
buz-2.17.0rc6.dist-info/LICENSE,sha256=jcLgcIIVaBqaZNwe0kzGWSU99YgwMcI0IGv142wkYSM,1062
|
|
262
|
+
buz-2.17.0rc6.dist-info/METADATA,sha256=8ciFxlQa5_APdQnCNJPGP1vPaOuHQ_B9nFemVUDnIzI,12583
|
|
263
|
+
buz-2.17.0rc6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
264
|
+
buz-2.17.0rc6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|