Skip to content

Commit 99d888f

Browse files
authored
Using async HTTPx client (#12)
1 parent 26e5d81 commit 99d888f

15 files changed

+956
-66
lines changed

.isort.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[settings]
2-
known_third_party = pytest,requests,testcontainers
2+
known_third_party = httpx,pytest,requests,testcontainers
Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,39 @@
11
# SPDX-License-Identifier: Apache License 2.0
2-
# Copyright 2021 John Mille <john@ews-network.net>
2+
# Copyright 2024 John Mille <john@ews-network.net>
33

44
"""Top-level package for Kafka schema registry admin."""
55

6+
from __future__ import annotations
7+
68
__author__ = """JohnPreston"""
79
__email__ = "john@ews-network.net"
810
__version__ = "0.4.1"
911

10-
from .kafka_schema_registry_admin import CompatibilityMode, RegistryMode, SchemaRegistry
12+
from enum import Enum
13+
14+
15+
class RegistryMode(Enum):
16+
IMPORT = "IMPORT"
17+
READONLY = "READONLY"
18+
READWRITE = "READWRITE"
19+
20+
21+
class CompatibilityMode(Enum):
22+
BACKWARD = "BACKWARD"
23+
BACKWARD_TRANSITIVE = "BACKWARD_TRANSITIVE"
24+
FORWARD = "FORWARD"
25+
FORWARD_TRANSITIVE = "FORWARD_TRANSITIVE"
26+
FULL = "FULL"
27+
FULL_TRANSITIVE = "FULL_TRANSITIVE"
28+
NONE = "NONE"
29+
30+
31+
class Type(Enum):
32+
AVRO = "AVRO"
33+
JSON = "JSON"
34+
PROTOBUFF = "PROTOBUF"
35+
36+
37+
from .kafka_schema_registry_admin import SchemaRegistry
1138

12-
__all__ = ["SchemaRegistry", "RegistryMode", "CompatibilityMode"]
39+
__all__ = ["SchemaRegistry"]

0 commit comments

Comments
 (0)