rabbitkit 0.9.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.
Files changed (95) hide show
  1. rabbitkit/__init__.py +201 -0
  2. rabbitkit/_version.py +3 -0
  3. rabbitkit/aio/__init__.py +31 -0
  4. rabbitkit/async_/__init__.py +9 -0
  5. rabbitkit/async_/batch.py +213 -0
  6. rabbitkit/async_/broker.py +1123 -0
  7. rabbitkit/async_/connection.py +274 -0
  8. rabbitkit/async_/pool.py +363 -0
  9. rabbitkit/async_/transport.py +877 -0
  10. rabbitkit/asyncapi/__init__.py +5 -0
  11. rabbitkit/asyncapi/generator.py +219 -0
  12. rabbitkit/asyncapi/schema.py +98 -0
  13. rabbitkit/cli/__init__.py +77 -0
  14. rabbitkit/cli/_utils.py +38 -0
  15. rabbitkit/cli/commands/__init__.py +0 -0
  16. rabbitkit/cli/commands/dlq.py +190 -0
  17. rabbitkit/cli/commands/health.py +34 -0
  18. rabbitkit/cli/commands/migrate.py +570 -0
  19. rabbitkit/cli/commands/routes.py +88 -0
  20. rabbitkit/cli/commands/run.py +144 -0
  21. rabbitkit/cli/commands/shell.py +72 -0
  22. rabbitkit/cli/commands/topology.py +346 -0
  23. rabbitkit/concurrency.py +451 -0
  24. rabbitkit/core/__init__.py +5 -0
  25. rabbitkit/core/app.py +323 -0
  26. rabbitkit/core/config.py +849 -0
  27. rabbitkit/core/env_config.py +251 -0
  28. rabbitkit/core/errors.py +199 -0
  29. rabbitkit/core/logging.py +261 -0
  30. rabbitkit/core/message.py +235 -0
  31. rabbitkit/core/path.py +53 -0
  32. rabbitkit/core/pipeline.py +1289 -0
  33. rabbitkit/core/protocols.py +349 -0
  34. rabbitkit/core/registry.py +284 -0
  35. rabbitkit/core/route.py +329 -0
  36. rabbitkit/core/router.py +142 -0
  37. rabbitkit/core/topology.py +261 -0
  38. rabbitkit/core/topology_dispatch.py +74 -0
  39. rabbitkit/core/types.py +324 -0
  40. rabbitkit/dashboard/__init__.py +5 -0
  41. rabbitkit/dashboard/app.py +212 -0
  42. rabbitkit/di/__init__.py +19 -0
  43. rabbitkit/di/context.py +193 -0
  44. rabbitkit/di/depends.py +42 -0
  45. rabbitkit/di/resolver.py +503 -0
  46. rabbitkit/dlq.py +320 -0
  47. rabbitkit/experimental/__init__.py +50 -0
  48. rabbitkit/fastapi.py +91 -0
  49. rabbitkit/health.py +654 -0
  50. rabbitkit/highload/__init__.py +10 -0
  51. rabbitkit/highload/backpressure.py +514 -0
  52. rabbitkit/highload/batch.py +448 -0
  53. rabbitkit/locking.py +277 -0
  54. rabbitkit/management.py +470 -0
  55. rabbitkit/middleware/__init__.py +27 -0
  56. rabbitkit/middleware/base.py +125 -0
  57. rabbitkit/middleware/circuit_breaker.py +131 -0
  58. rabbitkit/middleware/compression.py +267 -0
  59. rabbitkit/middleware/deduplication.py +651 -0
  60. rabbitkit/middleware/error_classifier.py +43 -0
  61. rabbitkit/middleware/exception.py +105 -0
  62. rabbitkit/middleware/metrics.py +440 -0
  63. rabbitkit/middleware/otel.py +203 -0
  64. rabbitkit/middleware/rate_limit.py +247 -0
  65. rabbitkit/middleware/retry.py +540 -0
  66. rabbitkit/middleware/signing.py +682 -0
  67. rabbitkit/middleware/timeout.py +291 -0
  68. rabbitkit/py.typed +0 -0
  69. rabbitkit/queue_metrics.py +174 -0
  70. rabbitkit/results/__init__.py +6 -0
  71. rabbitkit/results/backend.py +102 -0
  72. rabbitkit/results/middleware.py +123 -0
  73. rabbitkit/rpc.py +632 -0
  74. rabbitkit/serialization/__init__.py +25 -0
  75. rabbitkit/serialization/base.py +35 -0
  76. rabbitkit/serialization/json.py +122 -0
  77. rabbitkit/serialization/msgspec.py +136 -0
  78. rabbitkit/serialization/pipeline.py +255 -0
  79. rabbitkit/streams.py +139 -0
  80. rabbitkit/sync/__init__.py +11 -0
  81. rabbitkit/sync/batch.py +595 -0
  82. rabbitkit/sync/broker.py +996 -0
  83. rabbitkit/sync/connection.py +209 -0
  84. rabbitkit/sync/pool.py +262 -0
  85. rabbitkit/sync/transport.py +1085 -0
  86. rabbitkit/testing/__init__.py +20 -0
  87. rabbitkit/testing/app.py +99 -0
  88. rabbitkit/testing/broker.py +540 -0
  89. rabbitkit/testing/fixtures.py +56 -0
  90. rabbitkit-0.9.0.dist-info/METADATA +575 -0
  91. rabbitkit-0.9.0.dist-info/RECORD +95 -0
  92. rabbitkit-0.9.0.dist-info/WHEEL +5 -0
  93. rabbitkit-0.9.0.dist-info/entry_points.txt +2 -0
  94. rabbitkit-0.9.0.dist-info/licenses/LICENSE +21 -0
  95. rabbitkit-0.9.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,95 @@
1
+ rabbitkit/__init__.py,sha256=vrVSFpL3H5E0UMaWzENMvLh0qPcO-PdKr2EVmM3R1Ko,5450
2
+ rabbitkit/_version.py,sha256=HnvkbJ_Z55IlDQW4t2VRsfJ1OB62UUqC1_4zd7Pmiok,75
3
+ rabbitkit/concurrency.py,sha256=RuvqcyeeHSB-__TsP_T8Bu28cc3HaqnuhBoEzV7P1QA,19627
4
+ rabbitkit/dlq.py,sha256=KCi2SvOcQk9jnna8u5C1aPgqeJFMZWzLwS904nGLokI,12377
5
+ rabbitkit/fastapi.py,sha256=UZmBA6x9p1QStq8B0ow7ARSvjJHvWsVCuasEmEOwqGc,2855
6
+ rabbitkit/health.py,sha256=7dtRTMYj1PWkKtrV2bwjVjftkNTgAtdhiytdYrz8vV8,25195
7
+ rabbitkit/locking.py,sha256=-1_Y5bl6zz1mWuHAg7fglFoYyviHkkc8bGdTWmrcdh4,11357
8
+ rabbitkit/management.py,sha256=TvzwuK4C3bcK-ySXGt6-ONzZAFEVF5971BOQdo_gL9I,18887
9
+ rabbitkit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ rabbitkit/queue_metrics.py,sha256=biH3p0ku5mxt9DKzHk5HeN2JPu8j-MPl20H-i3CBfEY,6978
11
+ rabbitkit/rpc.py,sha256=muD2QFleVCbS-9g9FO9XBvAKysSeu9yZ0jKxqhVMwKw,23710
12
+ rabbitkit/streams.py,sha256=DHO5u7SA-SxxG8F_Pq-AAHhR1b0oxM5WU7QuFBbGrcg,4613
13
+ rabbitkit/aio/__init__.py,sha256=KEV46UEExsMnwLYQ1O3wDmiRdrAgAfVi7I_oqynUerM,965
14
+ rabbitkit/async_/__init__.py,sha256=7qT2rAt3TmqCwFMhlsuKKaGXG0kOKcFFC0-Nu-7PN0s,228
15
+ rabbitkit/async_/batch.py,sha256=4RHzgqyXFX9AHpfX4K83xAE2GY4DxgFOylO_g8r4RsI,10073
16
+ rabbitkit/async_/broker.py,sha256=Qxjq5Grf87hOqvV0Genc-YIOwBQCa1zy9Qd7lvejsTs,50886
17
+ rabbitkit/async_/connection.py,sha256=yCR7xHTRk7yxgj4yRz3b9LNtFh8jp9lcp5ubrie9i2c,10997
18
+ rabbitkit/async_/pool.py,sha256=1nV2eyKBhbzupagxZWxDJ_snLnWINWQ5zZq4sOAQgFk,14459
19
+ rabbitkit/async_/transport.py,sha256=sFW4r2MWXk92ILvsBUWoJn_jixrc6wuTg2bSAIR3OW8,40316
20
+ rabbitkit/asyncapi/__init__.py,sha256=jT0p2XGKVG2LMH1yZ88h6zp7dxo_S81w2exzlocYZ1M,258
21
+ rabbitkit/asyncapi/generator.py,sha256=YDVs1yPgTokFoqqNrgNuvjLnV1I_GWT4aQqeCjFdy9A,6712
22
+ rabbitkit/asyncapi/schema.py,sha256=hfLN-5NkKK97PVvUVME8wOp_JPxkMOVjbVbovhNBPRU,3317
23
+ rabbitkit/cli/__init__.py,sha256=93OWpoHmWTbKH5R9TPsEyrLW83cGnMs8ltlEKwnmNZs,2571
24
+ rabbitkit/cli/_utils.py,sha256=Ro6-S9xIFnJqV9VPjRuRa5xT6ETQXTeK05QcBzbne8A,1023
25
+ rabbitkit/cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
+ rabbitkit/cli/commands/dlq.py,sha256=mfLWKVP5advmL4FPqAPGrW_2q5vntxTB0eLP9MFz1mw,7086
27
+ rabbitkit/cli/commands/health.py,sha256=0JjlJHUvIpo_fblxiBoNMZBrkBBS7q-ZjlFt9prOBSE,922
28
+ rabbitkit/cli/commands/migrate.py,sha256=mvf60jk3U5ofEJ1isHaxABIiqVA5yAb_bTr1Cg0bwM0,21111
29
+ rabbitkit/cli/commands/routes.py,sha256=2VowBMbF2UwVJNxeWulynHSaV6tyD88L3GFz1GdEBYE,3104
30
+ rabbitkit/cli/commands/run.py,sha256=cSSxBpZ1e1tgw4J04_ZJ6_Cv3orlRSiBXAu5D5B_CQo,4495
31
+ rabbitkit/cli/commands/shell.py,sha256=VyiJxUkpOV2Sr8MVKdWsJF-pLKi5KN5f0Siktm58EAw,2112
32
+ rabbitkit/cli/commands/topology.py,sha256=H6p7IEQl0yhnDDWdsXKrdWCn9e-gsNBtUYPz0SQVWDw,13384
33
+ rabbitkit/core/__init__.py,sha256=7VwaPSQEl_0MumpFx39IkJCx1ulI7IIBz-KGFNXDSrE,162
34
+ rabbitkit/core/app.py,sha256=g6Qyiz5y2BB6mZn3S8NwrwwkHrNPuILc58GGwBP1LJs,14234
35
+ rabbitkit/core/config.py,sha256=aGIQHfmHYTRWSizFYfzvZIl4e0zTPOVr7rrb8hsripA,37245
36
+ rabbitkit/core/env_config.py,sha256=7_X6k-PjistS4HE7-AFKWnt48TpqVNm8ypao78_9YqE,9313
37
+ rabbitkit/core/errors.py,sha256=r-xNMauxvWdJgrD0e8cbmwpf8BNUuXdF4WpU8OGjCOQ,7708
38
+ rabbitkit/core/logging.py,sha256=tIrSFYNlM-5eYBS5izusVdVBlXRbvrz17SacCRnoixA,10719
39
+ rabbitkit/core/message.py,sha256=HmDOCxPd4Zix5-8nW_FatHGt0MWhUYV2DhgA_0IQxHM,8686
40
+ rabbitkit/core/path.py,sha256=Dy_VCHQ0mMM9NMSAmaAMhSlAx7lrZCRYvZpsRu4qeOA,2059
41
+ rabbitkit/core/pipeline.py,sha256=o_f_5hlYdPHcZQJG4In_iPI9u3fDu64cTJkOpqtMPsM,55583
42
+ rabbitkit/core/protocols.py,sha256=LDxSu18nrli1QsdJu6IYhO61Q2S1AsWkLl2cVHUhT6Q,10622
43
+ rabbitkit/core/registry.py,sha256=p-LxdC_kvW5FY-99MwmboCpzm2IgII2ZXJ95fyJ7XrY,11950
44
+ rabbitkit/core/route.py,sha256=DeZHJbzofpmG0U8zA0_BxAQz_51m1dBB3kO9tbR3Rko,14265
45
+ rabbitkit/core/router.py,sha256=Z1c6-R1EDzx2RLP8FqXaoQ--1otZYOazImNEGe3uXJY,5098
46
+ rabbitkit/core/topology.py,sha256=M1U6WyxI5Re737qYoVt5z-FRqPsv3L1zkyr4ebmbW-E,9329
47
+ rabbitkit/core/topology_dispatch.py,sha256=97cN1_0Dpjy8q6a1iUDwviLbQfeTh1wyP1gD8Idhhd0,2883
48
+ rabbitkit/core/types.py,sha256=X-Ujf-CfjCd4Bk6YbZClaSGvjBNzBgrALxIlXXCdWQM,12061
49
+ rabbitkit/dashboard/__init__.py,sha256=5o6MCNqAMjE9FbPnpjyvwUfWt55I7KzUyboa4gsaEws,132
50
+ rabbitkit/dashboard/app.py,sha256=U9TZxIY_7caQ5ZUG3CBHo5yOezXMSR5urQZ9T_h0uQY,8000
51
+ rabbitkit/di/__init__.py,sha256=COETc6ocQ79oKxbna2k38AxnOt860EjlbWe833nLIUw,509
52
+ rabbitkit/di/context.py,sha256=0PsTmARuzP7IGzdb_9BHAiAG2BoGpgw3rNUeTve7uX0,6361
53
+ rabbitkit/di/depends.py,sha256=4JAiybBkp0NK9ifGUghgFt8jSS65DajlZNR6F_Gj_9c,1371
54
+ rabbitkit/di/resolver.py,sha256=eF-fv5nKxdYjs2fkgkrd3nc1lYujgVfzRA8kae27RAs,21918
55
+ rabbitkit/experimental/__init__.py,sha256=5SitdzkPm6JBsVN-MM_6v-LeMYMCj8ni3fXJMJCtdqg,1647
56
+ rabbitkit/highload/__init__.py,sha256=USfsmH_j5i_2ZFPPuKRJ1dH9wV2kEv-nlxek0tAQ5Es,276
57
+ rabbitkit/highload/backpressure.py,sha256=tPLB0MKRcLwUoEa_5zwGZU5KHgMsHVznrUMW5n52hmc,22432
58
+ rabbitkit/highload/batch.py,sha256=hCWRydRTv4q16GZ11SeOCafiFNNI_RU7MURPGykeTR0,18559
59
+ rabbitkit/middleware/__init__.py,sha256=8BkRg8Au5bdDghJe2qkxVYZ-ncysHsCWUJVXhaEqNSY,1081
60
+ rabbitkit/middleware/base.py,sha256=OA4XV5cs5ORWmDu5WcnfyU_TCm8gjQF17sZwcgQDK04,4953
61
+ rabbitkit/middleware/circuit_breaker.py,sha256=edEZqzf0CR6mRHlslfw9W7buTdLLo4VplYp1dJJKo_w,5438
62
+ rabbitkit/middleware/compression.py,sha256=JFT4HhKbM-eQGmkT1UCH0iIVlJyFwh60VWBSus6222k,11476
63
+ rabbitkit/middleware/deduplication.py,sha256=XDmxmY7zD5tnmJQqEL1u5smHVNZy1RSzhiszuZB_DzQ,29054
64
+ rabbitkit/middleware/error_classifier.py,sha256=rdyRWR9Sg16GxdnYomkPUMgDwBYwQGhBqvBGRaMba1I,1367
65
+ rabbitkit/middleware/exception.py,sha256=XbXi0ZTrv60n98z57J9N2CObvve-4HsUGqZuanIgGS4,3493
66
+ rabbitkit/middleware/metrics.py,sha256=pdtU51twrv5xE3w0gLyJjnG_86IfIiqfgYtCEna5a_w,17185
67
+ rabbitkit/middleware/otel.py,sha256=h7HNuStK5gTvlGcSVsKxzs3FAY297OLrfPkup_3tsQ4,8182
68
+ rabbitkit/middleware/rate_limit.py,sha256=d8v_NhzktUeKfOzq_8UNaFdewSlY-go6AgLHFgDhLGw,9505
69
+ rabbitkit/middleware/retry.py,sha256=d619WG4Ehj9HXLc3KbDzXqWWQ6Je8R5125RHVvUKvbk,24438
70
+ rabbitkit/middleware/signing.py,sha256=ucOi3BYSQUljtMFOhspewIKoNz87xjsjl_Zn7ld_6sc,32537
71
+ rabbitkit/middleware/timeout.py,sha256=edot1GVV3mJAzIv1a266KCYIAitCZGtQzDoASgHNJVY,12769
72
+ rabbitkit/results/__init__.py,sha256=0PDue6vdbIYhU8KaZ192r6ZVInJze1FS95X-mp4MmbY,247
73
+ rabbitkit/results/backend.py,sha256=CKFyQ4A-qKxGTr7WlOpw7vPvAgxvmCfUD794ZPz5buE,3919
74
+ rabbitkit/results/middleware.py,sha256=PhocSiNu_EQZfkIP890ifa3hVRhQfo_s_6ZQaN0rlxY,4961
75
+ rabbitkit/serialization/__init__.py,sha256=f8yxjqoVvG-ft74X1mNYXKQ8aq8MXKRnGtclIRqFlf4,582
76
+ rabbitkit/serialization/base.py,sha256=yQ3exVB8-X9gExrqwx_9zLRNrLh9QtoP8Gny-ApT4Sc,1068
77
+ rabbitkit/serialization/json.py,sha256=Jsw3W9HaQnXc09fg8mfO7P61MpOkRcrIEmyXo48-QBc,4909
78
+ rabbitkit/serialization/msgspec.py,sha256=3mXCMC13YZwHMyBd_SO8J7guyrBlCNWb9lfEIlhIzas,5862
79
+ rabbitkit/serialization/pipeline.py,sha256=LUj86yhb4YG9ErfzBfuAt9IMV-uVxOS6wXBG5lGoFOg,9198
80
+ rabbitkit/sync/__init__.py,sha256=g0Dp3qYZYZbxtCsohRiizaxYlOuczaZRPy_Hodi11Iw,285
81
+ rabbitkit/sync/batch.py,sha256=pREoSYeFxTTtS5krjf7z9DjmCTzeEw59GIXD4BRffBs,26665
82
+ rabbitkit/sync/broker.py,sha256=PvItbPnthfELgvsLDrQdxMInkos2Ca5rT_JXHhXUsD0,45540
83
+ rabbitkit/sync/connection.py,sha256=9JWz0PulxHVHljdoi8Ct5a-bXXjjGurHOzl_EROEDtA,7493
84
+ rabbitkit/sync/pool.py,sha256=gU7jhbk3KgvTB7ZQCmSrjE7mm1oLJBZimzr12Z7W8y4,9299
85
+ rabbitkit/sync/transport.py,sha256=EQTFybJAycJEp1JVL8HF1pDTI5_FomfUY3IID0K20R8,48780
86
+ rabbitkit/testing/__init__.py,sha256=lCzBFcxrOpGl5kCNBOh1aEIwWptxHgk03QBgYmnUyVE,552
87
+ rabbitkit/testing/app.py,sha256=0HBS6Pav9pL_uIiXeGYv26FhCD12iH5VPDENoOaMzco,2659
88
+ rabbitkit/testing/broker.py,sha256=51ljtA8LomYN3Nf89sBQq0xnEWdnK4xsKeaE4_w9Xlk,22437
89
+ rabbitkit/testing/fixtures.py,sha256=Gt2TX4TSfaD3VgztKUl5AbcbQyKWiJC3vWaeyYm7tAI,1504
90
+ rabbitkit-0.9.0.dist-info/licenses/LICENSE,sha256=ibLl6oS-XD8rVDH8_SmRFLEHT-KC_ISzdka0gxPte8E,1069
91
+ rabbitkit-0.9.0.dist-info/METADATA,sha256=llU6fsG-SG9RTMEd7oyi6jPNVqk_brzVYAOG7SMfxVc,21565
92
+ rabbitkit-0.9.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
93
+ rabbitkit-0.9.0.dist-info/entry_points.txt,sha256=2xUR0b3EPGtPmWebrCQN2fFMw-vmozRLQJw_6kdhFo0,48
94
+ rabbitkit-0.9.0.dist-info/top_level.txt,sha256=xLBjGIMuz_Uii8Mq6v0YsCVkNre7t6ZQhkfDuST3r64,10
95
+ rabbitkit-0.9.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ rabbitkit = rabbitkit.cli:app
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Talaat Magdy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ rabbitkit