hexkit 9.0.1__tar.gz → 9.0.3__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-9.0.1/src/hexkit.egg-info → hexkit-9.0.3}/PKG-INFO +8 -9
- {hexkit-9.0.1 → hexkit-9.0.3}/README.md +4 -4
- {hexkit-9.0.1 → hexkit-9.0.3}/pyproject.toml +4 -41
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/akafka/testutils.py +44 -0
- {hexkit-9.0.1 → hexkit-9.0.3/src/hexkit.egg-info}/PKG-INFO +8 -9
- {hexkit-9.0.1 → hexkit-9.0.3}/LICENSE +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/MANIFEST.in +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/setup.cfg +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/__main__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/base.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/config.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/correlation.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/custom_types.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/log.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/opentelemetry/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/opentelemetry/instrumentation.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/opentelemetry/testutils.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/protocols/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/protocols/dao.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/protocols/daopub.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/protocols/daosub.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/protocols/eventpub.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/protocols/eventsub.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/protocols/kvstore.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/protocols/objstorage.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/akafka/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/akafka/config.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/akafka/provider/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/akafka/provider/daosub.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/akafka/provider/eventpub.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/akafka/provider/eventsub.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/akafka/provider/utils.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/akafka/testcontainer.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongodb/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongodb/config.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongodb/migrations/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongodb/migrations/_manager.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongodb/migrations/_utils.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongodb/migrations/helpers.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongodb/provider/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongodb/provider/client.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongodb/provider/dao.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongodb/provider/kvstore.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongodb/provider/utils.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongodb/testutils.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongokafka/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongokafka/config.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongokafka/provider/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongokafka/provider/daopub.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongokafka/provider/persistent_pub.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/mongokafka/testutils.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/redis/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/redis/config.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/redis/provider/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/redis/provider/client.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/redis/provider/kvstore.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/redis/testutils.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/config.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/provider/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/provider/kvstore.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/provider/objstorage.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/test_files/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/test_files/test_file1.yaml +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/test_files/test_file2.yaml +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/test_files/test_file3.yaml +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/test_files/test_file4.yaml +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/testutils/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/testutils/_fixtures.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/testutils/_typical_workflow.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/s3/testutils/_utils.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/testing/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/testing/dao.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/testing/eventpub.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/testing/kvstore.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/testing/objstorage.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/vault/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/vault/config.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/vault/provider/__init__.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/vault/provider/client.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/vault/provider/kvstore.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/providers/vault/testutils.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/py.typed +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit/utils.py +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit.egg-info/SOURCES.txt +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit.egg-info/dependency_links.txt +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit.egg-info/requires.txt +0 -0
- {hexkit-9.0.1 → hexkit-9.0.3}/src/hexkit.egg-info/top_level.txt +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hexkit
|
|
3
|
-
Version: 9.0.
|
|
3
|
+
Version: 9.0.3
|
|
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
|
-
License: Apache
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
7
|
Project-URL: Repository, https://github.com/ghga-de/ghga
|
|
8
|
-
Project-URL: Documentation, https://ghga-de.github.io/hexkit/
|
|
9
|
-
Project-URL: Release Notes, https://github.com/ghga-de/ghga/releases
|
|
8
|
+
Project-URL: Documentation, https://ghga-de.github.io/ghga/hexkit/
|
|
9
|
+
Project-URL: Release Notes, https://github.com/ghga-de/ghga/releases?q=hexkit
|
|
10
10
|
Project-URL: Issue Tracker, https://github.com/ghga-de/ghga/issues
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Operating System :: POSIX :: Linux
|
|
@@ -15,7 +15,6 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
19
18
|
Classifier: Topic :: Software Development :: Libraries
|
|
20
19
|
Classifier: Intended Audience :: Developers
|
|
21
20
|
Requires-Python: >=3.11
|
|
@@ -101,7 +100,7 @@ Dynamic: license-file
|
|
|
101
100
|
and event-driven microservices in Python*
|
|
102
101
|
|
|
103
102
|
Read the short summary below, or jump straight to our full
|
|
104
|
-
📖 **[User Guide](https://ghga-de.github.io/hexkit/user-guide/)** to learn the abstract
|
|
103
|
+
📖 **[User Guide](https://ghga-de.github.io/ghga/hexkit/user-guide/)** to learn the abstract
|
|
105
104
|
concepts and patterns as well as the concrete infrastructure integrations and testing
|
|
106
105
|
tools that hexkit provides for building better microservices.
|
|
107
106
|
|
|
@@ -129,7 +128,7 @@ to use. The only task that remains for an individual service is to implement
|
|
|
129
128
|
service-specific translators between the service's ports and the general-purpose
|
|
130
129
|
protocols (in addition to implementing the domain functionality of the service, of
|
|
131
130
|
course). For an in-depth introduction to the pattern, please read the
|
|
132
|
-
[Architectural Concepts](https://ghga-de.github.io/hexkit/user-guide/arch_concepts/)
|
|
131
|
+
[Architectural Concepts](https://ghga-de.github.io/ghga/hexkit/user-guide/arch_concepts/)
|
|
133
132
|
chapter of the User Guide.
|
|
134
133
|
|
|
135
134
|
The following protocols and providers are currently available:
|
|
@@ -153,9 +152,9 @@ designing REST APIs and an ORM like SQLAlchemy for interacting with databases.
|
|
|
153
152
|
|
|
154
153
|
## Getting Started
|
|
155
154
|
|
|
156
|
-
The 📖 [User Guide](https://ghga-de.github.io/hexkit/user-guide/) covers all
|
|
155
|
+
The 📖 [User Guide](https://ghga-de.github.io/ghga/hexkit/user-guide/) covers all
|
|
157
156
|
protocols, providers, testing utilities, and observability tools with example code,
|
|
158
|
-
and the [API Reference](https://ghga-de.github.io/hexkit/reference/) documents all
|
|
157
|
+
and the [API Reference](https://ghga-de.github.io/ghga/hexkit/reference/) documents all
|
|
159
158
|
public classes and functions.
|
|
160
159
|
|
|
161
160
|
For a complete example service built with hexkit, have a look at the
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
and event-driven microservices in Python*
|
|
10
10
|
|
|
11
11
|
Read the short summary below, or jump straight to our full
|
|
12
|
-
📖 **[User Guide](https://ghga-de.github.io/hexkit/user-guide/)** to learn the abstract
|
|
12
|
+
📖 **[User Guide](https://ghga-de.github.io/ghga/hexkit/user-guide/)** to learn the abstract
|
|
13
13
|
concepts and patterns as well as the concrete infrastructure integrations and testing
|
|
14
14
|
tools that hexkit provides for building better microservices.
|
|
15
15
|
|
|
@@ -37,7 +37,7 @@ to use. The only task that remains for an individual service is to implement
|
|
|
37
37
|
service-specific translators between the service's ports and the general-purpose
|
|
38
38
|
protocols (in addition to implementing the domain functionality of the service, of
|
|
39
39
|
course). For an in-depth introduction to the pattern, please read the
|
|
40
|
-
[Architectural Concepts](https://ghga-de.github.io/hexkit/user-guide/arch_concepts/)
|
|
40
|
+
[Architectural Concepts](https://ghga-de.github.io/ghga/hexkit/user-guide/arch_concepts/)
|
|
41
41
|
chapter of the User Guide.
|
|
42
42
|
|
|
43
43
|
The following protocols and providers are currently available:
|
|
@@ -61,9 +61,9 @@ designing REST APIs and an ORM like SQLAlchemy for interacting with databases.
|
|
|
61
61
|
|
|
62
62
|
## Getting Started
|
|
63
63
|
|
|
64
|
-
The 📖 [User Guide](https://ghga-de.github.io/hexkit/user-guide/) covers all
|
|
64
|
+
The 📖 [User Guide](https://ghga-de.github.io/ghga/hexkit/user-guide/) covers all
|
|
65
65
|
protocols, providers, testing utilities, and observability tools with example code,
|
|
66
|
-
and the [API Reference](https://ghga-de.github.io/hexkit/reference/) documents all
|
|
66
|
+
and the [API Reference](https://ghga-de.github.io/ghga/hexkit/reference/) documents all
|
|
67
67
|
public classes and functions.
|
|
68
68
|
|
|
69
69
|
For a complete example service built with hexkit, have a look at the
|
|
@@ -18,14 +18,14 @@ classifiers = [
|
|
|
18
18
|
"Programming Language :: Python :: 3.12",
|
|
19
19
|
"Programming Language :: Python :: 3.13",
|
|
20
20
|
"Programming Language :: Python :: 3.14",
|
|
21
|
-
"License :: OSI Approved :: Apache Software License",
|
|
22
21
|
"Topic :: Software Development :: Libraries",
|
|
23
22
|
"Intended Audience :: Developers",
|
|
24
23
|
]
|
|
25
24
|
name = "hexkit"
|
|
26
25
|
# 9.0.2 is spent on TestPyPI: a pypi-publish.yaml rehearsal uploaded it there.
|
|
27
|
-
version = "9.0.
|
|
26
|
+
version = "9.0.3"
|
|
28
27
|
description = "A Toolkit for Building Microservices using the Hexagonal Architecture"
|
|
28
|
+
license = "Apache-2.0"
|
|
29
29
|
dependencies = [
|
|
30
30
|
"opentelemetry-api >=1.44, <2",
|
|
31
31
|
"pydantic >=2.12, <3",
|
|
@@ -33,9 +33,6 @@ dependencies = [
|
|
|
33
33
|
"PyYAML >=6, <7",
|
|
34
34
|
]
|
|
35
35
|
|
|
36
|
-
[project.license]
|
|
37
|
-
text = "Apache 2.0"
|
|
38
|
-
|
|
39
36
|
[project.optional-dependencies]
|
|
40
37
|
akafka = [
|
|
41
38
|
"aiokafka[zstd,lz4,snappy]~=0.14.0",
|
|
@@ -122,8 +119,8 @@ all = [
|
|
|
122
119
|
|
|
123
120
|
[project.urls]
|
|
124
121
|
Repository = "https://github.com/ghga-de/ghga"
|
|
125
|
-
Documentation = "https://ghga-de.github.io/hexkit/"
|
|
126
|
-
"Release Notes" = "https://github.com/ghga-de/ghga/releases"
|
|
122
|
+
Documentation = "https://ghga-de.github.io/ghga/hexkit/"
|
|
123
|
+
"Release Notes" = "https://github.com/ghga-de/ghga/releases?q=hexkit"
|
|
127
124
|
"Issue Tracker" = "https://github.com/ghga-de/ghga/issues"
|
|
128
125
|
|
|
129
126
|
[tool.setuptools.packages.find]
|
|
@@ -142,37 +139,3 @@ source = [
|
|
|
142
139
|
"/workspace/src",
|
|
143
140
|
"**/lib/python*/site-packages",
|
|
144
141
|
]
|
|
145
|
-
|
|
146
|
-
[tool.tox]
|
|
147
|
-
legacy_tox_ini = """
|
|
148
|
-
[tox]
|
|
149
|
-
env_list = py3{10,11,12,13}, docs
|
|
150
|
-
|
|
151
|
-
[gh-actions]
|
|
152
|
-
python =
|
|
153
|
-
3.10: py310
|
|
154
|
-
3.11: py311
|
|
155
|
-
3.12: py312
|
|
156
|
-
3.13: py313
|
|
157
|
-
|
|
158
|
-
[testenv:docs]
|
|
159
|
-
basepython = python3.13
|
|
160
|
-
deps =
|
|
161
|
-
--no-deps -r ./lock/requirements-dev.txt
|
|
162
|
-
commands_pre =
|
|
163
|
-
# great-docs (Python >= 3.11 only) is kept out of the shared dev lock so it
|
|
164
|
-
# does not break the py310 test env; install it here where docs are built.
|
|
165
|
-
pip install great-docs==0.14.1
|
|
166
|
-
commands =
|
|
167
|
-
great-docs build
|
|
168
|
-
|
|
169
|
-
[testenv]
|
|
170
|
-
pass_env =
|
|
171
|
-
TC_HOST
|
|
172
|
-
DOCKER_HOST
|
|
173
|
-
deps =
|
|
174
|
-
--no-deps -r ./lock/requirements-dev.txt
|
|
175
|
-
commands =
|
|
176
|
-
py310: pip install --no-deps backports.asyncio.runner==1.2.0 exceptiongroup==1.3.1 tomli==2.2.1
|
|
177
|
-
pytest {posargs}
|
|
178
|
-
"""
|
|
@@ -39,6 +39,7 @@ import pytest
|
|
|
39
39
|
import pytest_asyncio
|
|
40
40
|
from aiokafka import AIOKafkaConsumer, TopicPartition
|
|
41
41
|
from aiokafka.admin import AIOKafkaAdminClient, RecordsToDelete
|
|
42
|
+
from aiokafka.errors import KafkaError
|
|
42
43
|
from pydantic import UUID4
|
|
43
44
|
from testcontainers.kafka import KafkaContainer
|
|
44
45
|
|
|
@@ -620,6 +621,12 @@ class KafkaFixture:
|
|
|
620
621
|
)
|
|
621
622
|
|
|
622
623
|
|
|
624
|
+
# How long to wait for the broker to register itself, and how often to re-check while
|
|
625
|
+
# waiting. The timeout matches the container's own startup timeout.
|
|
626
|
+
BROKER_REGISTRATION_TIMEOUT = 30.0
|
|
627
|
+
BROKER_REGISTRATION_POLL_INTERVAL = 0.1
|
|
628
|
+
|
|
629
|
+
|
|
623
630
|
class KafkaContainerFixture(KafkaContainer):
|
|
624
631
|
"""Kafka test container with configuration and command execution."""
|
|
625
632
|
|
|
@@ -638,8 +645,45 @@ class KafkaContainerFixture(KafkaContainer):
|
|
|
638
645
|
service_instance_id="001",
|
|
639
646
|
kafka_servers=kafka_servers,
|
|
640
647
|
)
|
|
648
|
+
asyncio.run(self._wait_for_broker(kafka_servers))
|
|
641
649
|
return self
|
|
642
650
|
|
|
651
|
+
@staticmethod
|
|
652
|
+
async def _wait_for_broker(
|
|
653
|
+
kafka_servers: list[str], timeout: float = BROKER_REGISTRATION_TIMEOUT
|
|
654
|
+
) -> None:
|
|
655
|
+
"""Wait until the broker is registered in the cluster metadata.
|
|
656
|
+
|
|
657
|
+
The container reports itself ready on the "[KafkaServer id=N] started" log line,
|
|
658
|
+
which the server emits before it has registered with the KRaft controller. Until
|
|
659
|
+
it has, a metadata request is answered with an empty broker list and every admin
|
|
660
|
+
call raises NodeNotReadyError -- and the `kafka` fixture makes one (clear_topics)
|
|
661
|
+
as soon as the first test asks for it. Waiting the registration out here keeps a
|
|
662
|
+
container that is merely slow to start from failing whichever test happens to run
|
|
663
|
+
first.
|
|
664
|
+
|
|
665
|
+
Raises:
|
|
666
|
+
RuntimeError: if the broker is not registered before `timeout` elapses.
|
|
667
|
+
"""
|
|
668
|
+
loop = asyncio.get_running_loop()
|
|
669
|
+
deadline = loop.time() + timeout
|
|
670
|
+
while True:
|
|
671
|
+
admin_client = AIOKafkaAdminClient(bootstrap_servers=kafka_servers)
|
|
672
|
+
try:
|
|
673
|
+
await admin_client.start()
|
|
674
|
+
# the same call the `kafka` fixture makes first, so this waits for
|
|
675
|
+
# exactly the readiness the fixture goes on to rely on
|
|
676
|
+
await admin_client.list_topics()
|
|
677
|
+
return
|
|
678
|
+
except (KafkaError, OSError) as error:
|
|
679
|
+
if loop.time() >= deadline:
|
|
680
|
+
raise RuntimeError(
|
|
681
|
+
f"Kafka broker did not register within {timeout} seconds."
|
|
682
|
+
) from error
|
|
683
|
+
finally:
|
|
684
|
+
await admin_client.close()
|
|
685
|
+
await asyncio.sleep(BROKER_REGISTRATION_POLL_INTERVAL)
|
|
686
|
+
|
|
643
687
|
def wrapped_exec_run(self, command: str, run_in_shell: bool):
|
|
644
688
|
"""Run the given command in the kafka testcontainer.
|
|
645
689
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hexkit
|
|
3
|
-
Version: 9.0.
|
|
3
|
+
Version: 9.0.3
|
|
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
|
-
License: Apache
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
7
|
Project-URL: Repository, https://github.com/ghga-de/ghga
|
|
8
|
-
Project-URL: Documentation, https://ghga-de.github.io/hexkit/
|
|
9
|
-
Project-URL: Release Notes, https://github.com/ghga-de/ghga/releases
|
|
8
|
+
Project-URL: Documentation, https://ghga-de.github.io/ghga/hexkit/
|
|
9
|
+
Project-URL: Release Notes, https://github.com/ghga-de/ghga/releases?q=hexkit
|
|
10
10
|
Project-URL: Issue Tracker, https://github.com/ghga-de/ghga/issues
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Operating System :: POSIX :: Linux
|
|
@@ -15,7 +15,6 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
19
18
|
Classifier: Topic :: Software Development :: Libraries
|
|
20
19
|
Classifier: Intended Audience :: Developers
|
|
21
20
|
Requires-Python: >=3.11
|
|
@@ -101,7 +100,7 @@ Dynamic: license-file
|
|
|
101
100
|
and event-driven microservices in Python*
|
|
102
101
|
|
|
103
102
|
Read the short summary below, or jump straight to our full
|
|
104
|
-
📖 **[User Guide](https://ghga-de.github.io/hexkit/user-guide/)** to learn the abstract
|
|
103
|
+
📖 **[User Guide](https://ghga-de.github.io/ghga/hexkit/user-guide/)** to learn the abstract
|
|
105
104
|
concepts and patterns as well as the concrete infrastructure integrations and testing
|
|
106
105
|
tools that hexkit provides for building better microservices.
|
|
107
106
|
|
|
@@ -129,7 +128,7 @@ to use. The only task that remains for an individual service is to implement
|
|
|
129
128
|
service-specific translators between the service's ports and the general-purpose
|
|
130
129
|
protocols (in addition to implementing the domain functionality of the service, of
|
|
131
130
|
course). For an in-depth introduction to the pattern, please read the
|
|
132
|
-
[Architectural Concepts](https://ghga-de.github.io/hexkit/user-guide/arch_concepts/)
|
|
131
|
+
[Architectural Concepts](https://ghga-de.github.io/ghga/hexkit/user-guide/arch_concepts/)
|
|
133
132
|
chapter of the User Guide.
|
|
134
133
|
|
|
135
134
|
The following protocols and providers are currently available:
|
|
@@ -153,9 +152,9 @@ designing REST APIs and an ORM like SQLAlchemy for interacting with databases.
|
|
|
153
152
|
|
|
154
153
|
## Getting Started
|
|
155
154
|
|
|
156
|
-
The 📖 [User Guide](https://ghga-de.github.io/hexkit/user-guide/) covers all
|
|
155
|
+
The 📖 [User Guide](https://ghga-de.github.io/ghga/hexkit/user-guide/) covers all
|
|
157
156
|
protocols, providers, testing utilities, and observability tools with example code,
|
|
158
|
-
and the [API Reference](https://ghga-de.github.io/hexkit/reference/) documents all
|
|
157
|
+
and the [API Reference](https://ghga-de.github.io/ghga/hexkit/reference/) documents all
|
|
159
158
|
public classes and functions.
|
|
160
159
|
|
|
161
160
|
For a complete example service built with hexkit, have a look at the
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|