hexkit 8.6.0__tar.gz → 9.0.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.
- {hexkit-8.6.0/src/hexkit.egg-info → hexkit-9.0.0}/PKG-INFO +1 -1
- {hexkit-8.6.0 → hexkit-9.0.0}/pyproject.toml +1 -1
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/opentelemetry/instrumentation.py +2 -1
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/testcontainer.py +1 -1
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/testutils.py +1 -1
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/testutils/_typical_workflow.py +1 -1
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/testutils/_utils.py +6 -6
- {hexkit-8.6.0 → hexkit-9.0.0/src/hexkit.egg-info}/PKG-INFO +1 -1
- {hexkit-8.6.0 → hexkit-9.0.0}/LICENSE +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/MANIFEST.in +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/README.md +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/setup.cfg +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/__main__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/base.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/config.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/correlation.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/custom_types.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/log.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/opentelemetry/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/opentelemetry/testutils.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/dao.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/daopub.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/daosub.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/eventpub.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/eventsub.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/kvstore.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/objstorage.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/config.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/provider/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/provider/daosub.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/provider/eventpub.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/provider/eventsub.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/provider/utils.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/testutils.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/config.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/migrations/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/migrations/_manager.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/migrations/_utils.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/migrations/helpers.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/provider/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/provider/client.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/provider/dao.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/provider/kvstore.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/provider/utils.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongokafka/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongokafka/config.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongokafka/provider/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongokafka/provider/daopub.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongokafka/provider/persistent_pub.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongokafka/testutils.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/redis/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/redis/config.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/redis/provider/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/redis/provider/client.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/redis/provider/kvstore.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/redis/testutils.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/config.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/provider/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/provider/kvstore.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/provider/objstorage.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/test_files/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/test_files/test_file1.yaml +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/test_files/test_file2.yaml +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/test_files/test_file3.yaml +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/test_files/test_file4.yaml +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/testutils/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/testutils/_fixtures.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/testing/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/testing/dao.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/testing/eventpub.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/testing/kvstore.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/testing/objstorage.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/vault/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/vault/config.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/vault/provider/__init__.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/vault/provider/client.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/vault/provider/kvstore.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/vault/testutils.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/py.typed +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/utils.py +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit.egg-info/SOURCES.txt +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit.egg-info/dependency_links.txt +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit.egg-info/requires.txt +0 -0
- {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit.egg-info/top_level.txt +0 -0
|
@@ -23,7 +23,7 @@ classifiers = [
|
|
|
23
23
|
"Intended Audience :: Developers",
|
|
24
24
|
]
|
|
25
25
|
name = "hexkit"
|
|
26
|
-
version = "
|
|
26
|
+
version = "9.0.0"
|
|
27
27
|
description = "A Toolkit for Building Microservices using the Hexagonal Architecture"
|
|
28
28
|
dependencies = [
|
|
29
29
|
"opentelemetry-api >=1.44, <2",
|
|
@@ -39,7 +39,7 @@ logger = logging.getLogger(__name__)
|
|
|
39
39
|
# Instrumentation modules corresponding to the `opentelemetry-*` optional extras.
|
|
40
40
|
# Each entry is only instrumented if its module is installed.
|
|
41
41
|
_INSTRUMENTOR_MODULES: tuple[tuple[str, str], ...] = (
|
|
42
|
-
("opentelemetry.instrumentation.httpx", "
|
|
42
|
+
("opentelemetry.instrumentation.httpx", "HTTPX2ClientInstrumentor"),
|
|
43
43
|
("opentelemetry.instrumentation.aiokafka", "AIOKafkaInstrumentor"),
|
|
44
44
|
("opentelemetry.instrumentation.pymongo", "PymongoInstrumentor"),
|
|
45
45
|
("opentelemetry.instrumentation.fastapi", "FastAPIInstrumentor"),
|
|
@@ -62,6 +62,7 @@ def instrument_installed_libraries() -> None:
|
|
|
62
62
|
logger.warning(
|
|
63
63
|
"Could not instrument '%s' for '%s'.", class_name, module_name
|
|
64
64
|
)
|
|
65
|
+
continue
|
|
65
66
|
instrumentor_class().instrument()
|
|
66
67
|
logger.info("Instrumented '%s' for '%s'.", class_name, module_name)
|
|
67
68
|
|
|
@@ -101,7 +101,7 @@ def _mongodb_container_fixture() -> Generator[MongoDbContainerFixture, None, Non
|
|
|
101
101
|
"""Fixture function for getting a running MongoDB test container."""
|
|
102
102
|
with MongoDbContainerFixture(image=MONGODB_IMAGE) as mongodb_container:
|
|
103
103
|
mongodb_config = MongoDbConfig(
|
|
104
|
-
mongo_dsn=mongodb_container.get_connection_url(),
|
|
104
|
+
mongo_dsn=mongodb_container.get_connection_url(), # type: ignore
|
|
105
105
|
db_name="test",
|
|
106
106
|
)
|
|
107
107
|
mongodb_container.mongodb_config = mongodb_config
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
"""Functionality to support S3-related testing"""
|
|
16
16
|
|
|
17
|
-
# ruff: noqa: PLR0913
|
|
17
|
+
# ruff: noqa: PLR0913, PLR0917
|
|
18
18
|
|
|
19
19
|
import asyncio
|
|
20
20
|
import hashlib
|
|
21
21
|
import os
|
|
22
22
|
from pathlib import Path
|
|
23
23
|
|
|
24
|
-
import
|
|
24
|
+
import httpx2
|
|
25
25
|
from pydantic import BaseModel, computed_field
|
|
26
26
|
|
|
27
27
|
from hexkit.protocols.objstorage import ObjectStorageProtocol, PresignedPostURL
|
|
@@ -109,7 +109,7 @@ def upload_file(presigned_url: PresignedPostURL, file_path: Path, file_md5: str)
|
|
|
109
109
|
with open(file_path, "rb") as test_file:
|
|
110
110
|
files = {"file": (str(file_path), test_file)}
|
|
111
111
|
headers = {"ContentMD5": file_md5}
|
|
112
|
-
response =
|
|
112
|
+
response = httpx2.post(
|
|
113
113
|
presigned_url.url,
|
|
114
114
|
data=presigned_url.fields,
|
|
115
115
|
files=files,
|
|
@@ -135,7 +135,7 @@ async def upload_part(
|
|
|
135
135
|
part_number=part_number,
|
|
136
136
|
)
|
|
137
137
|
response = await asyncio.to_thread(
|
|
138
|
-
|
|
138
|
+
httpx2.put, upload_url, content=content, timeout=TIMEOUT
|
|
139
139
|
)
|
|
140
140
|
response.raise_for_status()
|
|
141
141
|
|
|
@@ -166,7 +166,7 @@ async def upload_part_of_size(
|
|
|
166
166
|
def upload_part_via_url(*, url: str, size: int):
|
|
167
167
|
"""Upload a file part of given size using the given URL."""
|
|
168
168
|
content = b"\0" * size
|
|
169
|
-
response =
|
|
169
|
+
response = httpx2.put(url, content=content, timeout=TIMEOUT)
|
|
170
170
|
response.raise_for_status()
|
|
171
171
|
|
|
172
172
|
|
|
@@ -215,7 +215,7 @@ async def multipart_upload_file(
|
|
|
215
215
|
|
|
216
216
|
def download_and_check_test_file(presigned_url: str, expected_md5: str):
|
|
217
217
|
"""Download the test file from the specified URL and check its integrity (md5)."""
|
|
218
|
-
response =
|
|
218
|
+
response = httpx2.get(presigned_url, timeout=TIMEOUT)
|
|
219
219
|
response.raise_for_status()
|
|
220
220
|
|
|
221
221
|
observed_md5 = calc_md5(response.content)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|