edri 2025.12.2rc1__py3-none-any.whl → 2025.12.3rc1__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.
@@ -91,7 +91,7 @@ def api(cls=None, /, *, init=True, repr=True, eq=True, order=False,
91
91
  if get_origin(item_arg) == list:
92
92
  break
93
93
  item_type = get_origin(item_args[position])
94
- if item_type != list:
94
+ if item_type != list and not isinstance(field.type, Injection):
95
95
  raise TypeError(f"{field.name} has to be type of list if used with Header")
96
96
  headers[field.name] = field.default.name
97
97
  elif isinstance(field.default, Scope):
@@ -2,7 +2,7 @@ from abc import ABC, abstractmethod
2
2
  from dataclasses import fields, MISSING
3
3
  from inspect import signature
4
4
  from logging import getLogger
5
- from types import UnionType, NoneType, GenericAlias
5
+ from types import UnionType, NoneType
6
6
  from typing import Callable, Type, get_origin, Union, get_args, Any, TypedDict, Literal, TypeAliasType, Iterable
7
7
  from urllib.parse import parse_qs, unquote
8
8
 
@@ -75,3 +75,8 @@ class NotModifiedResponseDirective(HTTPResponseDirective):
75
75
  @dataclass
76
76
  class ServiceUnavailableResponseDirective(HTTPResponseDirective):
77
77
  message: str | None = None
78
+
79
+
80
+ @dataclass
81
+ class PartialContentResponseDirective(HTTPResponseDirective):
82
+ pass
@@ -248,7 +248,7 @@ class ListValidator(list):
248
248
  """
249
249
 
250
250
  def __init__(self, iterable: Iterable[Any] = (), /, *, minimum_length: int | None = None,
251
- maximum_length: int | None = None):
251
+ maximum_length: int | None = None, generics: list[Any]):
252
252
 
253
253
  super().__init__(iterable)
254
254
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: edri
3
- Version: 2025.12.2rc1
3
+ Version: 2025.12.3rc1
4
4
  Summary: Event Driven Routing Infrastructure
5
5
  Author: Marek Olšan
6
6
  Author-email: marek.olsan@gmail.com
@@ -13,14 +13,14 @@ edri/api/broker.py,sha256=I3z_bKbcTDnKXk82yteGEQmuxpqHgp5KrhQaJmk3US0,37258
13
13
  edri/api/listener.py,sha256=vXvLx2agQG43BIaLOnVpu9ATXhLvKon8BVRLCbVRs_Q,20409
14
14
  edri/api/middleware.py,sha256=6_x55swthVDczT-fu_1ufY1cDsHTZ04jMx6J6xfjbsM,5483
15
15
  edri/api/dataclass/__init__.py,sha256=8Y-zcaJtzMdALnNG7M9jsCaB1qAJKM8Ld3h9MDajYjA,292
16
- edri/api/dataclass/api_event.py,sha256=08edshexI9FxdebPIgTQMSQ4fEtGpAa3K_VYCmN1jFs,6587
16
+ edri/api/dataclass/api_event.py,sha256=43pCg4Whm3Y1ANUomu8pXbXIRtWQkrDDqNsr_Qnt_-Y,6629
17
17
  edri/api/dataclass/client.py,sha256=ctc2G4mXJR2wUSujANudT3LqxW7qxk_YkpM_TEXD0tM,216
18
18
  edri/api/dataclass/file.py,sha256=OJfJlrCTjSnzCF8yFVnxr8rGeL0l08WVMsXJx00S4qc,225
19
19
  edri/api/extensions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  edri/api/extensions/url_extension.py,sha256=rZKumjR7J6pDTiSLIZf8IzxGgDZP7p2g0Kgs0USug_U,1971
21
21
  edri/api/extensions/url_prefix.py,sha256=kNI6g5ZlW0w-J_IMacYLco1EQvmTtMJyEkN6-SK1wC0,491
22
22
  edri/api/handlers/__init__.py,sha256=MI6OGDf1rM8jf_uCKK_JYeOGMts62CNy10BwwNlG0Tk,200
23
- edri/api/handlers/base_handler.py,sha256=4qavJ4XD1BeFq_KjFxj_Mp6PzIhAAFqFfXNrwv8CCtw,13170
23
+ edri/api/handlers/base_handler.py,sha256=Lte9SEprQcIYv1nC4Zj2eMmHcvNcCGJQS4TWaP8XlrI,13156
24
24
  edri/api/handlers/html_handler.py,sha256=OprcTg1IQDI7eBK-_oHqA60P1H30LA9xIQpD7iV-Neg,7464
25
25
  edri/api/handlers/http_handler.py,sha256=jjOyx2Wu756K99x6zvJoybgM2Bj0eWXkjEElLYkCDZ0,36338
26
26
  edri/api/handlers/rest_handler.py,sha256=GAG5lVTsRMCf9IUmYb_pokxyPcOfbnKZ2p3jxfy_-Dw,3300
@@ -41,7 +41,7 @@ edri/dataclass/response.py,sha256=VBMmVdna1IOKC5YGBXor6AayYOoiEYb9xx_RZ3bpKnw,38
41
41
  edri/dataclass/directive/__init__.py,sha256=nfvsh1BmxhACW7Q8gnwy7y3l3_cI1P0k2WP0jV5RJhI,608
42
42
  edri/dataclass/directive/base.py,sha256=2ghQpv1bGcNHYEMA0nyWGumIplXBzj9cPQ34aJ7uVr0,296
43
43
  edri/dataclass/directive/html.py,sha256=UCuwksxt_Q9b1wha1DjEygJWAyq2Hdnir5zG9lGi8as,946
44
- edri/dataclass/directive/http.py,sha256=_kxof6aSZV1IK3awbK2KKG12gWM4d4l_GDzWt_TZTqs,2727
44
+ edri/dataclass/directive/http.py,sha256=FRiuU92TvkAOW0FKHgUIujcqD8zqfZcCs2Dj1kCgwqU,2811
45
45
  edri/events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
46
  edri/events/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
47
  edri/events/api/client/__init__.py,sha256=6q7CJ4eLMAuz_EFIs7us-xDXudy0Z5DIHd0YCVtTeuo,170
@@ -113,7 +113,7 @@ edri/utility/queue.py,sha256=xBbeu1DT3Krdxni0YABk7gDZ5fLQL9eX-H3U-1jSqag,3628
113
113
  edri/utility/shared_memory_pipe.py,sha256=kmtd-1999s-cUVThxXVtw4N-rp_WgrHtl-h4hhEliXA,6396
114
114
  edri/utility/storage.py,sha256=AbZwtj8py0OBy3dM5C0fJ97uV88TERZO79heEmyE9Yk,3781
115
115
  edri/utility/transformation.py,sha256=4FeRNav-ifxuqgwq9ys3G5WtMzUAC3_2B3tnFhMENho,1450
116
- edri/utility/validation.py,sha256=wDQb55CBB-I-KaevucmSWlevYAGxMJ8Pok0Ya3S8cLk,9609
116
+ edri/utility/validation.py,sha256=RWKyWs8XnRZRaRz1hyoMz_JaCSK2GMfTI_lTIPUPEw4,9630
117
117
  edri/utility/watcher.py,sha256=9nwU-h6B_QCd02-z-2-Hvf6huro8B9yVcZAepoFtXQ4,4623
118
118
  edri/utility/manager/__init__.py,sha256=bNyqET60wyq-QFmNwk52UKRweK5lYTDH_TF2UgS6enk,73
119
119
  edri/utility/manager/scheduler.py,sha256=3wRPph-FGNrVMN3TG7SvZ_PDW8mNK7UdM3PnjI_QTH8,11624
@@ -157,7 +157,7 @@ tests/utility/test_validation.py,sha256=wZcXjLrj3JheVLKnYKkkYfyC8CCpHVAw9Jn_uDnu
157
157
  tests/utility/manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
158
158
  tests/utility/manager/test_scheduler.py,sha256=sROffYvSOaWsYQxQGTy6l9Mn_qeNPRmJoXLVPKU3XNY,9153
159
159
  tests/utility/manager/test_store.py,sha256=xlo1JUsPLIhPJyQn7AXldAgWDo_O8ba2ns25TEaaGdQ,2821
160
- edri-2025.12.2rc1.dist-info/METADATA,sha256=5CZ7Va_rqOYA9-RANc9xNRrmlnSeexDMWMAcZdc2ixw,8374
161
- edri-2025.12.2rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
- edri-2025.12.2rc1.dist-info/top_level.txt,sha256=himES6JgPlx4Zt8aDrQEj2fxAd7IDD6MBOsiNZkzKHQ,11
163
- edri-2025.12.2rc1.dist-info/RECORD,,
160
+ edri-2025.12.3rc1.dist-info/METADATA,sha256=OBAQ4p4GB6h8PesxFiCHbrlM1_JkrmsdOG-5oCk5QUQ,8374
161
+ edri-2025.12.3rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
+ edri-2025.12.3rc1.dist-info/top_level.txt,sha256=himES6JgPlx4Zt8aDrQEj2fxAd7IDD6MBOsiNZkzKHQ,11
163
+ edri-2025.12.3rc1.dist-info/RECORD,,