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 CHANGED
@@ -1,17 +1,13 @@
1
1
  import etcdrpc
2
- from etcd3.client import Endpoint
3
- from etcd3.client import Etcd3Client
4
- from etcd3.client import MultiEndpointEtcd3Client
5
- from etcd3.client import Transactions
6
- from etcd3.client import client
7
- from etcd3.client import ClientConfig
8
- from etcd3.client import RangeRequestConfig
9
- from etcd3.async_client import AsyncEndpoint
10
- from etcd3.async_client import AsyncEtcd3Client
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.0"
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",