nucliadb-utils 4.0.1.post548__py3-none-any.whl → 4.0.1.post551__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.
- nucliadb_utils/nuclia_usage/protos/kb_usage_pb2.pyi +517 -0
- nucliadb_utils/nuclia_usage/protos/kb_usage_pb2_grpc.pyi +23 -0
- nucliadb_utils/signals.py +2 -2
- {nucliadb_utils-4.0.1.post548.dist-info → nucliadb_utils-4.0.1.post551.dist-info}/METADATA +5 -4
- {nucliadb_utils-4.0.1.post548.dist-info → nucliadb_utils-4.0.1.post551.dist-info}/RECORD +8 -6
- {nucliadb_utils-4.0.1.post548.dist-info → nucliadb_utils-4.0.1.post551.dist-info}/WHEEL +0 -0
- {nucliadb_utils-4.0.1.post548.dist-info → nucliadb_utils-4.0.1.post551.dist-info}/top_level.txt +0 -0
- {nucliadb_utils-4.0.1.post548.dist-info → nucliadb_utils-4.0.1.post551.dist-info}/zip-safe +0 -0
@@ -0,0 +1,517 @@
|
|
1
|
+
# Copyright (C) 2021 Bosutech XXI S.L.
|
2
|
+
#
|
3
|
+
# nucliadb is offered under the AGPL v3.0 and as commercial software.
|
4
|
+
# For commercial licensing, contact us at info@nuclia.com.
|
5
|
+
#
|
6
|
+
# AGPL:
|
7
|
+
# This program is free software: you can redistribute it and/or modify
|
8
|
+
# it under the terms of the GNU Affero General Public License as
|
9
|
+
# published by the Free Software Foundation, either version 3 of the
|
10
|
+
# License, or (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This program is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU Affero General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU Affero General Public License
|
18
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# flake8: noqa
|
21
|
+
"""
|
22
|
+
@generated by mypy-protobuf. Do not edit manually!
|
23
|
+
isort:skip_file
|
24
|
+
"""
|
25
|
+
import builtins
|
26
|
+
import collections.abc
|
27
|
+
import google.protobuf.descriptor
|
28
|
+
import google.protobuf.internal.containers
|
29
|
+
import google.protobuf.internal.enum_type_wrapper
|
30
|
+
import google.protobuf.message
|
31
|
+
import google.protobuf.timestamp_pb2
|
32
|
+
import sys
|
33
|
+
import typing
|
34
|
+
|
35
|
+
if sys.version_info >= (3, 10):
|
36
|
+
import typing as typing_extensions
|
37
|
+
else:
|
38
|
+
import typing_extensions
|
39
|
+
|
40
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
41
|
+
|
42
|
+
class _KBSource:
|
43
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
44
|
+
V: typing_extensions.TypeAlias = ValueType
|
45
|
+
|
46
|
+
class _KBSourceEnumTypeWrapper(
|
47
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_KBSource.ValueType],
|
48
|
+
builtins.type,
|
49
|
+
):
|
50
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
51
|
+
HOSTED: _KBSource.ValueType # 0
|
52
|
+
ONPREM: _KBSource.ValueType # 1
|
53
|
+
|
54
|
+
class KBSource(_KBSource, metaclass=_KBSourceEnumTypeWrapper): ...
|
55
|
+
|
56
|
+
HOSTED: KBSource.ValueType # 0
|
57
|
+
ONPREM: KBSource.ValueType # 1
|
58
|
+
global___KBSource = KBSource
|
59
|
+
|
60
|
+
class _Service:
|
61
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
62
|
+
V: typing_extensions.TypeAlias = ValueType
|
63
|
+
|
64
|
+
class _ServiceEnumTypeWrapper(
|
65
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Service.ValueType],
|
66
|
+
builtins.type,
|
67
|
+
):
|
68
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
69
|
+
PREDICT: _Service.ValueType # 0
|
70
|
+
PROCESSING: _Service.ValueType # 1
|
71
|
+
NUCLIA_DB: _Service.ValueType # 2
|
72
|
+
|
73
|
+
class Service(_Service, metaclass=_ServiceEnumTypeWrapper): ...
|
74
|
+
|
75
|
+
PREDICT: Service.ValueType # 0
|
76
|
+
PROCESSING: Service.ValueType # 1
|
77
|
+
NUCLIA_DB: Service.ValueType # 2
|
78
|
+
global___Service = Service
|
79
|
+
|
80
|
+
class _SearchType:
|
81
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
82
|
+
V: typing_extensions.TypeAlias = ValueType
|
83
|
+
|
84
|
+
class _SearchTypeEnumTypeWrapper(
|
85
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SearchType.ValueType],
|
86
|
+
builtins.type,
|
87
|
+
):
|
88
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
89
|
+
SEARCH: _SearchType.ValueType # 0
|
90
|
+
SUGGEST: _SearchType.ValueType # 1
|
91
|
+
|
92
|
+
class SearchType(_SearchType, metaclass=_SearchTypeEnumTypeWrapper): ...
|
93
|
+
|
94
|
+
SEARCH: SearchType.ValueType # 0
|
95
|
+
SUGGEST: SearchType.ValueType # 1
|
96
|
+
global___SearchType = SearchType
|
97
|
+
|
98
|
+
class _PredictType:
|
99
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
100
|
+
V: typing_extensions.TypeAlias = ValueType
|
101
|
+
|
102
|
+
class _PredictTypeEnumTypeWrapper(
|
103
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PredictType.ValueType],
|
104
|
+
builtins.type,
|
105
|
+
):
|
106
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
107
|
+
SENTENCE: _PredictType.ValueType # 0
|
108
|
+
TOKEN: _PredictType.ValueType # 1
|
109
|
+
QUESTION_ANSWER: _PredictType.ValueType # 2
|
110
|
+
REPHRASE: _PredictType.ValueType # 3
|
111
|
+
SUMMARIZE: _PredictType.ValueType # 4
|
112
|
+
EXTRACT_TABLES: _PredictType.ValueType # 5
|
113
|
+
RERANK: _PredictType.ValueType # 6
|
114
|
+
RELATIONS: _PredictType.ValueType # 7
|
115
|
+
SPEECH: _PredictType.ValueType # 8
|
116
|
+
CAPTION: _PredictType.ValueType # 9
|
117
|
+
|
118
|
+
class PredictType(_PredictType, metaclass=_PredictTypeEnumTypeWrapper): ...
|
119
|
+
|
120
|
+
SENTENCE: PredictType.ValueType # 0
|
121
|
+
TOKEN: PredictType.ValueType # 1
|
122
|
+
QUESTION_ANSWER: PredictType.ValueType # 2
|
123
|
+
REPHRASE: PredictType.ValueType # 3
|
124
|
+
SUMMARIZE: PredictType.ValueType # 4
|
125
|
+
EXTRACT_TABLES: PredictType.ValueType # 5
|
126
|
+
RERANK: PredictType.ValueType # 6
|
127
|
+
RELATIONS: PredictType.ValueType # 7
|
128
|
+
SPEECH: PredictType.ValueType # 8
|
129
|
+
CAPTION: PredictType.ValueType # 9
|
130
|
+
global___PredictType = PredictType
|
131
|
+
|
132
|
+
class _ClientType:
|
133
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
134
|
+
V: typing_extensions.TypeAlias = ValueType
|
135
|
+
|
136
|
+
class _ClientTypeEnumTypeWrapper(
|
137
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ClientType.ValueType],
|
138
|
+
builtins.type,
|
139
|
+
):
|
140
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
141
|
+
API: _ClientType.ValueType # 0
|
142
|
+
WEB: _ClientType.ValueType # 1
|
143
|
+
WIDGET: _ClientType.ValueType # 2
|
144
|
+
DESKTOP: _ClientType.ValueType # 3
|
145
|
+
DASHBOARD: _ClientType.ValueType # 4
|
146
|
+
CHROME_EXTENSION: _ClientType.ValueType # 5
|
147
|
+
INTERNAL: _ClientType.ValueType # 6
|
148
|
+
|
149
|
+
class ClientType(_ClientType, metaclass=_ClientTypeEnumTypeWrapper): ...
|
150
|
+
|
151
|
+
API: ClientType.ValueType # 0
|
152
|
+
WEB: ClientType.ValueType # 1
|
153
|
+
WIDGET: ClientType.ValueType # 2
|
154
|
+
DESKTOP: ClientType.ValueType # 3
|
155
|
+
DASHBOARD: ClientType.ValueType # 4
|
156
|
+
CHROME_EXTENSION: ClientType.ValueType # 5
|
157
|
+
INTERNAL: ClientType.ValueType # 6
|
158
|
+
global___ClientType = ClientType
|
159
|
+
|
160
|
+
@typing_extensions.final
|
161
|
+
class Process(google.protobuf.message.Message):
|
162
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
163
|
+
|
164
|
+
CLIENT_FIELD_NUMBER: builtins.int
|
165
|
+
SLOW_PROCESSING_TIME_FIELD_NUMBER: builtins.int
|
166
|
+
PRE_PROCESSING_TIME_FIELD_NUMBER: builtins.int
|
167
|
+
BYTES_FIELD_NUMBER: builtins.int
|
168
|
+
CHARS_FIELD_NUMBER: builtins.int
|
169
|
+
MEDIA_SECONDS_FIELD_NUMBER: builtins.int
|
170
|
+
PAGES_FIELD_NUMBER: builtins.int
|
171
|
+
PARAGRAPHS_FIELD_NUMBER: builtins.int
|
172
|
+
MEDIA_FILES_FIELD_NUMBER: builtins.int
|
173
|
+
NUM_PROCESSED_FIELD_NUMBER: builtins.int
|
174
|
+
client: global___ClientType.ValueType
|
175
|
+
slow_processing_time: builtins.float
|
176
|
+
pre_processing_time: builtins.float
|
177
|
+
bytes: builtins.int
|
178
|
+
chars: builtins.int
|
179
|
+
media_seconds: builtins.int
|
180
|
+
pages: builtins.int
|
181
|
+
paragraphs: builtins.int
|
182
|
+
media_files: builtins.int
|
183
|
+
num_processed: builtins.int
|
184
|
+
def __init__(
|
185
|
+
self,
|
186
|
+
*,
|
187
|
+
client: global___ClientType.ValueType = ...,
|
188
|
+
slow_processing_time: builtins.float = ...,
|
189
|
+
pre_processing_time: builtins.float = ...,
|
190
|
+
bytes: builtins.int = ...,
|
191
|
+
chars: builtins.int = ...,
|
192
|
+
media_seconds: builtins.int = ...,
|
193
|
+
pages: builtins.int = ...,
|
194
|
+
paragraphs: builtins.int = ...,
|
195
|
+
media_files: builtins.int = ...,
|
196
|
+
num_processed: builtins.int = ...,
|
197
|
+
) -> None: ...
|
198
|
+
def ClearField(
|
199
|
+
self,
|
200
|
+
field_name: typing_extensions.Literal[
|
201
|
+
"bytes",
|
202
|
+
b"bytes",
|
203
|
+
"chars",
|
204
|
+
b"chars",
|
205
|
+
"client",
|
206
|
+
b"client",
|
207
|
+
"media_files",
|
208
|
+
b"media_files",
|
209
|
+
"media_seconds",
|
210
|
+
b"media_seconds",
|
211
|
+
"num_processed",
|
212
|
+
b"num_processed",
|
213
|
+
"pages",
|
214
|
+
b"pages",
|
215
|
+
"paragraphs",
|
216
|
+
b"paragraphs",
|
217
|
+
"pre_processing_time",
|
218
|
+
b"pre_processing_time",
|
219
|
+
"slow_processing_time",
|
220
|
+
b"slow_processing_time",
|
221
|
+
],
|
222
|
+
) -> None: ...
|
223
|
+
|
224
|
+
global___Process = Process
|
225
|
+
|
226
|
+
@typing_extensions.final
|
227
|
+
class Storage(google.protobuf.message.Message):
|
228
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
229
|
+
|
230
|
+
PARAGRAPHS_FIELD_NUMBER: builtins.int
|
231
|
+
FIELDS_FIELD_NUMBER: builtins.int
|
232
|
+
RESOURCES_FIELD_NUMBER: builtins.int
|
233
|
+
paragraphs: builtins.int
|
234
|
+
fields: builtins.int
|
235
|
+
resources: builtins.int
|
236
|
+
def __init__(
|
237
|
+
self,
|
238
|
+
*,
|
239
|
+
paragraphs: builtins.int | None = ...,
|
240
|
+
fields: builtins.int | None = ...,
|
241
|
+
resources: builtins.int | None = ...,
|
242
|
+
) -> None: ...
|
243
|
+
def HasField(
|
244
|
+
self,
|
245
|
+
field_name: typing_extensions.Literal[
|
246
|
+
"_fields",
|
247
|
+
b"_fields",
|
248
|
+
"_paragraphs",
|
249
|
+
b"_paragraphs",
|
250
|
+
"_resources",
|
251
|
+
b"_resources",
|
252
|
+
"fields",
|
253
|
+
b"fields",
|
254
|
+
"paragraphs",
|
255
|
+
b"paragraphs",
|
256
|
+
"resources",
|
257
|
+
b"resources",
|
258
|
+
],
|
259
|
+
) -> builtins.bool: ...
|
260
|
+
def ClearField(
|
261
|
+
self,
|
262
|
+
field_name: typing_extensions.Literal[
|
263
|
+
"_fields",
|
264
|
+
b"_fields",
|
265
|
+
"_paragraphs",
|
266
|
+
b"_paragraphs",
|
267
|
+
"_resources",
|
268
|
+
b"_resources",
|
269
|
+
"fields",
|
270
|
+
b"fields",
|
271
|
+
"paragraphs",
|
272
|
+
b"paragraphs",
|
273
|
+
"resources",
|
274
|
+
b"resources",
|
275
|
+
],
|
276
|
+
) -> None: ...
|
277
|
+
@typing.overload
|
278
|
+
def WhichOneof(
|
279
|
+
self, oneof_group: typing_extensions.Literal["_fields", b"_fields"]
|
280
|
+
) -> typing_extensions.Literal["fields"] | None: ...
|
281
|
+
@typing.overload
|
282
|
+
def WhichOneof(
|
283
|
+
self, oneof_group: typing_extensions.Literal["_paragraphs", b"_paragraphs"]
|
284
|
+
) -> typing_extensions.Literal["paragraphs"] | None: ...
|
285
|
+
@typing.overload
|
286
|
+
def WhichOneof(
|
287
|
+
self, oneof_group: typing_extensions.Literal["_resources", b"_resources"]
|
288
|
+
) -> typing_extensions.Literal["resources"] | None: ...
|
289
|
+
|
290
|
+
global___Storage = Storage
|
291
|
+
|
292
|
+
@typing_extensions.final
|
293
|
+
class Search(google.protobuf.message.Message):
|
294
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
295
|
+
|
296
|
+
CLIENT_FIELD_NUMBER: builtins.int
|
297
|
+
TYPE_FIELD_NUMBER: builtins.int
|
298
|
+
TOKENS_FIELD_NUMBER: builtins.int
|
299
|
+
NUM_SEARCHES_FIELD_NUMBER: builtins.int
|
300
|
+
client: global___ClientType.ValueType
|
301
|
+
type: global___SearchType.ValueType
|
302
|
+
tokens: builtins.int
|
303
|
+
num_searches: builtins.int
|
304
|
+
def __init__(
|
305
|
+
self,
|
306
|
+
*,
|
307
|
+
client: global___ClientType.ValueType = ...,
|
308
|
+
type: global___SearchType.ValueType = ...,
|
309
|
+
tokens: builtins.int = ...,
|
310
|
+
num_searches: builtins.int = ...,
|
311
|
+
) -> None: ...
|
312
|
+
def ClearField(
|
313
|
+
self,
|
314
|
+
field_name: typing_extensions.Literal[
|
315
|
+
"client",
|
316
|
+
b"client",
|
317
|
+
"num_searches",
|
318
|
+
b"num_searches",
|
319
|
+
"tokens",
|
320
|
+
b"tokens",
|
321
|
+
"type",
|
322
|
+
b"type",
|
323
|
+
],
|
324
|
+
) -> None: ...
|
325
|
+
|
326
|
+
global___Search = Search
|
327
|
+
|
328
|
+
@typing_extensions.final
|
329
|
+
class Predict(google.protobuf.message.Message):
|
330
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
331
|
+
|
332
|
+
CLIENT_FIELD_NUMBER: builtins.int
|
333
|
+
TYPE_FIELD_NUMBER: builtins.int
|
334
|
+
MODEL_FIELD_NUMBER: builtins.int
|
335
|
+
INPUT_FIELD_NUMBER: builtins.int
|
336
|
+
OUTPUT_FIELD_NUMBER: builtins.int
|
337
|
+
IMAGE_FIELD_NUMBER: builtins.int
|
338
|
+
NUM_PREDICTS_FIELD_NUMBER: builtins.int
|
339
|
+
client: global___ClientType.ValueType
|
340
|
+
type: global___PredictType.ValueType
|
341
|
+
model: builtins.str
|
342
|
+
input: builtins.int
|
343
|
+
output: builtins.int
|
344
|
+
image: builtins.int
|
345
|
+
num_predicts: builtins.int
|
346
|
+
def __init__(
|
347
|
+
self,
|
348
|
+
*,
|
349
|
+
client: global___ClientType.ValueType = ...,
|
350
|
+
type: global___PredictType.ValueType = ...,
|
351
|
+
model: builtins.str = ...,
|
352
|
+
input: builtins.int = ...,
|
353
|
+
output: builtins.int = ...,
|
354
|
+
image: builtins.int = ...,
|
355
|
+
num_predicts: builtins.int = ...,
|
356
|
+
) -> None: ...
|
357
|
+
def ClearField(
|
358
|
+
self,
|
359
|
+
field_name: typing_extensions.Literal[
|
360
|
+
"client",
|
361
|
+
b"client",
|
362
|
+
"image",
|
363
|
+
b"image",
|
364
|
+
"input",
|
365
|
+
b"input",
|
366
|
+
"model",
|
367
|
+
b"model",
|
368
|
+
"num_predicts",
|
369
|
+
b"num_predicts",
|
370
|
+
"output",
|
371
|
+
b"output",
|
372
|
+
"type",
|
373
|
+
b"type",
|
374
|
+
],
|
375
|
+
) -> None: ...
|
376
|
+
|
377
|
+
global___Predict = Predict
|
378
|
+
|
379
|
+
@typing_extensions.final
|
380
|
+
class KbUsage(google.protobuf.message.Message):
|
381
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
382
|
+
|
383
|
+
SERVICE_FIELD_NUMBER: builtins.int
|
384
|
+
TIMESTAMP_FIELD_NUMBER: builtins.int
|
385
|
+
ACCOUNT_ID_FIELD_NUMBER: builtins.int
|
386
|
+
KB_ID_FIELD_NUMBER: builtins.int
|
387
|
+
KB_SOURCE_FIELD_NUMBER: builtins.int
|
388
|
+
PROCESSES_FIELD_NUMBER: builtins.int
|
389
|
+
PREDICTS_FIELD_NUMBER: builtins.int
|
390
|
+
SEARCHES_FIELD_NUMBER: builtins.int
|
391
|
+
STORAGE_FIELD_NUMBER: builtins.int
|
392
|
+
service: global___Service.ValueType
|
393
|
+
"""Identifiers"""
|
394
|
+
@property
|
395
|
+
def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
396
|
+
account_id: builtins.str
|
397
|
+
kb_id: builtins.str
|
398
|
+
kb_source: global___KBSource.ValueType
|
399
|
+
@property
|
400
|
+
def processes(
|
401
|
+
self,
|
402
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
403
|
+
global___Process
|
404
|
+
]:
|
405
|
+
"""Data"""
|
406
|
+
|
407
|
+
@property
|
408
|
+
def predicts(
|
409
|
+
self,
|
410
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
411
|
+
global___Predict
|
412
|
+
]: ...
|
413
|
+
@property
|
414
|
+
def searches(
|
415
|
+
self,
|
416
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
417
|
+
global___Search
|
418
|
+
]: ...
|
419
|
+
@property
|
420
|
+
def storage(self) -> global___Storage: ...
|
421
|
+
def __init__(
|
422
|
+
self,
|
423
|
+
*,
|
424
|
+
service: global___Service.ValueType = ...,
|
425
|
+
timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
426
|
+
account_id: builtins.str | None = ...,
|
427
|
+
kb_id: builtins.str | None = ...,
|
428
|
+
kb_source: global___KBSource.ValueType = ...,
|
429
|
+
processes: collections.abc.Iterable[global___Process] | None = ...,
|
430
|
+
predicts: collections.abc.Iterable[global___Predict] | None = ...,
|
431
|
+
searches: collections.abc.Iterable[global___Search] | None = ...,
|
432
|
+
storage: global___Storage | None = ...,
|
433
|
+
) -> None: ...
|
434
|
+
def HasField(
|
435
|
+
self,
|
436
|
+
field_name: typing_extensions.Literal[
|
437
|
+
"_account_id",
|
438
|
+
b"_account_id",
|
439
|
+
"_kb_id",
|
440
|
+
b"_kb_id",
|
441
|
+
"_storage",
|
442
|
+
b"_storage",
|
443
|
+
"account_id",
|
444
|
+
b"account_id",
|
445
|
+
"kb_id",
|
446
|
+
b"kb_id",
|
447
|
+
"storage",
|
448
|
+
b"storage",
|
449
|
+
"timestamp",
|
450
|
+
b"timestamp",
|
451
|
+
],
|
452
|
+
) -> builtins.bool: ...
|
453
|
+
def ClearField(
|
454
|
+
self,
|
455
|
+
field_name: typing_extensions.Literal[
|
456
|
+
"_account_id",
|
457
|
+
b"_account_id",
|
458
|
+
"_kb_id",
|
459
|
+
b"_kb_id",
|
460
|
+
"_storage",
|
461
|
+
b"_storage",
|
462
|
+
"account_id",
|
463
|
+
b"account_id",
|
464
|
+
"kb_id",
|
465
|
+
b"kb_id",
|
466
|
+
"kb_source",
|
467
|
+
b"kb_source",
|
468
|
+
"predicts",
|
469
|
+
b"predicts",
|
470
|
+
"processes",
|
471
|
+
b"processes",
|
472
|
+
"searches",
|
473
|
+
b"searches",
|
474
|
+
"service",
|
475
|
+
b"service",
|
476
|
+
"storage",
|
477
|
+
b"storage",
|
478
|
+
"timestamp",
|
479
|
+
b"timestamp",
|
480
|
+
],
|
481
|
+
) -> None: ...
|
482
|
+
@typing.overload
|
483
|
+
def WhichOneof(
|
484
|
+
self, oneof_group: typing_extensions.Literal["_account_id", b"_account_id"]
|
485
|
+
) -> typing_extensions.Literal["account_id"] | None: ...
|
486
|
+
@typing.overload
|
487
|
+
def WhichOneof(
|
488
|
+
self, oneof_group: typing_extensions.Literal["_kb_id", b"_kb_id"]
|
489
|
+
) -> typing_extensions.Literal["kb_id"] | None: ...
|
490
|
+
@typing.overload
|
491
|
+
def WhichOneof(
|
492
|
+
self, oneof_group: typing_extensions.Literal["_storage", b"_storage"]
|
493
|
+
) -> typing_extensions.Literal["storage"] | None: ...
|
494
|
+
|
495
|
+
global___KbUsage = KbUsage
|
496
|
+
|
497
|
+
@typing_extensions.final
|
498
|
+
class KbUsageAggregated(google.protobuf.message.Message):
|
499
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
500
|
+
|
501
|
+
KB_USAGES_FIELD_NUMBER: builtins.int
|
502
|
+
@property
|
503
|
+
def kb_usages(
|
504
|
+
self,
|
505
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
506
|
+
global___KbUsage
|
507
|
+
]: ...
|
508
|
+
def __init__(
|
509
|
+
self,
|
510
|
+
*,
|
511
|
+
kb_usages: collections.abc.Iterable[global___KbUsage] | None = ...,
|
512
|
+
) -> None: ...
|
513
|
+
def ClearField(
|
514
|
+
self, field_name: typing_extensions.Literal["kb_usages", b"kb_usages"]
|
515
|
+
) -> None: ...
|
516
|
+
|
517
|
+
global___KbUsageAggregated = KbUsageAggregated
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Copyright (C) 2021 Bosutech XXI S.L.
|
2
|
+
#
|
3
|
+
# nucliadb is offered under the AGPL v3.0 and as commercial software.
|
4
|
+
# For commercial licensing, contact us at info@nuclia.com.
|
5
|
+
#
|
6
|
+
# AGPL:
|
7
|
+
# This program is free software: you can redistribute it and/or modify
|
8
|
+
# it under the terms of the GNU Affero General Public License as
|
9
|
+
# published by the Free Software Foundation, either version 3 of the
|
10
|
+
# License, or (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This program is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU Affero General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU Affero General Public License
|
18
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
"""
|
21
|
+
@generated by mypy-protobuf. Do not edit manually!
|
22
|
+
isort:skip_file
|
23
|
+
"""
|
nucliadb_utils/signals.py
CHANGED
@@ -56,8 +56,8 @@ class Signal:
|
|
56
56
|
|
57
57
|
async def dispatch(self, payload: Any):
|
58
58
|
"""Send signal to all registered callbacks by they priority order."""
|
59
|
-
assert (
|
60
|
-
|
59
|
+
assert isinstance(
|
60
|
+
payload, self.payload_model_type
|
61
61
|
), "Can't dispatch a signal with an invalid model"
|
62
62
|
|
63
63
|
awaitables = [
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
|
-
Name:
|
3
|
-
Version: 4.0.1.
|
2
|
+
Name: nucliadb_utils
|
3
|
+
Version: 4.0.1.post551
|
4
4
|
Home-page: https://nuclia.com
|
5
5
|
License: BSD
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
@@ -8,6 +8,7 @@ Classifier: Programming Language :: Python
|
|
8
8
|
Classifier: Programming Language :: Python :: 3.9
|
9
9
|
Classifier: Programming Language :: Python :: 3.10
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
11
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
12
13
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
13
14
|
Requires-Python: >=3.9, <4
|
@@ -22,8 +23,8 @@ Requires-Dist: PyNaCl
|
|
22
23
|
Requires-Dist: pyjwt >=2.4.0
|
23
24
|
Requires-Dist: memorylru >=1.1.2
|
24
25
|
Requires-Dist: mrflagly
|
25
|
-
Requires-Dist: nucliadb-protos >=4.0.1.
|
26
|
-
Requires-Dist: nucliadb-telemetry >=4.0.1.
|
26
|
+
Requires-Dist: nucliadb-protos >=4.0.1.post551
|
27
|
+
Requires-Dist: nucliadb-telemetry >=4.0.1.post551
|
27
28
|
Provides-Extra: cache
|
28
29
|
Requires-Dist: redis >=4.3.4 ; extra == 'cache'
|
29
30
|
Requires-Dist: orjson >=3.6.7 ; extra == 'cache'
|
@@ -13,7 +13,7 @@ nucliadb_utils/partition.py,sha256=0tmXuwRM_v-OmKoRkB--OMDzomVEkmgxqMmNNomI_24,1
|
|
13
13
|
nucliadb_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
14
|
nucliadb_utils/run.py,sha256=bKMfsPEK6WdWfiPyWPUxCqcLo4tq6eOwyaf910TOwBk,1713
|
15
15
|
nucliadb_utils/settings.py,sha256=sFvYT903OFoIz1do0kDnxVLLucQ1nJDxPPJZJyofqow,7280
|
16
|
-
nucliadb_utils/signals.py,sha256=
|
16
|
+
nucliadb_utils/signals.py,sha256=5r53hZvZmwgKdri5jHEjuHmiaq5TyusUUvjoq2uliIc,2704
|
17
17
|
nucliadb_utils/store.py,sha256=kQ35HemE0v4_Qg6xVqNIJi8vSFAYQtwI3rDtMsNy62Y,890
|
18
18
|
nucliadb_utils/transaction.py,sha256=CQpsuF-E2omh4gGMxXCn0dv7vL9ctxooWpSgWGbGfBA,7212
|
19
19
|
nucliadb_utils/utilities.py,sha256=s5MVXDj4DTtc1VPFBRxMjud3HB0xkadyQ0f7QQLb0NM,14178
|
@@ -33,7 +33,9 @@ nucliadb_utils/fastapi/versioning.py,sha256=uOVdKl8GzBt8L1YnU5GjBsNeDdFV2yrjjYFE
|
|
33
33
|
nucliadb_utils/nuclia_usage/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
34
34
|
nucliadb_utils/nuclia_usage/protos/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
35
35
|
nucliadb_utils/nuclia_usage/protos/kb_usage_pb2.py,sha256=7jBWh5aFkNOU6rF_rdp-twZONgrJe3ztJdqKvRWcMM4,5934
|
36
|
+
nucliadb_utils/nuclia_usage/protos/kb_usage_pb2.pyi,sha256=xhyc3jJBh0KZuWcgmIbwSkWYfoUKHDC8Fqa7GBjwkmE,15983
|
36
37
|
nucliadb_utils/nuclia_usage/protos/kb_usage_pb2_grpc.py,sha256=dhop8WwjplPfORYPYb9HtcS9gHMzqXPJQGqXYRjV-6M,1008
|
38
|
+
nucliadb_utils/nuclia_usage/protos/kb_usage_pb2_grpc.pyi,sha256=6RIsZ2934iodEckflpBStgLKEkFhKfNmZ72UKg2Bwb4,911
|
37
39
|
nucliadb_utils/nuclia_usage/utils/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
38
40
|
nucliadb_utils/nuclia_usage/utils/kb_usage_report.py,sha256=E1eUSFXBVNzQP9Q2rWj9y3koCO5S7iKwckny_AoLKuk,3870
|
39
41
|
nucliadb_utils/storages/__init__.py,sha256=5Qc8AUWiJv9_JbGCBpAn88AIJhwDlm0OPQpg2ZdRL4U,872
|
@@ -69,8 +71,8 @@ nucliadb_utils/tests/unit/storages/test_aws.py,sha256=GCsB_jwCUNV3Ogt8TZZEmNKAHv
|
|
69
71
|
nucliadb_utils/tests/unit/storages/test_gcs.py,sha256=2XzJwgNpfjVGjtE-QdZhu3ayuT1EMEXINdM-_SatPCY,3554
|
70
72
|
nucliadb_utils/tests/unit/storages/test_pg.py,sha256=sJfUttMSzq8W1XYolAUcMxl_R5HcEzb5fpCklPeMJiY,17000
|
71
73
|
nucliadb_utils/tests/unit/storages/test_storage.py,sha256=54nUtElPwT3GQPTT4638F2awBYRl8nD6me9wWijhtbA,7107
|
72
|
-
nucliadb_utils-4.0.1.
|
73
|
-
nucliadb_utils-4.0.1.
|
74
|
-
nucliadb_utils-4.0.1.
|
75
|
-
nucliadb_utils-4.0.1.
|
76
|
-
nucliadb_utils-4.0.1.
|
74
|
+
nucliadb_utils-4.0.1.post551.dist-info/METADATA,sha256=GIfS9DPRjVJ04_W0UhU8jOo12xExH2wSPSxl04TFdd4,2030
|
75
|
+
nucliadb_utils-4.0.1.post551.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
76
|
+
nucliadb_utils-4.0.1.post551.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
77
|
+
nucliadb_utils-4.0.1.post551.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
78
|
+
nucliadb_utils-4.0.1.post551.dist-info/RECORD,,
|
File without changes
|
{nucliadb_utils-4.0.1.post548.dist-info → nucliadb_utils-4.0.1.post551.dist-info}/top_level.txt
RENAMED
File without changes
|
File without changes
|