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.
Files changed (90) hide show
  1. {hexkit-8.6.0/src/hexkit.egg-info → hexkit-9.0.0}/PKG-INFO +1 -1
  2. {hexkit-8.6.0 → hexkit-9.0.0}/pyproject.toml +1 -1
  3. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/opentelemetry/instrumentation.py +2 -1
  4. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/testcontainer.py +1 -1
  5. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/testutils.py +1 -1
  6. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/testutils/_typical_workflow.py +1 -1
  7. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/testutils/_utils.py +6 -6
  8. {hexkit-8.6.0 → hexkit-9.0.0/src/hexkit.egg-info}/PKG-INFO +1 -1
  9. {hexkit-8.6.0 → hexkit-9.0.0}/LICENSE +0 -0
  10. {hexkit-8.6.0 → hexkit-9.0.0}/MANIFEST.in +0 -0
  11. {hexkit-8.6.0 → hexkit-9.0.0}/README.md +0 -0
  12. {hexkit-8.6.0 → hexkit-9.0.0}/setup.cfg +0 -0
  13. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/__init__.py +0 -0
  14. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/__main__.py +0 -0
  15. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/base.py +0 -0
  16. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/config.py +0 -0
  17. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/correlation.py +0 -0
  18. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/custom_types.py +0 -0
  19. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/log.py +0 -0
  20. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/opentelemetry/__init__.py +0 -0
  21. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/opentelemetry/testutils.py +0 -0
  22. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/__init__.py +0 -0
  23. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/dao.py +0 -0
  24. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/daopub.py +0 -0
  25. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/daosub.py +0 -0
  26. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/eventpub.py +0 -0
  27. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/eventsub.py +0 -0
  28. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/kvstore.py +0 -0
  29. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/protocols/objstorage.py +0 -0
  30. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/__init__.py +0 -0
  31. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/__init__.py +0 -0
  32. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/config.py +0 -0
  33. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/provider/__init__.py +0 -0
  34. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/provider/daosub.py +0 -0
  35. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/provider/eventpub.py +0 -0
  36. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/provider/eventsub.py +0 -0
  37. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/provider/utils.py +0 -0
  38. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/akafka/testutils.py +0 -0
  39. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/__init__.py +0 -0
  40. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/config.py +0 -0
  41. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/migrations/__init__.py +0 -0
  42. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/migrations/_manager.py +0 -0
  43. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/migrations/_utils.py +0 -0
  44. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/migrations/helpers.py +0 -0
  45. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/provider/__init__.py +0 -0
  46. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/provider/client.py +0 -0
  47. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/provider/dao.py +0 -0
  48. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/provider/kvstore.py +0 -0
  49. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongodb/provider/utils.py +0 -0
  50. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongokafka/__init__.py +0 -0
  51. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongokafka/config.py +0 -0
  52. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongokafka/provider/__init__.py +0 -0
  53. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongokafka/provider/daopub.py +0 -0
  54. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongokafka/provider/persistent_pub.py +0 -0
  55. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/mongokafka/testutils.py +0 -0
  56. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/redis/__init__.py +0 -0
  57. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/redis/config.py +0 -0
  58. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/redis/provider/__init__.py +0 -0
  59. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/redis/provider/client.py +0 -0
  60. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/redis/provider/kvstore.py +0 -0
  61. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/redis/testutils.py +0 -0
  62. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/__init__.py +0 -0
  63. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/config.py +0 -0
  64. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/provider/__init__.py +0 -0
  65. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/provider/kvstore.py +0 -0
  66. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/provider/objstorage.py +0 -0
  67. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/test_files/__init__.py +0 -0
  68. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/test_files/test_file1.yaml +0 -0
  69. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/test_files/test_file2.yaml +0 -0
  70. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/test_files/test_file3.yaml +0 -0
  71. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/test_files/test_file4.yaml +0 -0
  72. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/testutils/__init__.py +0 -0
  73. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/s3/testutils/_fixtures.py +0 -0
  74. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/testing/__init__.py +0 -0
  75. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/testing/dao.py +0 -0
  76. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/testing/eventpub.py +0 -0
  77. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/testing/kvstore.py +0 -0
  78. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/testing/objstorage.py +0 -0
  79. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/vault/__init__.py +0 -0
  80. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/vault/config.py +0 -0
  81. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/vault/provider/__init__.py +0 -0
  82. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/vault/provider/client.py +0 -0
  83. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/vault/provider/kvstore.py +0 -0
  84. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/providers/vault/testutils.py +0 -0
  85. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/py.typed +0 -0
  86. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit/utils.py +0 -0
  87. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit.egg-info/SOURCES.txt +0 -0
  88. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit.egg-info/dependency_links.txt +0 -0
  89. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit.egg-info/requires.txt +0 -0
  90. {hexkit-8.6.0 → hexkit-9.0.0}/src/hexkit.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hexkit
3
- Version: 8.6.0
3
+ Version: 9.0.0
4
4
  Summary: A Toolkit for Building Microservices using the Hexagonal Architecture
5
5
  Author-email: "German Human Genome Phenome Archive (GHGA)" <contact@ghga.de>
6
6
  License: Apache 2.0
@@ -23,7 +23,7 @@ classifiers = [
23
23
  "Intended Audience :: Developers",
24
24
  ]
25
25
  name = "hexkit"
26
- version = "8.6.0"
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", "HTTPXClientInstrumentor"),
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
 
@@ -34,7 +34,7 @@ class KafkaSSLContainer(KafkaContainer):
34
34
 
35
35
  SECRETS_PATH = "/etc/kafka/secrets"
36
36
 
37
- def __init__( # noqa: C901, PLR0912, PLR0913
37
+ def __init__( # noqa: C901, PLR0912, PLR0913, PLR0917
38
38
  self,
39
39
  image: str = DEFAULT_IMAGE,
40
40
  port: int = DEFAULT_PORT,
@@ -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
@@ -28,7 +28,7 @@ from ._utils import (
28
28
  )
29
29
 
30
30
 
31
- async def typical_workflow( # noqa: PLR0913
31
+ async def typical_workflow( # noqa: PLR0913, PLR0917
32
32
  storage_client: ObjectStorageProtocol,
33
33
  test_file_path: Path,
34
34
  test_file_md5: str,
@@ -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 httpx
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 = httpx.post(
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
- httpx.put, upload_url, content=content, timeout=TIMEOUT
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 = httpx.put(url, content=content, timeout=TIMEOUT)
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 = httpx.get(presigned_url, timeout=TIMEOUT)
218
+ response = httpx2.get(presigned_url, timeout=TIMEOUT)
219
219
  response.raise_for_status()
220
220
 
221
221
  observed_md5 = calc_md5(response.content)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hexkit
3
- Version: 8.6.0
3
+ Version: 9.0.0
4
4
  Summary: A Toolkit for Building Microservices using the Hexagonal Architecture
5
5
  Author-email: "German Human Genome Phenome Archive (GHGA)" <contact@ghga.de>
6
6
  License: Apache 2.0
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