denkproto 1.0.23__py3-none-any.whl → 1.0.26__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.
Potentially problematic release.
This version of denkproto might be problematic. Click here for more details.
- denkproto/__about__.py +1 -1
- denkproto/denkcache_pb2.py +26 -19
- denkproto/denkcache_pb2.pyi +31 -3
- denkproto/denkcache_pb2_grpc.py +43 -0
- {denkproto-1.0.23.dist-info → denkproto-1.0.26.dist-info}/METADATA +1 -1
- {denkproto-1.0.23.dist-info → denkproto-1.0.26.dist-info}/RECORD +7 -7
- {denkproto-1.0.23.dist-info → denkproto-1.0.26.dist-info}/WHEEL +0 -0
denkproto/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.0.
|
|
1
|
+
__version__ = "1.0.26"
|
denkproto/denkcache_pb2.py
CHANGED
|
@@ -24,33 +24,40 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0f\x64\x65nkcache.proto\x12\tdenkcache\"@\n\x13ObjectExistsRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\"&\n\x14ObjectExistsResponse\x12\x0e\n\x06\x65xists\x18\x01 \x01(\x08\"
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0f\x64\x65nkcache.proto\x12\tdenkcache\"@\n\x13ObjectExistsRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\"&\n\x14ObjectExistsResponse\x12\x0e\n\x06\x65xists\x18\x01 \x01(\x08\"f\n\x10GetObjectRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\x12\'\n\x06source\x18\x03 \x01(\x0e\x32\x17.denkcache.ObjectSource\"#\n\x11GetObjectResponse\x12\x0e\n\x06object\x18\x01 \x01(\x0c\"O\n\x12\x43\x61\x63heObjectRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\x12\x0e\n\x06object\x18\x03 \x01(\x0c\"\x15\n\x13\x43\x61\x63heObjectResponse\"C\n\x16GetCachedObjectRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\"9\n\x17GetCachedObjectResponse\x12\x13\n\x06object\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\t\n\x07_object\"C\n\x16HasObjectCachedRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\")\n\x17HasObjectCachedResponse\x12\x0e\n\x06\x65xists\x18\x01 \x01(\x08\"\x11\n\x0fPingPongRequest\"\x12\n\x10PingPongResponse*v\n\x0cObjectSource\x12\x18\n\x14OBJECT_SOURCE_MEMORY\x10\x00\x12\x16\n\x12OBJECT_SOURCE_DISK\x10\x01\x12\x1b\n\x17OBJECT_SOURCE_DENKCACHE\x10\x02\x12\x17\n\x13OBJECT_SOURCE_AZURE\x10\x03\x32\xeb\x03\n\tDENKcache\x12\x43\n\x08PingPong\x12\x1a.denkcache.PingPongRequest\x1a\x1b.denkcache.PingPongResponse\x12X\n\x0fHasObjectCached\x12!.denkcache.HasObjectCachedRequest\x1a\".denkcache.HasObjectCachedResponse\x12O\n\x0cObjectExists\x12\x1e.denkcache.ObjectExistsRequest\x1a\x1f.denkcache.ObjectExistsResponse\x12\x46\n\tGetObject\x12\x1b.denkcache.GetObjectRequest\x1a\x1c.denkcache.GetObjectResponse\x12L\n\x0b\x43\x61\x63heObject\x12\x1d.denkcache.CacheObjectRequest\x1a\x1e.denkcache.CacheObjectResponse\x12X\n\x0fGetCachedObject\x12!.denkcache.GetCachedObjectRequest\x1a\".denkcache.GetCachedObjectResponseB/Z\x16\x64\x65nkproto-go/denkcache\xaa\x02\x14\x44\x45NK.Proto.DENKcacheb\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'denkcache_pb2', _globals)
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
-
DESCRIPTOR._loaded_options = None
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z\026denkproto-go/denkcache\252\002\024DENK.Proto.DENKcache'
|
|
35
|
+
_globals['_OBJECTSOURCE']._serialized_start=660
|
|
36
|
+
_globals['_OBJECTSOURCE']._serialized_end=778
|
|
34
37
|
_globals['_OBJECTEXISTSREQUEST']._serialized_start=30
|
|
35
38
|
_globals['_OBJECTEXISTSREQUEST']._serialized_end=94
|
|
36
39
|
_globals['_OBJECTEXISTSRESPONSE']._serialized_start=96
|
|
37
40
|
_globals['_OBJECTEXISTSRESPONSE']._serialized_end=134
|
|
38
41
|
_globals['_GETOBJECTREQUEST']._serialized_start=136
|
|
39
|
-
_globals['_GETOBJECTREQUEST']._serialized_end=
|
|
40
|
-
_globals['_GETOBJECTRESPONSE']._serialized_start=
|
|
41
|
-
_globals['_GETOBJECTRESPONSE']._serialized_end=
|
|
42
|
-
_globals['
|
|
43
|
-
_globals['
|
|
44
|
-
_globals['
|
|
45
|
-
_globals['
|
|
46
|
-
_globals['
|
|
47
|
-
_globals['
|
|
48
|
-
_globals['
|
|
49
|
-
_globals['
|
|
50
|
-
_globals['
|
|
51
|
-
_globals['
|
|
52
|
-
_globals['
|
|
53
|
-
_globals['
|
|
54
|
-
_globals['
|
|
55
|
-
_globals['
|
|
42
|
+
_globals['_GETOBJECTREQUEST']._serialized_end=238
|
|
43
|
+
_globals['_GETOBJECTRESPONSE']._serialized_start=240
|
|
44
|
+
_globals['_GETOBJECTRESPONSE']._serialized_end=275
|
|
45
|
+
_globals['_CACHEOBJECTREQUEST']._serialized_start=277
|
|
46
|
+
_globals['_CACHEOBJECTREQUEST']._serialized_end=356
|
|
47
|
+
_globals['_CACHEOBJECTRESPONSE']._serialized_start=358
|
|
48
|
+
_globals['_CACHEOBJECTRESPONSE']._serialized_end=379
|
|
49
|
+
_globals['_GETCACHEDOBJECTREQUEST']._serialized_start=381
|
|
50
|
+
_globals['_GETCACHEDOBJECTREQUEST']._serialized_end=448
|
|
51
|
+
_globals['_GETCACHEDOBJECTRESPONSE']._serialized_start=450
|
|
52
|
+
_globals['_GETCACHEDOBJECTRESPONSE']._serialized_end=507
|
|
53
|
+
_globals['_HASOBJECTCACHEDREQUEST']._serialized_start=509
|
|
54
|
+
_globals['_HASOBJECTCACHEDREQUEST']._serialized_end=576
|
|
55
|
+
_globals['_HASOBJECTCACHEDRESPONSE']._serialized_start=578
|
|
56
|
+
_globals['_HASOBJECTCACHEDRESPONSE']._serialized_end=619
|
|
57
|
+
_globals['_PINGPONGREQUEST']._serialized_start=621
|
|
58
|
+
_globals['_PINGPONGREQUEST']._serialized_end=638
|
|
59
|
+
_globals['_PINGPONGRESPONSE']._serialized_start=640
|
|
60
|
+
_globals['_PINGPONGRESPONSE']._serialized_end=658
|
|
61
|
+
_globals['_DENKCACHE']._serialized_start=781
|
|
62
|
+
_globals['_DENKCACHE']._serialized_end=1272
|
|
56
63
|
# @@protoc_insertion_point(module_scope)
|
denkproto/denkcache_pb2.pyi
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
1
2
|
from google.protobuf import descriptor as _descriptor
|
|
2
3
|
from google.protobuf import message as _message
|
|
3
|
-
from typing import ClassVar as _ClassVar, Optional as _Optional
|
|
4
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
4
5
|
|
|
5
6
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
6
7
|
|
|
8
|
+
class ObjectSource(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
9
|
+
__slots__ = ()
|
|
10
|
+
OBJECT_SOURCE_MEMORY: _ClassVar[ObjectSource]
|
|
11
|
+
OBJECT_SOURCE_DISK: _ClassVar[ObjectSource]
|
|
12
|
+
OBJECT_SOURCE_DENKCACHE: _ClassVar[ObjectSource]
|
|
13
|
+
OBJECT_SOURCE_AZURE: _ClassVar[ObjectSource]
|
|
14
|
+
OBJECT_SOURCE_MEMORY: ObjectSource
|
|
15
|
+
OBJECT_SOURCE_DISK: ObjectSource
|
|
16
|
+
OBJECT_SOURCE_DENKCACHE: ObjectSource
|
|
17
|
+
OBJECT_SOURCE_AZURE: ObjectSource
|
|
18
|
+
|
|
7
19
|
class ObjectExistsRequest(_message.Message):
|
|
8
20
|
__slots__ = ("container_name", "blob_name")
|
|
9
21
|
CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -19,12 +31,14 @@ class ObjectExistsResponse(_message.Message):
|
|
|
19
31
|
def __init__(self, exists: bool = ...) -> None: ...
|
|
20
32
|
|
|
21
33
|
class GetObjectRequest(_message.Message):
|
|
22
|
-
__slots__ = ("container_name", "blob_name")
|
|
34
|
+
__slots__ = ("container_name", "blob_name", "source")
|
|
23
35
|
CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
24
36
|
BLOB_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
25
38
|
container_name: str
|
|
26
39
|
blob_name: str
|
|
27
|
-
|
|
40
|
+
source: ObjectSource
|
|
41
|
+
def __init__(self, container_name: _Optional[str] = ..., blob_name: _Optional[str] = ..., source: _Optional[_Union[ObjectSource, str]] = ...) -> None: ...
|
|
28
42
|
|
|
29
43
|
class GetObjectResponse(_message.Message):
|
|
30
44
|
__slots__ = ("object",)
|
|
@@ -32,6 +46,20 @@ class GetObjectResponse(_message.Message):
|
|
|
32
46
|
object: bytes
|
|
33
47
|
def __init__(self, object: _Optional[bytes] = ...) -> None: ...
|
|
34
48
|
|
|
49
|
+
class CacheObjectRequest(_message.Message):
|
|
50
|
+
__slots__ = ("container_name", "blob_name", "object")
|
|
51
|
+
CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
BLOB_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
OBJECT_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
container_name: str
|
|
55
|
+
blob_name: str
|
|
56
|
+
object: bytes
|
|
57
|
+
def __init__(self, container_name: _Optional[str] = ..., blob_name: _Optional[str] = ..., object: _Optional[bytes] = ...) -> None: ...
|
|
58
|
+
|
|
59
|
+
class CacheObjectResponse(_message.Message):
|
|
60
|
+
__slots__ = ()
|
|
61
|
+
def __init__(self) -> None: ...
|
|
62
|
+
|
|
35
63
|
class GetCachedObjectRequest(_message.Message):
|
|
36
64
|
__slots__ = ("container_name", "blob_name")
|
|
37
65
|
CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
|
denkproto/denkcache_pb2_grpc.py
CHANGED
|
@@ -54,6 +54,11 @@ class DENKcacheStub(object):
|
|
|
54
54
|
request_serializer=denkcache__pb2.GetObjectRequest.SerializeToString,
|
|
55
55
|
response_deserializer=denkcache__pb2.GetObjectResponse.FromString,
|
|
56
56
|
_registered_method=True)
|
|
57
|
+
self.CacheObject = channel.unary_unary(
|
|
58
|
+
'/denkcache.DENKcache/CacheObject',
|
|
59
|
+
request_serializer=denkcache__pb2.CacheObjectRequest.SerializeToString,
|
|
60
|
+
response_deserializer=denkcache__pb2.CacheObjectResponse.FromString,
|
|
61
|
+
_registered_method=True)
|
|
57
62
|
self.GetCachedObject = channel.unary_unary(
|
|
58
63
|
'/denkcache.DENKcache/GetCachedObject',
|
|
59
64
|
request_serializer=denkcache__pb2.GetCachedObjectRequest.SerializeToString,
|
|
@@ -88,6 +93,12 @@ class DENKcacheServicer(object):
|
|
|
88
93
|
context.set_details('Method not implemented!')
|
|
89
94
|
raise NotImplementedError('Method not implemented!')
|
|
90
95
|
|
|
96
|
+
def CacheObject(self, request, context):
|
|
97
|
+
"""Missing associated documentation comment in .proto file."""
|
|
98
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
99
|
+
context.set_details('Method not implemented!')
|
|
100
|
+
raise NotImplementedError('Method not implemented!')
|
|
101
|
+
|
|
91
102
|
def GetCachedObject(self, request, context):
|
|
92
103
|
"""Missing associated documentation comment in .proto file."""
|
|
93
104
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
@@ -117,6 +128,11 @@ def add_DENKcacheServicer_to_server(servicer, server):
|
|
|
117
128
|
request_deserializer=denkcache__pb2.GetObjectRequest.FromString,
|
|
118
129
|
response_serializer=denkcache__pb2.GetObjectResponse.SerializeToString,
|
|
119
130
|
),
|
|
131
|
+
'CacheObject': grpc.unary_unary_rpc_method_handler(
|
|
132
|
+
servicer.CacheObject,
|
|
133
|
+
request_deserializer=denkcache__pb2.CacheObjectRequest.FromString,
|
|
134
|
+
response_serializer=denkcache__pb2.CacheObjectResponse.SerializeToString,
|
|
135
|
+
),
|
|
120
136
|
'GetCachedObject': grpc.unary_unary_rpc_method_handler(
|
|
121
137
|
servicer.GetCachedObject,
|
|
122
138
|
request_deserializer=denkcache__pb2.GetCachedObjectRequest.FromString,
|
|
@@ -241,6 +257,33 @@ class DENKcache(object):
|
|
|
241
257
|
metadata,
|
|
242
258
|
_registered_method=True)
|
|
243
259
|
|
|
260
|
+
@staticmethod
|
|
261
|
+
def CacheObject(request,
|
|
262
|
+
target,
|
|
263
|
+
options=(),
|
|
264
|
+
channel_credentials=None,
|
|
265
|
+
call_credentials=None,
|
|
266
|
+
insecure=False,
|
|
267
|
+
compression=None,
|
|
268
|
+
wait_for_ready=None,
|
|
269
|
+
timeout=None,
|
|
270
|
+
metadata=None):
|
|
271
|
+
return grpc.experimental.unary_unary(
|
|
272
|
+
request,
|
|
273
|
+
target,
|
|
274
|
+
'/denkcache.DENKcache/CacheObject',
|
|
275
|
+
denkcache__pb2.CacheObjectRequest.SerializeToString,
|
|
276
|
+
denkcache__pb2.CacheObjectResponse.FromString,
|
|
277
|
+
options,
|
|
278
|
+
channel_credentials,
|
|
279
|
+
insecure,
|
|
280
|
+
call_credentials,
|
|
281
|
+
compression,
|
|
282
|
+
wait_for_ready,
|
|
283
|
+
timeout,
|
|
284
|
+
metadata,
|
|
285
|
+
_registered_method=True)
|
|
286
|
+
|
|
244
287
|
@staticmethod
|
|
245
288
|
def GetCachedObject(request,
|
|
246
289
|
target,
|
|
@@ -4,11 +4,11 @@ denkproto/DENKbuffer_pb2_grpc.py,sha256=-CPJPM4FOqwvwV8-f1iJlD18UD9juVIIHfdWUecu
|
|
|
4
4
|
denkproto/ImageAnalysis_ProtobufMessages_pb2.py,sha256=koos4D2pZUVtuVazJrTjg8zTg17emlFvksRpFgbZ5y8,20050
|
|
5
5
|
denkproto/ImageAnalysis_ProtobufMessages_pb2.pyi,sha256=FQlBvJ-QEhEoHE7DpXBDpLZqg7vhd2EGpiuYUSa5QME,34698
|
|
6
6
|
denkproto/ImageAnalysis_ProtobufMessages_pb2_grpc.py,sha256=l3agtDjgu4jay6P9TRnHhyhJ-7UdoII27ywhw3k84oo,911
|
|
7
|
-
denkproto/__about__.py,sha256=
|
|
7
|
+
denkproto/__about__.py,sha256=qsWFNiLm8PRshbacOTrlIH_bB-tODfzJKwdZTTLVp20,23
|
|
8
8
|
denkproto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
denkproto/denkcache_pb2.py,sha256=
|
|
10
|
-
denkproto/denkcache_pb2.pyi,sha256=
|
|
11
|
-
denkproto/denkcache_pb2_grpc.py,sha256=
|
|
9
|
+
denkproto/denkcache_pb2.py,sha256=BfXefagvJBXvYGOi4im-SY9NY920xSsqArvvM5pNe3M,4754
|
|
10
|
+
denkproto/denkcache_pb2.pyi,sha256=llNfBhwRwpE6dp2lKzmLwAccVyVIxE6XeoVk9Q9PZ00,3712
|
|
11
|
+
denkproto/denkcache_pb2_grpc.py,sha256=ZZPbjQqaOjBb9N3f7P1saOccmEVQLgR0k-nQsvZA9KA,12070
|
|
12
12
|
denkproto/modelfile_v1_pb2.py,sha256=1vrVofquDm9UCxxHDMtB8icTsNQUaGQJx6J7oa19a4w,6545
|
|
13
13
|
denkproto/modelfile_v1_pb2.pyi,sha256=gjTbWvg48wqGhyJb5CT0pw3yUZGhO_lSZgL7Ia2aPbY,10685
|
|
14
14
|
denkproto/modelfile_v1_pb2_grpc.py,sha256=ov5B2o4JSYbAfcbbdZr55wEzfGlKI02H-tkvXGXqJVg,893
|
|
@@ -19,6 +19,6 @@ denkproto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
19
19
|
denkproto/results_pb2.py,sha256=-a_oQKyJo5rbtBsl94MTF0AmvLamSYrujHg0KFNHHvk,13622
|
|
20
20
|
denkproto/results_pb2.pyi,sha256=xzZPmty65qEz9FzeoGwQlWMpuYxrP-cRFP97Ew8-FFI,25821
|
|
21
21
|
denkproto/results_pb2_grpc.py,sha256=z-4qcDMjjuPRy7lDtECTtReByVEyz3fjIPES9dMlO58,888
|
|
22
|
-
denkproto-1.0.
|
|
23
|
-
denkproto-1.0.
|
|
24
|
-
denkproto-1.0.
|
|
22
|
+
denkproto-1.0.26.dist-info/METADATA,sha256=lP7hYYiejqoCA1niBj-Cn5Jc866TpPYsW6XYIi3IZ-o,110
|
|
23
|
+
denkproto-1.0.26.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
24
|
+
denkproto-1.0.26.dist-info/RECORD,,
|
|
File without changes
|