python-etcd3-async 0.1.4__py3-none-any.whl → 0.1.6__py3-none-any.whl
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.
- etcd3/__init__.py +28 -14
- etcd3/async_client.py +43 -1488
- etcd3/async_client_extensions.py +9 -12
- etcd3/async_config.py +97 -0
- etcd3/async_endpoint.py +2 -2
- etcd3/async_managers.py +37 -20
- etcd3/async_multi_client.py +1267 -0
- etcd3/async_single_client.py +133 -0
- etcd3/auth.py +690 -0
- etcd3/client.py +37 -2013
- etcd3/config.py +155 -0
- etcd3/errors.py +264 -0
- etcd3/events.py +2 -4
- etcd3/exceptions.py +4 -2
- etcd3/leases.py +2 -2
- etcd3/locks.py +12 -8
- etcd3/members.py +2 -4
- etcd3/multi_client.py +1253 -0
- etcd3/shared.py +37 -185
- etcd3/single_client.py +148 -0
- etcd3/sync_cluster_operations.py +141 -0
- etcd3/sync_kv_operations.py +642 -0
- etcd3/sync_lock_operations.py +37 -0
- etcd3/sync_maintenance_operations.py +244 -0
- etcd3/transactions.py +2 -4
- etcd3/watch.py +7 -6
- etcdrpc/auth_pb2.py +4 -4
- etcdrpc/auth_pb2.pyi +2 -1
- etcdrpc/auth_pb2_grpc.py +2 -2
- etcdrpc/kv_pb2.py +4 -4
- etcdrpc/kv_pb2.pyi +2 -1
- etcdrpc/kv_pb2_grpc.py +2 -2
- etcdrpc/rpc_pb2.py +4 -4
- etcdrpc/rpc_pb2.pyi +2 -1
- etcdrpc/rpc_pb2_grpc.py +2 -2
- {python_etcd3_async-0.1.4.dist-info → python_etcd3_async-0.1.6.dist-info}/METADATA +6 -5
- python_etcd3_async-0.1.6.dist-info/RECORD +54 -0
- {python_etcd3_async-0.1.4.dist-info → python_etcd3_async-0.1.6.dist-info}/WHEEL +1 -1
- python_etcd3_async-0.1.4.dist-info/RECORD +0 -42
etcd3/__init__.py
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import etcdrpc
|
|
2
|
-
from etcd3.
|
|
3
|
-
from etcd3.
|
|
4
|
-
from etcd3.
|
|
5
|
-
from etcd3.
|
|
6
|
-
from etcd3.
|
|
7
|
-
from etcd3.
|
|
8
|
-
from etcd3.
|
|
9
|
-
from etcd3.
|
|
10
|
-
from etcd3.
|
|
11
|
-
from etcd3.async_client import AsyncMultiEndpointEtcd3Client
|
|
12
|
-
from etcd3.async_client import async_client
|
|
13
|
-
from etcd3.async_client import AsyncClientConfig
|
|
14
|
-
from etcd3.async_client import AsyncMultiEndpointConfig
|
|
2
|
+
from etcd3.config import RangeRequestConfig, ClientConfig, MultiEndpointConfig
|
|
3
|
+
from etcd3.async_config import AsyncClientConfig, AsyncMultiEndpointConfig
|
|
4
|
+
from etcd3.single_client import Etcd3Client
|
|
5
|
+
from etcd3.multi_client import MultiEndpointEtcd3Client
|
|
6
|
+
from etcd3.multi_client import Endpoint
|
|
7
|
+
from etcd3.shared import Transactions
|
|
8
|
+
from etcd3.async_single_client import AsyncEtcd3Client
|
|
9
|
+
from etcd3.async_multi_client import AsyncMultiEndpointEtcd3Client
|
|
10
|
+
from etcd3.async_endpoint import AsyncEndpoint
|
|
15
11
|
from etcd3.async_client_extensions import get_request_context, set_request_context
|
|
16
12
|
from etcd3.exceptions import Etcd3Exception
|
|
17
13
|
from etcd3.observability import ObservabilityConfig
|
|
@@ -26,6 +22,11 @@ from etcd3.leases import AsyncLease
|
|
|
26
22
|
from etcd3.locks import Lock
|
|
27
23
|
from etcd3.locks import AsyncLock
|
|
28
24
|
from etcd3.members import Member
|
|
25
|
+
from etcd3.auth import AuthOperations
|
|
26
|
+
from etcd3.auth import AsyncAuthOperations
|
|
27
|
+
from etcd3.auth import User
|
|
28
|
+
from etcd3.auth import Role
|
|
29
|
+
from etcd3.auth import Permission
|
|
29
30
|
from etcd3.utils import FILTER_PUT
|
|
30
31
|
from etcd3.utils import FILTER_DELETE
|
|
31
32
|
from etcd3.utils import FILTER_COMMIT
|
|
@@ -40,9 +41,16 @@ from etcd3.exporters.prometheus import EtcdPrometheusExporter
|
|
|
40
41
|
from etcd3.exporters.prometheus import get_exporter
|
|
41
42
|
from etcd3.exporters.prometheus import is_prometheus_available
|
|
42
43
|
|
|
44
|
+
# Factory functions must be bound last: importing a compatibility shim
|
|
45
|
+
# (etcd3.client / etcd3.async_client) rebinds the same package attribute
|
|
46
|
+
# to the module object, so the functions win by being imported after all
|
|
47
|
+
# submodules above.
|
|
48
|
+
from etcd3.single_client import client
|
|
49
|
+
from etcd3.async_single_client import async_client
|
|
50
|
+
|
|
43
51
|
__author__ = "owasd"
|
|
44
52
|
__email__ = ""
|
|
45
|
-
__version__ = "0.1.
|
|
53
|
+
__version__ = "0.1.6"
|
|
46
54
|
|
|
47
55
|
__all__ = (
|
|
48
56
|
"etcdrpc",
|
|
@@ -56,6 +64,11 @@ __all__ = (
|
|
|
56
64
|
"Lock",
|
|
57
65
|
"AsyncLock",
|
|
58
66
|
"Member",
|
|
67
|
+
"AuthOperations",
|
|
68
|
+
"AsyncAuthOperations",
|
|
69
|
+
"User",
|
|
70
|
+
"Role",
|
|
71
|
+
"Permission",
|
|
59
72
|
"MultiEndpointEtcd3Client",
|
|
60
73
|
"AsyncEndpoint",
|
|
61
74
|
"AsyncEtcd3Client",
|
|
@@ -63,6 +76,7 @@ __all__ = (
|
|
|
63
76
|
"async_client",
|
|
64
77
|
"ClientConfig",
|
|
65
78
|
"RangeRequestConfig",
|
|
79
|
+
"MultiEndpointConfig",
|
|
66
80
|
"AsyncClientConfig",
|
|
67
81
|
"AsyncMultiEndpointConfig",
|
|
68
82
|
"FILTER_PUT",
|