dgkafka 1.0.0a3__tar.gz → 1.0.0a5__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.
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/PKG-INFO +2 -1
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka/config.py +5 -2
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka.egg-info/PKG-INFO +2 -1
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka.egg-info/requires.txt +1 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/pyproject.toml +2 -1
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/LICENSE +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/README.md +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka/__init__.py +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka/avro_consumer.py +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka/avro_producer.py +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka/consumer.py +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka/errors.py +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka/json_consumer.py +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka/producer.py +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka.egg-info/SOURCES.txt +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka.egg-info/dependency_links.txt +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka.egg-info/not-zip-safe +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/dgkafka.egg-info/top_level.txt +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/setup.cfg +0 -0
- {dgkafka-1.0.0a3 → dgkafka-1.0.0a5}/setup.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: dgkafka
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.0a5
|
4
4
|
Summary: Kafka clients
|
5
5
|
Home-page: https://gitlab.com/gng-group/dgkafka.git
|
6
6
|
Author: Malanris
|
@@ -23,6 +23,7 @@ Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
24
24
|
Requires-Dist: confluent-kafka>=2.1.1
|
25
25
|
Requires-Dist: dglog>=1.0.0
|
26
|
+
Requires-Dist: pydantic
|
26
27
|
Provides-Extra: avro
|
27
28
|
Requires-Dist: requests; extra == "avro"
|
28
29
|
Requires-Dist: fastavro<2; extra == "avro"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from typing import Literal, Optional
|
2
|
-
from pydantic import BaseModel, Field
|
2
|
+
from pydantic import BaseModel, Field, Json
|
3
3
|
|
4
4
|
|
5
5
|
class KafkaConfig(BaseModel):
|
@@ -20,8 +20,11 @@ class KafkaConfig(BaseModel):
|
|
20
20
|
alias="ssl.endpoint.identification.algorithm",
|
21
21
|
description="Endpoint identification algorithm")
|
22
22
|
|
23
|
+
def get(self) -> dict[str, Json]:
|
24
|
+
return self.model_dump(by_alias=True)
|
25
|
+
|
23
26
|
class Config:
|
24
|
-
|
27
|
+
validate_by_name = True
|
25
28
|
extra = "forbid"
|
26
29
|
|
27
30
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: dgkafka
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.0a5
|
4
4
|
Summary: Kafka clients
|
5
5
|
Home-page: https://gitlab.com/gng-group/dgkafka.git
|
6
6
|
Author: Malanris
|
@@ -23,6 +23,7 @@ Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
24
24
|
Requires-Dist: confluent-kafka>=2.1.1
|
25
25
|
Requires-Dist: dglog>=1.0.0
|
26
|
+
Requires-Dist: pydantic
|
26
27
|
Provides-Extra: avro
|
27
28
|
Requires-Dist: requests; extra == "avro"
|
28
29
|
Requires-Dist: fastavro<2; extra == "avro"
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "dgkafka"
|
7
|
-
version = "1.0.
|
7
|
+
version = "1.0.0a5"
|
8
8
|
authors = [
|
9
9
|
{name = "Roman Rasputin", email = "admin@roro.su"},
|
10
10
|
]
|
@@ -27,6 +27,7 @@ license = {text = "MIT License"}
|
|
27
27
|
dependencies = [
|
28
28
|
"confluent-kafka>=2.1.1",
|
29
29
|
"dglog>=1.0.0",
|
30
|
+
"pydantic"
|
30
31
|
]
|
31
32
|
|
32
33
|
[project.optional-dependencies]
|
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
|