swarmauri_middleware_bulkhead 0.8.0.dev45__tar.gz → 0.11.0.dev1__tar.gz
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.
- {swarmauri_middleware_bulkhead-0.8.0.dev45 → swarmauri_middleware_bulkhead-0.11.0.dev1}/PKG-INFO +18 -21
- {swarmauri_middleware_bulkhead-0.8.0.dev45 → swarmauri_middleware_bulkhead-0.11.0.dev1}/README.md +11 -15
- {swarmauri_middleware_bulkhead-0.8.0.dev45 → swarmauri_middleware_bulkhead-0.11.0.dev1}/pyproject.toml +8 -7
- {swarmauri_middleware_bulkhead-0.8.0.dev45 → swarmauri_middleware_bulkhead-0.11.0.dev1}/swarmauri_middleware_bulkhead/BulkheadMiddleware.py +8 -4
- {swarmauri_middleware_bulkhead-0.8.0.dev45 → swarmauri_middleware_bulkhead-0.11.0.dev1}/LICENSE +0 -0
- {swarmauri_middleware_bulkhead-0.8.0.dev45 → swarmauri_middleware_bulkhead-0.11.0.dev1}/swarmauri_middleware_bulkhead/__init__.py +0 -0
{swarmauri_middleware_bulkhead-0.8.0.dev45 → swarmauri_middleware_bulkhead-0.11.0.dev1}/PKG-INFO
RENAMED
|
@@ -1,50 +1,45 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: swarmauri_middleware_bulkhead
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0.dev1
|
|
4
4
|
Summary: Bulkhead middleware implementation for Swarmauri
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
License-File: LICENSE
|
|
7
7
|
Keywords: swarmauri,sdk,standards,middleware,bulkhead
|
|
8
8
|
Author: Jacob Stewart
|
|
9
9
|
Author-email: jacob@swarmauri.com
|
|
10
|
-
Requires-Python: >=3.10,<3.
|
|
10
|
+
Requires-Python: >=3.10,<3.15
|
|
11
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
12
|
Classifier: Natural Language :: English
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
17
13
|
Classifier: Development Status :: 3 - Alpha
|
|
18
14
|
Classifier: Programming Language :: Python
|
|
19
15
|
Classifier: Programming Language :: Python :: 3
|
|
20
16
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
22
|
Requires-Dist: fastapi
|
|
22
23
|
Requires-Dist: swarmauri_base
|
|
23
24
|
Requires-Dist: swarmauri_core
|
|
24
25
|
Requires-Dist: swarmauri_standard
|
|
25
26
|
Description-Content-Type: text/markdown
|
|
26
27
|
|
|
27
|
-

|
|
28
29
|
|
|
29
30
|
<p align="center">
|
|
30
|
-
<a href="https://
|
|
31
|
-
<img src="https://
|
|
32
|
-
</a>
|
|
31
|
+
<a href="https://pepy.tech/project/swarmauri_middleware_bulkhead/">
|
|
32
|
+
<img src="https://static.pepy.tech/badge/swarmauri_middleware_bulkhead/month" alt="PyPI - Downloads"/></a>
|
|
33
33
|
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_middleware_bulkhead/">
|
|
34
|
-
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_middleware_bulkhead.svg"
|
|
35
|
-
</a>
|
|
34
|
+
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_middleware_bulkhead.svg"/></a>
|
|
36
35
|
<a href="https://pypi.org/project/swarmauri_middleware_bulkhead/">
|
|
37
|
-
<img src="https://img.shields.io/
|
|
38
|
-
</a>
|
|
36
|
+
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
|
|
39
37
|
<a href="https://pypi.org/project/swarmauri_middleware_bulkhead/">
|
|
40
|
-
<img src="https://img.shields.io/pypi/l/swarmauri_middleware_bulkhead" alt="PyPI - License"
|
|
41
|
-
</a>
|
|
38
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_middleware_bulkhead" alt="PyPI - License"/></a>
|
|
42
39
|
<a href="https://pypi.org/project/swarmauri_middleware_bulkhead/">
|
|
43
|
-
<img src="https://img.shields.io/pypi/v/swarmauri_middleware_bulkhead?label=swarmauri_middleware_bulkhead&color=green" alt="PyPI - swarmauri_middleware_bulkhead"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
---
|
|
40
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_middleware_bulkhead?label=swarmauri_middleware_bulkhead&color=green" alt="PyPI - swarmauri_middleware_bulkhead"/></a>
|
|
41
|
+
<a href="https://discord.gg/N4UpBuQv8T">
|
|
42
|
+
<img src="https://img.shields.io/badge/Discord-Join%20Chat-5865F2?logo=discord&logoColor=white" alt="Discord"/></a></p>
|
|
48
43
|
|
|
49
44
|
# Swarmauri Middleware Bulkhead
|
|
50
45
|
|
|
@@ -125,3 +120,5 @@ If you want to contribute to swarmauri-sdk, read up on our
|
|
|
125
120
|
[guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
|
|
126
121
|
that will help you get started.
|
|
127
122
|
|
|
123
|
+
|
|
124
|
+
|
{swarmauri_middleware_bulkhead-0.8.0.dev45 → swarmauri_middleware_bulkhead-0.11.0.dev1}/README.md
RENAMED
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<a href="https://
|
|
5
|
-
<img src="https://
|
|
6
|
-
</a>
|
|
4
|
+
<a href="https://pepy.tech/project/swarmauri_middleware_bulkhead/">
|
|
5
|
+
<img src="https://static.pepy.tech/badge/swarmauri_middleware_bulkhead/month" alt="PyPI - Downloads"/></a>
|
|
7
6
|
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_middleware_bulkhead/">
|
|
8
|
-
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_middleware_bulkhead.svg"
|
|
9
|
-
</a>
|
|
7
|
+
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_middleware_bulkhead.svg"/></a>
|
|
10
8
|
<a href="https://pypi.org/project/swarmauri_middleware_bulkhead/">
|
|
11
|
-
<img src="https://img.shields.io/
|
|
12
|
-
</a>
|
|
9
|
+
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
|
|
13
10
|
<a href="https://pypi.org/project/swarmauri_middleware_bulkhead/">
|
|
14
|
-
<img src="https://img.shields.io/pypi/l/swarmauri_middleware_bulkhead" alt="PyPI - License"
|
|
15
|
-
</a>
|
|
11
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_middleware_bulkhead" alt="PyPI - License"/></a>
|
|
16
12
|
<a href="https://pypi.org/project/swarmauri_middleware_bulkhead/">
|
|
17
|
-
<img src="https://img.shields.io/pypi/v/swarmauri_middleware_bulkhead?label=swarmauri_middleware_bulkhead&color=green" alt="PyPI - swarmauri_middleware_bulkhead"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
---
|
|
13
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_middleware_bulkhead?label=swarmauri_middleware_bulkhead&color=green" alt="PyPI - swarmauri_middleware_bulkhead"/></a>
|
|
14
|
+
<a href="https://discord.gg/N4UpBuQv8T">
|
|
15
|
+
<img src="https://img.shields.io/badge/Discord-Join%20Chat-5865F2?logo=discord&logoColor=white" alt="Discord"/></a></p>
|
|
22
16
|
|
|
23
17
|
# Swarmauri Middleware Bulkhead
|
|
24
18
|
|
|
@@ -98,3 +92,5 @@ if __name__ == "__main__":
|
|
|
98
92
|
If you want to contribute to swarmauri-sdk, read up on our
|
|
99
93
|
[guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/CONTRIBUTING.md)
|
|
100
94
|
that will help you get started.
|
|
95
|
+
|
|
96
|
+
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_middleware_bulkhead"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.11.0.dev1"
|
|
4
4
|
description = "Bulkhead middleware implementation for Swarmauri"
|
|
5
5
|
license = "Apache-2.0"
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
repository = "http://github.com/swarmauri/swarmauri-sdk/pkgs/pkgs/swarmauri_middleware_bulkhead/"
|
|
8
|
-
requires-python = ">=3.10,<3.
|
|
8
|
+
requires-python = ">=3.10,<3.15"
|
|
9
9
|
classifiers = [
|
|
10
10
|
"License :: OSI Approved :: Apache Software License",
|
|
11
11
|
"Natural Language :: English",
|
|
12
|
+
"Development Status :: 3 - Alpha",
|
|
13
|
+
"Programming Language :: Python",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
12
16
|
"Programming Language :: Python :: 3.10",
|
|
13
17
|
"Programming Language :: Python :: 3.11",
|
|
14
18
|
"Programming Language :: Python :: 3.12",
|
|
15
19
|
"Programming Language :: Python :: 3.13",
|
|
16
|
-
"
|
|
17
|
-
"Programming Language :: Python",
|
|
18
|
-
"Programming Language :: Python :: 3",
|
|
19
|
-
"Programming Language :: Python :: 3 :: Only"
|
|
20
|
+
"Programming Language :: Python :: 3.14",
|
|
20
21
|
]
|
|
21
22
|
authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
|
|
22
23
|
dependencies = [
|
|
@@ -70,7 +71,7 @@ dev = [
|
|
|
70
71
|
"pytest-xdist>=3.6.1",
|
|
71
72
|
"pytest-json-report>=1.5.0",
|
|
72
73
|
"python-dotenv",
|
|
73
|
-
"
|
|
74
|
+
"httpx>=0.27",
|
|
74
75
|
"flake8>=7.0",
|
|
75
76
|
"pytest-timeout>=2.3.1",
|
|
76
77
|
"ruff>=0.9.9",
|
|
@@ -14,7 +14,8 @@ logger = getLogger(__name__)
|
|
|
14
14
|
class BulkheadMiddleware(MiddlewareBase):
|
|
15
15
|
"""Bulkhead middleware implementation to control concurrency isolation.
|
|
16
16
|
|
|
17
|
-
This middleware restricts the maximum number of concurrent requests to
|
|
17
|
+
This middleware restricts the maximum number of concurrent requests to
|
|
18
|
+
prevent
|
|
18
19
|
resource overload. It uses a semaphore to manage the concurrency level.
|
|
19
20
|
|
|
20
21
|
Attributes:
|
|
@@ -41,10 +42,13 @@ class BulkheadMiddleware(MiddlewareBase):
|
|
|
41
42
|
async def dispatch(
|
|
42
43
|
self, request: Request, call_next: Callable[[Request], Any]
|
|
43
44
|
) -> Any:
|
|
44
|
-
"""
|
|
45
|
+
"""
|
|
46
|
+
Dispatches the request while controlling concurrency using a semaphore.
|
|
45
47
|
|
|
46
|
-
This method uses a semaphore to limit the number of concurrent
|
|
47
|
-
|
|
48
|
+
This method uses a semaphore to limit the number of concurrent
|
|
49
|
+
requests.
|
|
50
|
+
If the maximum concurrency is reached, the request will wait until a
|
|
51
|
+
slot
|
|
48
52
|
becomes available.
|
|
49
53
|
|
|
50
54
|
Args:
|
{swarmauri_middleware_bulkhead-0.8.0.dev45 → swarmauri_middleware_bulkhead-0.11.0.dev1}/LICENSE
RENAMED
|
File without changes
|