python-etcd3-async 0.1.0__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.
etcdrpc/kv_pb2.pyi ADDED
@@ -0,0 +1,39 @@
1
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
2
+ from google.protobuf import descriptor as _descriptor
3
+ from google.protobuf import message as _message
4
+ from collections.abc import Mapping as _Mapping
5
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
6
+
7
+ DESCRIPTOR: _descriptor.FileDescriptor
8
+
9
+ class KeyValue(_message.Message):
10
+ __slots__ = ("key", "create_revision", "mod_revision", "version", "value", "lease")
11
+ KEY_FIELD_NUMBER: _ClassVar[int]
12
+ CREATE_REVISION_FIELD_NUMBER: _ClassVar[int]
13
+ MOD_REVISION_FIELD_NUMBER: _ClassVar[int]
14
+ VERSION_FIELD_NUMBER: _ClassVar[int]
15
+ VALUE_FIELD_NUMBER: _ClassVar[int]
16
+ LEASE_FIELD_NUMBER: _ClassVar[int]
17
+ key: bytes
18
+ create_revision: int
19
+ mod_revision: int
20
+ version: int
21
+ value: bytes
22
+ lease: int
23
+ def __init__(self, key: _Optional[bytes] = ..., create_revision: _Optional[int] = ..., mod_revision: _Optional[int] = ..., version: _Optional[int] = ..., value: _Optional[bytes] = ..., lease: _Optional[int] = ...) -> None: ...
24
+
25
+ class Event(_message.Message):
26
+ __slots__ = ("type", "kv", "prev_kv")
27
+ class EventType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
28
+ __slots__ = ()
29
+ PUT: _ClassVar[Event.EventType]
30
+ DELETE: _ClassVar[Event.EventType]
31
+ PUT: Event.EventType
32
+ DELETE: Event.EventType
33
+ TYPE_FIELD_NUMBER: _ClassVar[int]
34
+ KV_FIELD_NUMBER: _ClassVar[int]
35
+ PREV_KV_FIELD_NUMBER: _ClassVar[int]
36
+ type: Event.EventType
37
+ kv: KeyValue
38
+ prev_kv: KeyValue
39
+ def __init__(self, type: _Optional[_Union[Event.EventType, str]] = ..., kv: _Optional[_Union[KeyValue, _Mapping]] = ..., prev_kv: _Optional[_Union[KeyValue, _Mapping]] = ...) -> None: ...
etcdrpc/kv_pb2_grpc.py ADDED
@@ -0,0 +1,24 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.76.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + ' but the generated code in etcdrpc/kv_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )