hexkit 9.0.0__tar.gz → 9.0.1__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-9.0.0/src/hexkit.egg-info → hexkit-9.0.1}/PKG-INFO +20 -19
  2. {hexkit-9.0.0 → hexkit-9.0.1}/README.md +11 -11
  3. {hexkit-9.0.0 → hexkit-9.0.1}/pyproject.toml +10 -120
  4. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/akafka/testcontainer.py +1 -1
  5. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongodb/testutils.py +1 -1
  6. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/testutils/_typical_workflow.py +1 -1
  7. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/testutils/_utils.py +1 -1
  8. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/testing/dao.py +33 -1
  9. {hexkit-9.0.0 → hexkit-9.0.1/src/hexkit.egg-info}/PKG-INFO +20 -19
  10. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit.egg-info/requires.txt +2 -1
  11. {hexkit-9.0.0 → hexkit-9.0.1}/LICENSE +0 -0
  12. {hexkit-9.0.0 → hexkit-9.0.1}/MANIFEST.in +0 -0
  13. {hexkit-9.0.0 → hexkit-9.0.1}/setup.cfg +0 -0
  14. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/__init__.py +0 -0
  15. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/__main__.py +0 -0
  16. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/base.py +0 -0
  17. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/config.py +0 -0
  18. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/correlation.py +0 -0
  19. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/custom_types.py +0 -0
  20. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/log.py +0 -0
  21. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/opentelemetry/__init__.py +0 -0
  22. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/opentelemetry/instrumentation.py +0 -0
  23. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/opentelemetry/testutils.py +0 -0
  24. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/protocols/__init__.py +0 -0
  25. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/protocols/dao.py +0 -0
  26. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/protocols/daopub.py +0 -0
  27. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/protocols/daosub.py +0 -0
  28. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/protocols/eventpub.py +0 -0
  29. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/protocols/eventsub.py +0 -0
  30. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/protocols/kvstore.py +0 -0
  31. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/protocols/objstorage.py +0 -0
  32. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/__init__.py +0 -0
  33. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/akafka/__init__.py +0 -0
  34. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/akafka/config.py +0 -0
  35. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/akafka/provider/__init__.py +0 -0
  36. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/akafka/provider/daosub.py +0 -0
  37. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/akafka/provider/eventpub.py +0 -0
  38. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/akafka/provider/eventsub.py +0 -0
  39. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/akafka/provider/utils.py +0 -0
  40. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/akafka/testutils.py +0 -0
  41. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongodb/__init__.py +0 -0
  42. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongodb/config.py +0 -0
  43. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongodb/migrations/__init__.py +0 -0
  44. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongodb/migrations/_manager.py +0 -0
  45. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongodb/migrations/_utils.py +0 -0
  46. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongodb/migrations/helpers.py +0 -0
  47. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongodb/provider/__init__.py +0 -0
  48. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongodb/provider/client.py +0 -0
  49. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongodb/provider/dao.py +0 -0
  50. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongodb/provider/kvstore.py +0 -0
  51. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongodb/provider/utils.py +0 -0
  52. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongokafka/__init__.py +0 -0
  53. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongokafka/config.py +0 -0
  54. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongokafka/provider/__init__.py +0 -0
  55. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongokafka/provider/daopub.py +0 -0
  56. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongokafka/provider/persistent_pub.py +0 -0
  57. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/mongokafka/testutils.py +0 -0
  58. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/redis/__init__.py +0 -0
  59. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/redis/config.py +0 -0
  60. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/redis/provider/__init__.py +0 -0
  61. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/redis/provider/client.py +0 -0
  62. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/redis/provider/kvstore.py +0 -0
  63. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/redis/testutils.py +0 -0
  64. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/__init__.py +0 -0
  65. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/config.py +0 -0
  66. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/provider/__init__.py +0 -0
  67. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/provider/kvstore.py +0 -0
  68. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/provider/objstorage.py +0 -0
  69. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/test_files/__init__.py +0 -0
  70. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/test_files/test_file1.yaml +0 -0
  71. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/test_files/test_file2.yaml +0 -0
  72. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/test_files/test_file3.yaml +0 -0
  73. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/test_files/test_file4.yaml +0 -0
  74. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/testutils/__init__.py +0 -0
  75. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/s3/testutils/_fixtures.py +0 -0
  76. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/testing/__init__.py +0 -0
  77. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/testing/eventpub.py +0 -0
  78. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/testing/kvstore.py +0 -0
  79. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/testing/objstorage.py +0 -0
  80. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/vault/__init__.py +0 -0
  81. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/vault/config.py +0 -0
  82. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/vault/provider/__init__.py +0 -0
  83. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/vault/provider/client.py +0 -0
  84. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/vault/provider/kvstore.py +0 -0
  85. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/providers/vault/testutils.py +0 -0
  86. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/py.typed +0 -0
  87. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit/utils.py +0 -0
  88. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit.egg-info/SOURCES.txt +0 -0
  89. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit.egg-info/dependency_links.txt +0 -0
  90. {hexkit-9.0.0 → hexkit-9.0.1}/src/hexkit.egg-info/top_level.txt +0 -0
@@ -1,24 +1,24 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hexkit
3
- Version: 9.0.0
3
+ Version: 9.0.1
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
7
- Project-URL: Repository, https://github.com/ghga-de/hexkit
7
+ Project-URL: Repository, https://github.com/ghga-de/ghga
8
8
  Project-URL: Documentation, https://ghga-de.github.io/hexkit/
9
- Project-URL: Release Notes, https://github.com/ghga-de/hexkit/releases
10
- Project-URL: Issue Tracker, https://github.com/ghga-de/hexkit/issues
9
+ Project-URL: Release Notes, https://github.com/ghga-de/ghga/releases
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
13
- Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
17
18
  Classifier: License :: OSI Approved :: Apache Software License
18
- Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
19
19
  Classifier: Topic :: Software Development :: Libraries
20
20
  Classifier: Intended Audience :: Developers
21
- Requires-Python: >=3.10
21
+ Requires-Python: >=3.11
22
22
  Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
24
  Requires-Dist: opentelemetry-api<2,>=1.44
@@ -72,10 +72,11 @@ Requires-Dist: hexkit[akafka]; extra == "test-akafka"
72
72
  Requires-Dist: testcontainers[kafka]<5,>=4.14; extra == "test-akafka"
73
73
  Provides-Extra: test-s3
74
74
  Requires-Dist: hexkit[s3]; extra == "test-s3"
75
+ Requires-Dist: httpx2<3,>=2.9.1; extra == "test-s3"
75
76
  Requires-Dist: testcontainers<5,>=4.14; extra == "test-s3"
76
77
  Provides-Extra: test-mongodb
77
78
  Requires-Dist: hexkit[mongodb]; extra == "test-mongodb"
78
- Requires-Dist: testcontainers[mongo]<5,>=4.14; extra == "test-mongodb"
79
+ Requires-Dist: testcontainers[mongodb]<5,>=4.14; extra == "test-mongodb"
79
80
  Provides-Extra: test-redis
80
81
  Requires-Dist: hexkit[redis]; extra == "test-redis"
81
82
  Requires-Dist: testcontainers[redis]<5,>=4.14; extra == "test-redis"
@@ -89,10 +90,8 @@ Requires-Dist: hexkit[test]; extra == "all"
89
90
  Requires-Dist: hexkit[opentelemetry]; extra == "all"
90
91
  Dynamic: license-file
91
92
 
92
- [![PyPI version shields.io](https://img.shields.io/pypi/v/hexkit.svg)](https://pypi.python.org/pypi/hexkit/)
93
- [![PyPI pyversions](https://img.shields.io/pypi/pyversions/hexkit.svg)](https://pypi.python.org/pypi/hexkit/)
94
- ![tests](https://github.com/ghga-de/hexkit/actions/workflows/tests.yaml/badge.svg)
95
- [![Coverage Status](https://coveralls.io/repos/github/ghga-de/hexkit/badge.svg?branch=main)](https://coveralls.io/github/ghga-de/hexkit?branch=main)
93
+ [![PyPI version shields.io](https://img.shields.io/pypi/v/hexkit.svg)](https://pypi.org/project/hexkit/)
94
+ [![PyPI pyversions](https://img.shields.io/pypi/pyversions/hexkit.svg)](https://pypi.org/project/hexkit/)
96
95
  [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
97
96
  [![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
98
97
 
@@ -160,12 +159,12 @@ and the [API Reference](https://ghga-de.github.io/hexkit/reference/) documents a
160
159
  public classes and functions.
161
160
 
162
161
  For a complete example service built with hexkit, have a look at the
163
- [stream_calc](https://github.com/ghga-de/hexkit/tree/main/examples/stream_calc)
162
+ [stream_calc](https://github.com/ghga-de/ghga/tree/main/libs/hexkit/examples/stream_calc)
164
163
  example application. We also put a lot of effort into making the code
165
164
  self-documenting: you can find the protocols being defined at
166
- [src/hexkit/protocols](https://github.com/ghga-de/hexkit/tree/main/src/hexkit/protocols)
165
+ [src/hexkit/protocols](https://github.com/ghga-de/ghga/tree/main/libs/hexkit/src/hexkit/protocols)
167
166
  and the providers being implemented at
168
- [src/hexkit/providers](https://github.com/ghga-de/hexkit/tree/main/src/hexkit/providers).
167
+ [src/hexkit/providers](https://github.com/ghga-de/ghga/tree/main/libs/hexkit/src/hexkit/providers).
169
168
 
170
169
  ## Installation
171
170
 
@@ -193,8 +192,10 @@ The following extras are available:
193
192
 
194
193
  ## Contributing
195
194
 
196
- Contributions are welcome! Please see the
197
- [contribution guide](https://github.com/ghga-de/hexkit/blob/main/CONTRIBUTING.md)
195
+ Contributions are welcome! hexkit is developed in the
196
+ [GHGA monorepo](https://github.com/ghga-de/ghga) under `libs/hexkit`, together with the
197
+ services that build on it. Please see the
198
+ [contribution guide](https://github.com/ghga-de/ghga/blob/main/libs/hexkit/CONTRIBUTING.md)
198
199
  for how to set up the development environment and build the documentation locally.
199
200
 
200
201
  ## Credits
@@ -205,5 +206,5 @@ library and designed and coded its first versions.
205
206
 
206
207
  ## License
207
208
 
208
- This repository is free to use and modify according to the
209
- [Apache 2.0 License](https://github.com/ghga-de/hexkit/blob/main/LICENSE).
209
+ hexkit is free to use and modify according to the
210
+ [Apache 2.0 License](https://github.com/ghga-de/ghga/blob/main/libs/hexkit/LICENSE).
@@ -1,7 +1,5 @@
1
- [![PyPI version shields.io](https://img.shields.io/pypi/v/hexkit.svg)](https://pypi.python.org/pypi/hexkit/)
2
- [![PyPI pyversions](https://img.shields.io/pypi/pyversions/hexkit.svg)](https://pypi.python.org/pypi/hexkit/)
3
- ![tests](https://github.com/ghga-de/hexkit/actions/workflows/tests.yaml/badge.svg)
4
- [![Coverage Status](https://coveralls.io/repos/github/ghga-de/hexkit/badge.svg?branch=main)](https://coveralls.io/github/ghga-de/hexkit?branch=main)
1
+ [![PyPI version shields.io](https://img.shields.io/pypi/v/hexkit.svg)](https://pypi.org/project/hexkit/)
2
+ [![PyPI pyversions](https://img.shields.io/pypi/pyversions/hexkit.svg)](https://pypi.org/project/hexkit/)
5
3
  [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
6
4
  [![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
7
5
 
@@ -69,12 +67,12 @@ and the [API Reference](https://ghga-de.github.io/hexkit/reference/) documents a
69
67
  public classes and functions.
70
68
 
71
69
  For a complete example service built with hexkit, have a look at the
72
- [stream_calc](https://github.com/ghga-de/hexkit/tree/main/examples/stream_calc)
70
+ [stream_calc](https://github.com/ghga-de/ghga/tree/main/libs/hexkit/examples/stream_calc)
73
71
  example application. We also put a lot of effort into making the code
74
72
  self-documenting: you can find the protocols being defined at
75
- [src/hexkit/protocols](https://github.com/ghga-de/hexkit/tree/main/src/hexkit/protocols)
73
+ [src/hexkit/protocols](https://github.com/ghga-de/ghga/tree/main/libs/hexkit/src/hexkit/protocols)
76
74
  and the providers being implemented at
77
- [src/hexkit/providers](https://github.com/ghga-de/hexkit/tree/main/src/hexkit/providers).
75
+ [src/hexkit/providers](https://github.com/ghga-de/ghga/tree/main/libs/hexkit/src/hexkit/providers).
78
76
 
79
77
  ## Installation
80
78
 
@@ -102,8 +100,10 @@ The following extras are available:
102
100
 
103
101
  ## Contributing
104
102
 
105
- Contributions are welcome! Please see the
106
- [contribution guide](https://github.com/ghga-de/hexkit/blob/main/CONTRIBUTING.md)
103
+ Contributions are welcome! hexkit is developed in the
104
+ [GHGA monorepo](https://github.com/ghga-de/ghga) under `libs/hexkit`, together with the
105
+ services that build on it. Please see the
106
+ [contribution guide](https://github.com/ghga-de/ghga/blob/main/libs/hexkit/CONTRIBUTING.md)
107
107
  for how to set up the development environment and build the documentation locally.
108
108
 
109
109
  ## Credits
@@ -114,5 +114,5 @@ library and designed and coded its first versions.
114
114
 
115
115
  ## License
116
116
 
117
- This repository is free to use and modify according to the
118
- [Apache 2.0 License](https://github.com/ghga-de/hexkit/blob/main/LICENSE).
117
+ hexkit is free to use and modify according to the
118
+ [Apache 2.0 License](https://github.com/ghga-de/ghga/blob/main/libs/hexkit/LICENSE).
@@ -9,21 +9,22 @@ readme = "README.md"
9
9
  authors = [
10
10
  { name = "German Human Genome Phenome Archive (GHGA)", email = "contact@ghga.de" },
11
11
  ]
12
- requires-python = ">=3.10"
12
+ requires-python = ">=3.11"
13
13
  classifiers = [
14
14
  "Development Status :: 5 - Production/Stable",
15
15
  "Operating System :: POSIX :: Linux",
16
- "Programming Language :: Python :: 3.10",
16
+ "Programming Language :: Python :: 3",
17
17
  "Programming Language :: Python :: 3.11",
18
18
  "Programming Language :: Python :: 3.12",
19
19
  "Programming Language :: Python :: 3.13",
20
+ "Programming Language :: Python :: 3.14",
20
21
  "License :: OSI Approved :: Apache Software License",
21
- "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
22
22
  "Topic :: Software Development :: Libraries",
23
23
  "Intended Audience :: Developers",
24
24
  ]
25
25
  name = "hexkit"
26
- version = "9.0.0"
26
+ # 9.0.2 is spent on TestPyPI: a pypi-publish.yaml rehearsal uploaded it there.
27
+ version = "9.0.1"
27
28
  description = "A Toolkit for Building Microservices using the Hexagonal Architecture"
28
29
  dependencies = [
29
30
  "opentelemetry-api >=1.44, <2",
@@ -96,11 +97,12 @@ test-akafka = [
96
97
  ]
97
98
  test-s3 = [
98
99
  "hexkit[s3]",
100
+ "httpx2 >=2.9.1, <3",
99
101
  "testcontainers >=4.14, <5",
100
102
  ]
101
103
  test-mongodb = [
102
104
  "hexkit[mongodb]",
103
- "testcontainers[mongo] >=4.14, <5",
105
+ "testcontainers[mongodb] >=4.14, <5",
104
106
  ]
105
107
  test-redis = [
106
108
  "hexkit[redis]",
@@ -119,128 +121,16 @@ all = [
119
121
  ]
120
122
 
121
123
  [project.urls]
122
- Repository = "https://github.com/ghga-de/hexkit"
124
+ Repository = "https://github.com/ghga-de/ghga"
123
125
  Documentation = "https://ghga-de.github.io/hexkit/"
124
- "Release Notes" = "https://github.com/ghga-de/hexkit/releases"
125
- "Issue Tracker" = "https://github.com/ghga-de/hexkit/issues"
126
+ "Release Notes" = "https://github.com/ghga-de/ghga/releases"
127
+ "Issue Tracker" = "https://github.com/ghga-de/ghga/issues"
126
128
 
127
129
  [tool.setuptools.packages.find]
128
130
  where = [
129
131
  "src",
130
132
  ]
131
133
 
132
- [tool.ruff]
133
- exclude = [
134
- ".git",
135
- ".devcontainer",
136
- "__pycache__",
137
- "build",
138
- "dist",
139
- ]
140
- line-length = 88
141
- src = [
142
- "src",
143
- "tests",
144
- "examples",
145
- "scripts",
146
- ]
147
- target-version = "py310"
148
-
149
- [tool.ruff.lint]
150
- fixable = [
151
- "UP",
152
- "I",
153
- "D",
154
- "RUF022",
155
- ]
156
- ignore = [
157
- "E111",
158
- "E114",
159
- "E116",
160
- "E117",
161
- "E501",
162
- "W191",
163
- "PLW",
164
- "RUF001",
165
- "RUF010",
166
- "RUF012",
167
- "N818",
168
- "B008",
169
- "PLR2004",
170
- "D205",
171
- "D400",
172
- "D401",
173
- "D107",
174
- "D206",
175
- "D300",
176
- "UP040",
177
- "PLC0206",
178
- ]
179
- select = [
180
- "C90",
181
- "F",
182
- "I",
183
- "S",
184
- "B",
185
- "N",
186
- "UP",
187
- "PL",
188
- "RUF",
189
- "SIM",
190
- "D",
191
- "E",
192
- "W",
193
- "ASYNC",
194
- "LOG",
195
- "PERF",
196
- "RET",
197
- "C4",
198
- ]
199
-
200
- [tool.ruff.lint.mccabe]
201
- max-complexity = 10
202
-
203
- [tool.ruff.lint.per-file-ignores]
204
- "scripts/*" = [
205
- "PL",
206
- "S",
207
- "SIM",
208
- "D",
209
- "E402",
210
- ]
211
- "tests/*" = [
212
- "S",
213
- "SIM",
214
- "PLR",
215
- "B011",
216
- ]
217
- ".devcontainer/*" = [
218
- "S",
219
- "SIM",
220
- "D",
221
- ]
222
- "examples/*" = [
223
- "S",
224
- "D",
225
- ]
226
- "__init__.py" = [
227
- "D",
228
- ]
229
-
230
- [tool.ruff.lint.pydocstyle]
231
- convention = "pep257"
232
-
233
- [tool.mypy]
234
- disable_error_code = "import"
235
- show_error_codes = true
236
- exclude = [
237
- "build/lib/",
238
- ]
239
- warn_redundant_casts = true
240
- warn_unused_ignores = true
241
- check_untyped_defs = true
242
- no_site_packages = false
243
-
244
134
  [tool.pytest.ini_options]
245
135
  minversion = "9.0"
246
136
  asyncio_mode = "strict"
@@ -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, PLR0917
37
+ def __init__( # noqa: C901, PLR0912, PLR0913
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(), # type: ignore
104
+ mongo_dsn=mongodb_container.get_connection_url(),
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, PLR0917
31
+ async def typical_workflow( # noqa: PLR0913
32
32
  storage_client: ObjectStorageProtocol,
33
33
  test_file_path: Path,
34
34
  test_file_md5: str,
@@ -14,7 +14,7 @@
14
14
  # limitations under the License.
15
15
  """Functionality to support S3-related testing"""
16
16
 
17
- # ruff: noqa: PLR0913, PLR0917
17
+ # ruff: noqa: PLR0913
18
18
 
19
19
  import asyncio
20
20
  import hashlib
@@ -173,6 +173,31 @@ class ComparisonPredicate(Predicate):
173
173
  return self._fn(value, self._target_value)
174
174
 
175
175
 
176
+ class ConjunctionPredicate(Predicate):
177
+ """A Predicate that is satisfied only if all of its sub-predicates are satisfied.
178
+
179
+ Represents a single branch of a logical operator that contains multiple
180
+ conditions, which MongoDB treats as an implicit $and.
181
+ """
182
+
183
+ def __init__(self, *, conditions: list[Predicate]):
184
+ """Initialize the predicate with the list of sub-predicates to AND together."""
185
+ self._conditions = conditions
186
+
187
+ def __repr__(self) -> str:
188
+ return f"{self.__class__.__name__}(conditions={self._conditions})"
189
+
190
+ def __eq__(self, other) -> bool:
191
+ """Two ConjunctionPredicates are equivalent if all conditions are equivalent."""
192
+ return (
193
+ isinstance(other, ConjunctionPredicate)
194
+ and self._conditions == other._conditions
195
+ )
196
+
197
+ def evaluate(self, resource: dict[str, Any]) -> bool:
198
+ return all(condition.evaluate(resource) for condition in self._conditions)
199
+
200
+
176
201
  class LogicalPredicate(Predicate):
177
202
  """A Predicate that handles MQL logical operators"""
178
203
 
@@ -215,7 +240,14 @@ class LogicalPredicate(Predicate):
215
240
  if not isinstance(mapping, list) or len(mapping) == 0:
216
241
  raise MQLError(f"The {op} operator must be used with a non-empty list.")
217
242
  for condition in mapping:
218
- self._conditions.extend(build_predicates(mapping=condition))
243
+ branch_predicates = build_predicates(mapping=condition)
244
+ if len(branch_predicates) == 1:
245
+ self._conditions.extend(branch_predicates)
246
+ else:
247
+ # A branch with multiple conditions is an implicit $and
248
+ self._conditions.append(
249
+ ConjunctionPredicate(conditions=branch_predicates)
250
+ )
219
251
 
220
252
  def __repr__(self) -> str:
221
253
  return (
@@ -1,24 +1,24 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hexkit
3
- Version: 9.0.0
3
+ Version: 9.0.1
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
7
- Project-URL: Repository, https://github.com/ghga-de/hexkit
7
+ Project-URL: Repository, https://github.com/ghga-de/ghga
8
8
  Project-URL: Documentation, https://ghga-de.github.io/hexkit/
9
- Project-URL: Release Notes, https://github.com/ghga-de/hexkit/releases
10
- Project-URL: Issue Tracker, https://github.com/ghga-de/hexkit/issues
9
+ Project-URL: Release Notes, https://github.com/ghga-de/ghga/releases
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
13
- Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
17
18
  Classifier: License :: OSI Approved :: Apache Software License
18
- Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
19
19
  Classifier: Topic :: Software Development :: Libraries
20
20
  Classifier: Intended Audience :: Developers
21
- Requires-Python: >=3.10
21
+ Requires-Python: >=3.11
22
22
  Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
24
  Requires-Dist: opentelemetry-api<2,>=1.44
@@ -72,10 +72,11 @@ Requires-Dist: hexkit[akafka]; extra == "test-akafka"
72
72
  Requires-Dist: testcontainers[kafka]<5,>=4.14; extra == "test-akafka"
73
73
  Provides-Extra: test-s3
74
74
  Requires-Dist: hexkit[s3]; extra == "test-s3"
75
+ Requires-Dist: httpx2<3,>=2.9.1; extra == "test-s3"
75
76
  Requires-Dist: testcontainers<5,>=4.14; extra == "test-s3"
76
77
  Provides-Extra: test-mongodb
77
78
  Requires-Dist: hexkit[mongodb]; extra == "test-mongodb"
78
- Requires-Dist: testcontainers[mongo]<5,>=4.14; extra == "test-mongodb"
79
+ Requires-Dist: testcontainers[mongodb]<5,>=4.14; extra == "test-mongodb"
79
80
  Provides-Extra: test-redis
80
81
  Requires-Dist: hexkit[redis]; extra == "test-redis"
81
82
  Requires-Dist: testcontainers[redis]<5,>=4.14; extra == "test-redis"
@@ -89,10 +90,8 @@ Requires-Dist: hexkit[test]; extra == "all"
89
90
  Requires-Dist: hexkit[opentelemetry]; extra == "all"
90
91
  Dynamic: license-file
91
92
 
92
- [![PyPI version shields.io](https://img.shields.io/pypi/v/hexkit.svg)](https://pypi.python.org/pypi/hexkit/)
93
- [![PyPI pyversions](https://img.shields.io/pypi/pyversions/hexkit.svg)](https://pypi.python.org/pypi/hexkit/)
94
- ![tests](https://github.com/ghga-de/hexkit/actions/workflows/tests.yaml/badge.svg)
95
- [![Coverage Status](https://coveralls.io/repos/github/ghga-de/hexkit/badge.svg?branch=main)](https://coveralls.io/github/ghga-de/hexkit?branch=main)
93
+ [![PyPI version shields.io](https://img.shields.io/pypi/v/hexkit.svg)](https://pypi.org/project/hexkit/)
94
+ [![PyPI pyversions](https://img.shields.io/pypi/pyversions/hexkit.svg)](https://pypi.org/project/hexkit/)
96
95
  [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
97
96
  [![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
98
97
 
@@ -160,12 +159,12 @@ and the [API Reference](https://ghga-de.github.io/hexkit/reference/) documents a
160
159
  public classes and functions.
161
160
 
162
161
  For a complete example service built with hexkit, have a look at the
163
- [stream_calc](https://github.com/ghga-de/hexkit/tree/main/examples/stream_calc)
162
+ [stream_calc](https://github.com/ghga-de/ghga/tree/main/libs/hexkit/examples/stream_calc)
164
163
  example application. We also put a lot of effort into making the code
165
164
  self-documenting: you can find the protocols being defined at
166
- [src/hexkit/protocols](https://github.com/ghga-de/hexkit/tree/main/src/hexkit/protocols)
165
+ [src/hexkit/protocols](https://github.com/ghga-de/ghga/tree/main/libs/hexkit/src/hexkit/protocols)
167
166
  and the providers being implemented at
168
- [src/hexkit/providers](https://github.com/ghga-de/hexkit/tree/main/src/hexkit/providers).
167
+ [src/hexkit/providers](https://github.com/ghga-de/ghga/tree/main/libs/hexkit/src/hexkit/providers).
169
168
 
170
169
  ## Installation
171
170
 
@@ -193,8 +192,10 @@ The following extras are available:
193
192
 
194
193
  ## Contributing
195
194
 
196
- Contributions are welcome! Please see the
197
- [contribution guide](https://github.com/ghga-de/hexkit/blob/main/CONTRIBUTING.md)
195
+ Contributions are welcome! hexkit is developed in the
196
+ [GHGA monorepo](https://github.com/ghga-de/ghga) under `libs/hexkit`, together with the
197
+ services that build on it. Please see the
198
+ [contribution guide](https://github.com/ghga-de/ghga/blob/main/libs/hexkit/CONTRIBUTING.md)
198
199
  for how to set up the development environment and build the documentation locally.
199
200
 
200
201
  ## Credits
@@ -205,5 +206,5 @@ library and designed and coded its first versions.
205
206
 
206
207
  ## License
207
208
 
208
- This repository is free to use and modify according to the
209
- [Apache 2.0 License](https://github.com/ghga-de/hexkit/blob/main/LICENSE).
209
+ hexkit is free to use and modify according to the
210
+ [Apache 2.0 License](https://github.com/ghga-de/ghga/blob/main/libs/hexkit/LICENSE).
@@ -67,7 +67,7 @@ testcontainers[kafka]<5,>=4.14
67
67
 
68
68
  [test-mongodb]
69
69
  hexkit[mongodb]
70
- testcontainers[mongo]<5,>=4.14
70
+ testcontainers[mongodb]<5,>=4.14
71
71
 
72
72
  [test-redis]
73
73
  hexkit[redis]
@@ -75,6 +75,7 @@ testcontainers[redis]<5,>=4.14
75
75
 
76
76
  [test-s3]
77
77
  hexkit[s3]
78
+ httpx2<3,>=2.9.1
78
79
  testcontainers<5,>=4.14
79
80
 
80
81
  [test-vault]
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