dirigent-block-http 0.20.0__tar.gz → 0.22.0__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.
- {dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/PKG-INFO +3 -3
- {dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/pyproject.toml +3 -3
- {dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/pyproject.toml.orig +3 -3
- {dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/src/dirigent_block_http/__init__.py +2 -0
- {dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/src/dirigent_block_http/connections.py +2 -2
- {dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/LICENSE +0 -0
- {dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/README.md +0 -0
- {dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/src/dirigent_block_http/http.py +0 -0
- {dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/src/dirigent_block_http/messages.py +0 -0
- {dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/src/dirigent_block_http/py.typed +0 -0
- {dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/src/dirigent_block_http/webhooks.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dirigent-block-http
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.22.0
|
|
4
4
|
Summary: The HTTP block family for dirigent: http.request, http.ready, webhook.post, and the http connection kind.
|
|
5
5
|
License-Expression: LicenseRef-Proprietary
|
|
6
6
|
License-File: LICENSE
|
|
7
7
|
Classifier: Programming Language :: Python :: 3
|
|
8
8
|
Classifier: Programming Language :: Python :: 3.13
|
|
9
|
-
Requires-Dist: dirigent-common==0.
|
|
10
|
-
Requires-Dist: dirigent-plugin==0.
|
|
9
|
+
Requires-Dist: dirigent-common==0.22.0
|
|
10
|
+
Requires-Dist: dirigent-plugin==0.22.0
|
|
11
11
|
Requires-Dist: httpx2>=2.12.0
|
|
12
12
|
Requires-Python: >=3.13
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dirigent-block-http"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.22.0"
|
|
4
4
|
description = "The HTTP block family for dirigent: http.request, http.ready, webhook.post, and the http connection kind."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.13"
|
|
@@ -11,8 +11,8 @@ classifiers = [
|
|
|
11
11
|
"Programming Language :: Python :: 3.13",
|
|
12
12
|
]
|
|
13
13
|
dependencies = [
|
|
14
|
-
"dirigent-common==0.
|
|
15
|
-
"dirigent-plugin==0.
|
|
14
|
+
"dirigent-common==0.22.0",
|
|
15
|
+
"dirigent-plugin==0.22.0",
|
|
16
16
|
"httpx2>=2.12.0",
|
|
17
17
|
]
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dirigent-block-http"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.22.0"
|
|
4
4
|
description = "The HTTP block family for dirigent: http.request, http.ready, webhook.post, and the http connection kind."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.13"
|
|
@@ -11,8 +11,8 @@ classifiers = [
|
|
|
11
11
|
"Programming Language :: Python :: 3.13",
|
|
12
12
|
]
|
|
13
13
|
dependencies = [
|
|
14
|
-
"dirigent-common==0.
|
|
15
|
-
"dirigent-plugin==0.
|
|
14
|
+
"dirigent-common==0.22.0",
|
|
15
|
+
"dirigent-plugin==0.22.0",
|
|
16
16
|
"httpx2>=2.12.0",
|
|
17
17
|
]
|
|
18
18
|
|
{dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/src/dirigent_block_http/__init__.py
RENAMED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from dirigent_block_http.connections import HttpConnectionKind
|
|
4
4
|
from dirigent_block_http.http import HttpReadySensor, HttpRequestOperator
|
|
5
|
+
from dirigent_block_http.messages import HTTP
|
|
5
6
|
from dirigent_block_http.webhooks import WebhookPostOperator
|
|
6
7
|
from dirigent_plugin import Contribution, extension
|
|
7
8
|
|
|
@@ -16,6 +17,7 @@ class HttpBlocks:
|
|
|
16
17
|
operators=[HttpRequestOperator(), WebhookPostOperator()],
|
|
17
18
|
sensors=[HttpReadySensor()],
|
|
18
19
|
connection_kinds=[HttpConnectionKind()],
|
|
20
|
+
labels=[HTTP],
|
|
19
21
|
)
|
|
20
22
|
|
|
21
23
|
|
{dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/src/dirigent_block_http/connections.py
RENAMED
|
@@ -10,7 +10,7 @@ from typing import ClassVar
|
|
|
10
10
|
import httpx2
|
|
11
11
|
from pydantic import BaseModel
|
|
12
12
|
|
|
13
|
-
from dirigent_common import HealthReport, HttpConnectionConfig, build_client
|
|
13
|
+
from dirigent_common import HealthReport, HttpConnectionConfig, build_client, raised_detail
|
|
14
14
|
from dirigent_plugin import ConnectionKind
|
|
15
15
|
|
|
16
16
|
|
|
@@ -27,7 +27,7 @@ class HttpConnectionKind(ConnectionKind):
|
|
|
27
27
|
async with build_client(settings) as client:
|
|
28
28
|
response = await client.get(settings.health_path)
|
|
29
29
|
except httpx2.HTTPError as error:
|
|
30
|
-
return HealthReport(healthy=False, detail=
|
|
30
|
+
return HealthReport(healthy=False, detail=raised_detail(error))
|
|
31
31
|
healthy = response.status_code < 500
|
|
32
32
|
return HealthReport(
|
|
33
33
|
healthy=healthy,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/src/dirigent_block_http/messages.py
RENAMED
|
File without changes
|
|
File without changes
|
{dirigent_block_http-0.20.0 → dirigent_block_http-0.22.0}/src/dirigent_block_http/webhooks.py
RENAMED
|
File without changes
|