nucliadb-utils 5.1.2.post1390__py3-none-any.whl → 5.1.2.post1407__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/audit/stream.py +7 -7
- nucliadb_utils/nuclia_usage/utils/kb_usage_report.py +1 -1
- {nucliadb_utils-5.1.2.post1390.dist-info → nucliadb_utils-5.1.2.post1407.dist-info}/METADATA +3 -3
- {nucliadb_utils-5.1.2.post1390.dist-info → nucliadb_utils-5.1.2.post1407.dist-info}/RECORD +7 -12
- nucliadb_utils/nuclia_usage/protos/__init__.py +0 -19
- nucliadb_utils/nuclia_usage/protos/kb_usage_pb2.py +0 -69
- nucliadb_utils/nuclia_usage/protos/kb_usage_pb2.pyi +0 -344
- nucliadb_utils/nuclia_usage/protos/kb_usage_pb2_grpc.py +0 -23
- nucliadb_utils/nuclia_usage/protos/kb_usage_pb2_grpc.pyi +0 -24
- {nucliadb_utils-5.1.2.post1390.dist-info → nucliadb_utils-5.1.2.post1407.dist-info}/WHEEL +0 -0
- {nucliadb_utils-5.1.2.post1390.dist-info → nucliadb_utils-5.1.2.post1407.dist-info}/top_level.txt +0 -0
- {nucliadb_utils-5.1.2.post1390.dist-info → nucliadb_utils-5.1.2.post1407.dist-info}/zip-safe +0 -0
nucliadb_utils/audit/stream.py
CHANGED
@@ -34,21 +34,21 @@ from starlette.responses import Response, StreamingResponse
|
|
34
34
|
from starlette.types import ASGIApp
|
35
35
|
|
36
36
|
from nucliadb_protos.audit_pb2 import AuditField, AuditRequest, ChatContext, ClientType, RetrievedContext
|
37
|
-
from nucliadb_protos.
|
38
|
-
from nucliadb_protos.resources_pb2 import FieldID
|
39
|
-
from nucliadb_utils import logger
|
40
|
-
from nucliadb_utils.audit.audit import AuditStorage
|
41
|
-
from nucliadb_utils.nats import get_traced_jetstream
|
42
|
-
from nucliadb_utils.nuclia_usage.protos.kb_usage_pb2 import (
|
37
|
+
from nucliadb_protos.kb_usage_pb2 import (
|
43
38
|
ClientType as ClientTypeKbUsage,
|
44
39
|
)
|
45
|
-
from
|
40
|
+
from nucliadb_protos.kb_usage_pb2 import (
|
46
41
|
KBSource,
|
47
42
|
Search,
|
48
43
|
SearchType,
|
49
44
|
Service,
|
50
45
|
Storage,
|
51
46
|
)
|
47
|
+
from nucliadb_protos.nodereader_pb2 import SearchRequest
|
48
|
+
from nucliadb_protos.resources_pb2 import FieldID
|
49
|
+
from nucliadb_utils import logger
|
50
|
+
from nucliadb_utils.audit.audit import AuditStorage
|
51
|
+
from nucliadb_utils.nats import get_traced_jetstream
|
52
52
|
from nucliadb_utils.nuclia_usage.utils.kb_usage_report import KbUsageReportUtility
|
53
53
|
|
54
54
|
|
{nucliadb_utils-5.1.2.post1390.dist-info → nucliadb_utils-5.1.2.post1407.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nucliadb_utils
|
3
|
-
Version: 5.1.2.
|
3
|
+
Version: 5.1.2.post1407
|
4
4
|
Home-page: https://nuclia.com
|
5
5
|
License: BSD
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
@@ -24,8 +24,8 @@ Requires-Dist: PyNaCl
|
|
24
24
|
Requires-Dist: pyjwt>=2.4.0
|
25
25
|
Requires-Dist: memorylru>=1.1.2
|
26
26
|
Requires-Dist: mrflagly>=0.2.9
|
27
|
-
Requires-Dist: nucliadb-protos>=5.1.2.
|
28
|
-
Requires-Dist: nucliadb-telemetry>=5.1.2.
|
27
|
+
Requires-Dist: nucliadb-protos>=5.1.2.post1407
|
28
|
+
Requires-Dist: nucliadb-telemetry>=5.1.2.post1407
|
29
29
|
Provides-Extra: cache
|
30
30
|
Requires-Dist: redis>=4.3.4; extra == "cache"
|
31
31
|
Requires-Dist: orjson>=3.6.7; extra == "cache"
|
@@ -24,7 +24,7 @@ nucliadb_utils/aiopynecone/models.py,sha256=XkNIZx4bxdbVo9zYVn8IRp70q4DWUMWN79yb
|
|
24
24
|
nucliadb_utils/audit/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
25
25
|
nucliadb_utils/audit/audit.py,sha256=25Tzwmh0l8e4MvYGlmhHNt9awSb-gDAUdEjvtqFODnc,3049
|
26
26
|
nucliadb_utils/audit/basic.py,sha256=_iZl7u5QB-Vl0ar5ZpmxppeFV0OdNHdcs6o0_W32eEw,3660
|
27
|
-
nucliadb_utils/audit/stream.py,sha256=
|
27
|
+
nucliadb_utils/audit/stream.py,sha256=ww11OmqKZ8AOXVrN1sizIfEqJbEjkqldV1ts8od_6cY,13845
|
28
28
|
nucliadb_utils/cache/__init__.py,sha256=itSI7dtTwFP55YMX4iK7JzdMHS5CQVUiB1XzQu4UBh8,833
|
29
29
|
nucliadb_utils/cache/exceptions.py,sha256=Zu-O_-0-yctOEgoDGI92gPzWfBMRrpiAyESA62ld6MA,975
|
30
30
|
nucliadb_utils/cache/nats.py,sha256=-AjCfkFgKVdJUlGR0hT9JDSNkPVFg4S6w9eW-ZIcXPM,7037
|
@@ -37,13 +37,8 @@ nucliadb_utils/fastapi/openapi.py,sha256=b0pLuri0QuzQd0elDyOVXM42YYmES_cmT-jEfsQ
|
|
37
37
|
nucliadb_utils/fastapi/run.py,sha256=n6vOX64QqF1I5n4UlKnpm_ZJ24rmwfRGi-J9YMGpZzA,3631
|
38
38
|
nucliadb_utils/fastapi/versioning.py,sha256=pwiwuesJW1jElUUI3pI5kcxkigfGBvI64IL6QCBEWS8,3805
|
39
39
|
nucliadb_utils/nuclia_usage/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
40
|
-
nucliadb_utils/nuclia_usage/protos/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
41
|
-
nucliadb_utils/nuclia_usage/protos/kb_usage_pb2.py,sha256=9pDy1QE4E6Z_q7x86_8FwHHLJYDSgmvt8LRD7NJiy88,5925
|
42
|
-
nucliadb_utils/nuclia_usage/protos/kb_usage_pb2.pyi,sha256=lA1BiWVOQWioPHPxrfzKZSrj-zyfOlO_H2IEYYdyWtU,14567
|
43
|
-
nucliadb_utils/nuclia_usage/protos/kb_usage_pb2_grpc.py,sha256=3XT17o832unN2OTBPXho5jj8mm0_8ChSr6m5Jds7SF8,1008
|
44
|
-
nucliadb_utils/nuclia_usage/protos/kb_usage_pb2_grpc.pyi,sha256=sXLWrl7G0vtMXs49h-efrwKWc6A_TU420zF9xBMv_ng,926
|
45
40
|
nucliadb_utils/nuclia_usage/utils/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
46
|
-
nucliadb_utils/nuclia_usage/utils/kb_usage_report.py,sha256=
|
41
|
+
nucliadb_utils/nuclia_usage/utils/kb_usage_report.py,sha256=F6dhQWhrWzl3qfAdvrqV08hnFKcvFlU8IWN2lzYX0vg,3628
|
47
42
|
nucliadb_utils/storages/__init__.py,sha256=5Qc8AUWiJv9_JbGCBpAn88AIJhwDlm0OPQpg2ZdRL4U,872
|
48
43
|
nucliadb_utils/storages/azure.py,sha256=egMDwLNIGSQyVevuySt2AswzFdNAcih05BbRg3-p8IU,16015
|
49
44
|
nucliadb_utils/storages/exceptions.py,sha256=mm_wX4YRtp7u7enkk_4pMSlX5AQQuFbq4xLmupVDt3Y,2502
|
@@ -64,8 +59,8 @@ nucliadb_utils/tests/indexing.py,sha256=YW2QhkhO9Q_8A4kKWJaWSvXvyQ_AiAwY1VylcfVQ
|
|
64
59
|
nucliadb_utils/tests/local.py,sha256=7nuP8EFUAiA8ZH50R1iPV9EUXBySQxOanVm3Zht_e0g,1835
|
65
60
|
nucliadb_utils/tests/nats.py,sha256=xqpww4jZjTKY9oPGlJdDJG67L3FIBQsa9qDHxILR8r8,7687
|
66
61
|
nucliadb_utils/tests/s3.py,sha256=IdMxK_cNdSHLvO1u8BwsKFzD87Hk1MVPDZ57zx6h-rA,3656
|
67
|
-
nucliadb_utils-5.1.2.
|
68
|
-
nucliadb_utils-5.1.2.
|
69
|
-
nucliadb_utils-5.1.2.
|
70
|
-
nucliadb_utils-5.1.2.
|
71
|
-
nucliadb_utils-5.1.2.
|
62
|
+
nucliadb_utils-5.1.2.post1407.dist-info/METADATA,sha256=JCvSfDGps30VylosPboGRoH-ldWvh3PN-yLTmbK-hGA,2071
|
63
|
+
nucliadb_utils-5.1.2.post1407.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
64
|
+
nucliadb_utils-5.1.2.post1407.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
65
|
+
nucliadb_utils-5.1.2.post1407.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
66
|
+
nucliadb_utils-5.1.2.post1407.dist-info/RECORD,,
|
@@ -1,19 +0,0 @@
|
|
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
|
-
#
|
@@ -1,69 +0,0 @@
|
|
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
|
-
# -*- coding: utf-8 -*-
|
22
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
23
|
-
# source: protos/kb_usage.proto
|
24
|
-
# Protobuf Python Version: 4.25.1
|
25
|
-
"""Generated protocol buffer code."""
|
26
|
-
from google.protobuf import descriptor as _descriptor
|
27
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
28
|
-
from google.protobuf import symbol_database as _symbol_database
|
29
|
-
from google.protobuf.internal import builder as _builder
|
30
|
-
# @@protoc_insertion_point(imports)
|
31
|
-
|
32
|
-
_sym_db = _symbol_database.Default()
|
33
|
-
|
34
|
-
|
35
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
36
|
-
|
37
|
-
|
38
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15protos/kb_usage.proto\x12\x08kb_usage\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf2\x01\n\x07Process\x12$\n\x06\x63lient\x18\x01 \x01(\x0e\x32\x14.kb_usage.ClientType\x12\x1c\n\x14slow_processing_time\x18\x02 \x01(\x02\x12\x1b\n\x13pre_processing_time\x18\x03 \x01(\x02\x12\r\n\x05\x62ytes\x18\x04 \x01(\x04\x12\r\n\x05\x63hars\x18\x05 \x01(\r\x12\x15\n\rmedia_seconds\x18\x06 \x01(\r\x12\r\n\x05pages\x18\x07 \x01(\r\x12\x12\n\nparagraphs\x18\x08 \x01(\r\x12\x17\n\x0bmedia_files\x18\t \x01(\rB\x02\x18\x01\x12\x15\n\rnum_processed\x18\n \x01(\r\"\x95\x01\n\x07Storage\x12\x17\n\nparagraphs\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x13\n\x06\x66ields\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x16\n\tresources\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12\x12\n\x05\x62ytes\x18\x04 \x01(\x04H\x03\x88\x01\x01\x42\r\n\x0b_paragraphsB\t\n\x07_fieldsB\x0c\n\n_resourcesB\x08\n\x06_bytes\"x\n\x06Search\x12$\n\x06\x63lient\x18\x01 \x01(\x0e\x32\x14.kb_usage.ClientType\x12\"\n\x04type\x18\x02 \x01(\x0e\x32\x14.kb_usage.SearchType\x12\x0e\n\x06tokens\x18\x03 \x01(\r\x12\x14\n\x0cnum_searches\x18\x04 \x01(\r\"\xa7\x01\n\x07Predict\x12$\n\x06\x63lient\x18\x01 \x01(\x0e\x32\x14.kb_usage.ClientType\x12#\n\x04type\x18\x02 \x01(\x0e\x32\x15.kb_usage.PredictType\x12\r\n\x05model\x18\x03 \x01(\t\x12\r\n\x05input\x18\x04 \x01(\r\x12\x0e\n\x06output\x18\x05 \x01(\r\x12\r\n\x05image\x18\x06 \x01(\r\x12\x14\n\x0cnum_predicts\x18\x07 \x01(\r\"\xed\x02\n\x07KbUsage\x12\"\n\x07service\x18\x01 \x01(\x0e\x32\x11.kb_usage.Service\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\naccount_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05kb_id\x18\x04 \x01(\tH\x01\x88\x01\x01\x12%\n\tkb_source\x18\x05 \x01(\x0e\x32\x12.kb_usage.KBSource\x12$\n\tprocesses\x18\x06 \x03(\x0b\x32\x11.kb_usage.Process\x12#\n\x08predicts\x18\x07 \x03(\x0b\x32\x11.kb_usage.Predict\x12\"\n\x08searches\x18\x08 \x03(\x0b\x32\x10.kb_usage.Search\x12\'\n\x07storage\x18\t \x01(\x0b\x32\x11.kb_usage.StorageH\x02\x88\x01\x01\x42\r\n\x0b_account_idB\x08\n\x06_kb_idB\n\n\x08_storage\"9\n\x11KbUsageAggregated\x12$\n\tkb_usages\x18\x01 \x03(\x0b\x32\x11.kb_usage.KbUsage*\"\n\x08KBSource\x12\n\n\x06HOSTED\x10\x00\x12\n\n\x06ONPREM\x10\x01*5\n\x07Service\x12\x0b\n\x07PREDICT\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\r\n\tNUCLIA_DB\x10\x02*%\n\nSearchType\x12\n\n\x06SEARCH\x10\x00\x12\x0b\n\x07SUGGEST\x10\x01*\xa0\x01\n\x0bPredictType\x12\x0c\n\x08SENTENCE\x10\x00\x12\t\n\x05TOKEN\x10\x01\x12\x13\n\x0fQUESTION_ANSWER\x10\x02\x12\x0c\n\x08REPHRASE\x10\x03\x12\r\n\tSUMMARIZE\x10\x04\x12\x12\n\x0e\x45XTRACT_TABLES\x10\x05\x12\n\n\x06RERANK\x10\x06\x12\r\n\tRELATIONS\x10\x07\x12\n\n\x06SPEECH\x10\x08\x12\x0b\n\x07\x43\x41PTION\x10\t*j\n\nClientType\x12\x07\n\x03\x41PI\x10\x00\x12\x07\n\x03WEB\x10\x01\x12\n\n\x06WIDGET\x10\x02\x12\x0b\n\x07\x44\x45SKTOP\x10\x03\x12\r\n\tDASHBOARD\x10\x04\x12\x14\n\x10\x43HROME_EXTENSION\x10\x05\x12\x0c\n\x08INTERNAL\x10\x06\x62\x06proto3')
|
39
|
-
|
40
|
-
_globals = globals()
|
41
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
42
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protos.kb_usage_pb2', _globals)
|
43
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
44
|
-
DESCRIPTOR._options = None
|
45
|
-
_globals['_PROCESS'].fields_by_name['media_files']._options = None
|
46
|
-
_globals['_PROCESS'].fields_by_name['media_files']._serialized_options = b'\030\001'
|
47
|
-
_globals['_KBSOURCE']._serialized_start=1184
|
48
|
-
_globals['_KBSOURCE']._serialized_end=1218
|
49
|
-
_globals['_SERVICE']._serialized_start=1220
|
50
|
-
_globals['_SERVICE']._serialized_end=1273
|
51
|
-
_globals['_SEARCHTYPE']._serialized_start=1275
|
52
|
-
_globals['_SEARCHTYPE']._serialized_end=1312
|
53
|
-
_globals['_PREDICTTYPE']._serialized_start=1315
|
54
|
-
_globals['_PREDICTTYPE']._serialized_end=1475
|
55
|
-
_globals['_CLIENTTYPE']._serialized_start=1477
|
56
|
-
_globals['_CLIENTTYPE']._serialized_end=1583
|
57
|
-
_globals['_PROCESS']._serialized_start=69
|
58
|
-
_globals['_PROCESS']._serialized_end=311
|
59
|
-
_globals['_STORAGE']._serialized_start=314
|
60
|
-
_globals['_STORAGE']._serialized_end=463
|
61
|
-
_globals['_SEARCH']._serialized_start=465
|
62
|
-
_globals['_SEARCH']._serialized_end=585
|
63
|
-
_globals['_PREDICT']._serialized_start=588
|
64
|
-
_globals['_PREDICT']._serialized_end=755
|
65
|
-
_globals['_KBUSAGE']._serialized_start=758
|
66
|
-
_globals['_KBUSAGE']._serialized_end=1123
|
67
|
-
_globals['_KBUSAGEAGGREGATED']._serialized_start=1125
|
68
|
-
_globals['_KBUSAGEAGGREGATED']._serialized_end=1182
|
69
|
-
# @@protoc_insertion_point(module_scope)
|
@@ -1,344 +0,0 @@
|
|
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(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_KBSource.ValueType], builtins.type):
|
47
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
48
|
-
HOSTED: _KBSource.ValueType # 0
|
49
|
-
ONPREM: _KBSource.ValueType # 1
|
50
|
-
|
51
|
-
class KBSource(_KBSource, metaclass=_KBSourceEnumTypeWrapper): ...
|
52
|
-
|
53
|
-
HOSTED: KBSource.ValueType # 0
|
54
|
-
ONPREM: KBSource.ValueType # 1
|
55
|
-
global___KBSource = KBSource
|
56
|
-
|
57
|
-
class _Service:
|
58
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
59
|
-
V: typing_extensions.TypeAlias = ValueType
|
60
|
-
|
61
|
-
class _ServiceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Service.ValueType], builtins.type):
|
62
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
63
|
-
PREDICT: _Service.ValueType # 0
|
64
|
-
PROCESSING: _Service.ValueType # 1
|
65
|
-
NUCLIA_DB: _Service.ValueType # 2
|
66
|
-
|
67
|
-
class Service(_Service, metaclass=_ServiceEnumTypeWrapper): ...
|
68
|
-
|
69
|
-
PREDICT: Service.ValueType # 0
|
70
|
-
PROCESSING: Service.ValueType # 1
|
71
|
-
NUCLIA_DB: Service.ValueType # 2
|
72
|
-
global___Service = Service
|
73
|
-
|
74
|
-
class _SearchType:
|
75
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
76
|
-
V: typing_extensions.TypeAlias = ValueType
|
77
|
-
|
78
|
-
class _SearchTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SearchType.ValueType], builtins.type):
|
79
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
80
|
-
SEARCH: _SearchType.ValueType # 0
|
81
|
-
SUGGEST: _SearchType.ValueType # 1
|
82
|
-
|
83
|
-
class SearchType(_SearchType, metaclass=_SearchTypeEnumTypeWrapper): ...
|
84
|
-
|
85
|
-
SEARCH: SearchType.ValueType # 0
|
86
|
-
SUGGEST: SearchType.ValueType # 1
|
87
|
-
global___SearchType = SearchType
|
88
|
-
|
89
|
-
class _PredictType:
|
90
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
91
|
-
V: typing_extensions.TypeAlias = ValueType
|
92
|
-
|
93
|
-
class _PredictTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PredictType.ValueType], builtins.type):
|
94
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
95
|
-
SENTENCE: _PredictType.ValueType # 0
|
96
|
-
TOKEN: _PredictType.ValueType # 1
|
97
|
-
QUESTION_ANSWER: _PredictType.ValueType # 2
|
98
|
-
REPHRASE: _PredictType.ValueType # 3
|
99
|
-
SUMMARIZE: _PredictType.ValueType # 4
|
100
|
-
EXTRACT_TABLES: _PredictType.ValueType # 5
|
101
|
-
RERANK: _PredictType.ValueType # 6
|
102
|
-
RELATIONS: _PredictType.ValueType # 7
|
103
|
-
SPEECH: _PredictType.ValueType # 8
|
104
|
-
CAPTION: _PredictType.ValueType # 9
|
105
|
-
|
106
|
-
class PredictType(_PredictType, metaclass=_PredictTypeEnumTypeWrapper): ...
|
107
|
-
|
108
|
-
SENTENCE: PredictType.ValueType # 0
|
109
|
-
TOKEN: PredictType.ValueType # 1
|
110
|
-
QUESTION_ANSWER: PredictType.ValueType # 2
|
111
|
-
REPHRASE: PredictType.ValueType # 3
|
112
|
-
SUMMARIZE: PredictType.ValueType # 4
|
113
|
-
EXTRACT_TABLES: PredictType.ValueType # 5
|
114
|
-
RERANK: PredictType.ValueType # 6
|
115
|
-
RELATIONS: PredictType.ValueType # 7
|
116
|
-
SPEECH: PredictType.ValueType # 8
|
117
|
-
CAPTION: PredictType.ValueType # 9
|
118
|
-
global___PredictType = PredictType
|
119
|
-
|
120
|
-
class _ClientType:
|
121
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
122
|
-
V: typing_extensions.TypeAlias = ValueType
|
123
|
-
|
124
|
-
class _ClientTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ClientType.ValueType], builtins.type):
|
125
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
126
|
-
API: _ClientType.ValueType # 0
|
127
|
-
WEB: _ClientType.ValueType # 1
|
128
|
-
WIDGET: _ClientType.ValueType # 2
|
129
|
-
DESKTOP: _ClientType.ValueType # 3
|
130
|
-
DASHBOARD: _ClientType.ValueType # 4
|
131
|
-
CHROME_EXTENSION: _ClientType.ValueType # 5
|
132
|
-
INTERNAL: _ClientType.ValueType # 6
|
133
|
-
|
134
|
-
class ClientType(_ClientType, metaclass=_ClientTypeEnumTypeWrapper): ...
|
135
|
-
|
136
|
-
API: ClientType.ValueType # 0
|
137
|
-
WEB: ClientType.ValueType # 1
|
138
|
-
WIDGET: ClientType.ValueType # 2
|
139
|
-
DESKTOP: ClientType.ValueType # 3
|
140
|
-
DASHBOARD: ClientType.ValueType # 4
|
141
|
-
CHROME_EXTENSION: ClientType.ValueType # 5
|
142
|
-
INTERNAL: ClientType.ValueType # 6
|
143
|
-
global___ClientType = ClientType
|
144
|
-
|
145
|
-
@typing_extensions.final
|
146
|
-
class Process(google.protobuf.message.Message):
|
147
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
148
|
-
|
149
|
-
CLIENT_FIELD_NUMBER: builtins.int
|
150
|
-
SLOW_PROCESSING_TIME_FIELD_NUMBER: builtins.int
|
151
|
-
PRE_PROCESSING_TIME_FIELD_NUMBER: builtins.int
|
152
|
-
BYTES_FIELD_NUMBER: builtins.int
|
153
|
-
CHARS_FIELD_NUMBER: builtins.int
|
154
|
-
MEDIA_SECONDS_FIELD_NUMBER: builtins.int
|
155
|
-
PAGES_FIELD_NUMBER: builtins.int
|
156
|
-
PARAGRAPHS_FIELD_NUMBER: builtins.int
|
157
|
-
MEDIA_FILES_FIELD_NUMBER: builtins.int
|
158
|
-
NUM_PROCESSED_FIELD_NUMBER: builtins.int
|
159
|
-
client: global___ClientType.ValueType
|
160
|
-
slow_processing_time: builtins.float
|
161
|
-
pre_processing_time: builtins.float
|
162
|
-
bytes: builtins.int
|
163
|
-
chars: builtins.int
|
164
|
-
media_seconds: builtins.int
|
165
|
-
pages: builtins.int
|
166
|
-
paragraphs: builtins.int
|
167
|
-
media_files: builtins.int
|
168
|
-
num_processed: builtins.int
|
169
|
-
def __init__(
|
170
|
-
self,
|
171
|
-
*,
|
172
|
-
client: global___ClientType.ValueType = ...,
|
173
|
-
slow_processing_time: builtins.float = ...,
|
174
|
-
pre_processing_time: builtins.float = ...,
|
175
|
-
bytes: builtins.int = ...,
|
176
|
-
chars: builtins.int = ...,
|
177
|
-
media_seconds: builtins.int = ...,
|
178
|
-
pages: builtins.int = ...,
|
179
|
-
paragraphs: builtins.int = ...,
|
180
|
-
media_files: builtins.int = ...,
|
181
|
-
num_processed: builtins.int = ...,
|
182
|
-
) -> None: ...
|
183
|
-
def ClearField(self, field_name: typing_extensions.Literal["bytes", b"bytes", "chars", b"chars", "client", b"client", "media_files", b"media_files", "media_seconds", b"media_seconds", "num_processed", b"num_processed", "pages", b"pages", "paragraphs", b"paragraphs", "pre_processing_time", b"pre_processing_time", "slow_processing_time", b"slow_processing_time"]) -> None: ...
|
184
|
-
|
185
|
-
global___Process = Process
|
186
|
-
|
187
|
-
@typing_extensions.final
|
188
|
-
class Storage(google.protobuf.message.Message):
|
189
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
190
|
-
|
191
|
-
PARAGRAPHS_FIELD_NUMBER: builtins.int
|
192
|
-
FIELDS_FIELD_NUMBER: builtins.int
|
193
|
-
RESOURCES_FIELD_NUMBER: builtins.int
|
194
|
-
BYTES_FIELD_NUMBER: builtins.int
|
195
|
-
paragraphs: builtins.int
|
196
|
-
fields: builtins.int
|
197
|
-
resources: builtins.int
|
198
|
-
bytes: builtins.int
|
199
|
-
def __init__(
|
200
|
-
self,
|
201
|
-
*,
|
202
|
-
paragraphs: builtins.int | None = ...,
|
203
|
-
fields: builtins.int | None = ...,
|
204
|
-
resources: builtins.int | None = ...,
|
205
|
-
bytes: builtins.int | None = ...,
|
206
|
-
) -> None: ...
|
207
|
-
def HasField(self, field_name: typing_extensions.Literal["_bytes", b"_bytes", "_fields", b"_fields", "_paragraphs", b"_paragraphs", "_resources", b"_resources", "bytes", b"bytes", "fields", b"fields", "paragraphs", b"paragraphs", "resources", b"resources"]) -> builtins.bool: ...
|
208
|
-
def ClearField(self, field_name: typing_extensions.Literal["_bytes", b"_bytes", "_fields", b"_fields", "_paragraphs", b"_paragraphs", "_resources", b"_resources", "bytes", b"bytes", "fields", b"fields", "paragraphs", b"paragraphs", "resources", b"resources"]) -> None: ...
|
209
|
-
@typing.overload
|
210
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["_bytes", b"_bytes"]) -> typing_extensions.Literal["bytes"] | None: ...
|
211
|
-
@typing.overload
|
212
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["_fields", b"_fields"]) -> typing_extensions.Literal["fields"] | None: ...
|
213
|
-
@typing.overload
|
214
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["_paragraphs", b"_paragraphs"]) -> typing_extensions.Literal["paragraphs"] | None: ...
|
215
|
-
@typing.overload
|
216
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["_resources", b"_resources"]) -> typing_extensions.Literal["resources"] | None: ...
|
217
|
-
|
218
|
-
global___Storage = Storage
|
219
|
-
|
220
|
-
@typing_extensions.final
|
221
|
-
class Search(google.protobuf.message.Message):
|
222
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
223
|
-
|
224
|
-
CLIENT_FIELD_NUMBER: builtins.int
|
225
|
-
TYPE_FIELD_NUMBER: builtins.int
|
226
|
-
TOKENS_FIELD_NUMBER: builtins.int
|
227
|
-
NUM_SEARCHES_FIELD_NUMBER: builtins.int
|
228
|
-
client: global___ClientType.ValueType
|
229
|
-
type: global___SearchType.ValueType
|
230
|
-
tokens: builtins.int
|
231
|
-
num_searches: builtins.int
|
232
|
-
def __init__(
|
233
|
-
self,
|
234
|
-
*,
|
235
|
-
client: global___ClientType.ValueType = ...,
|
236
|
-
type: global___SearchType.ValueType = ...,
|
237
|
-
tokens: builtins.int = ...,
|
238
|
-
num_searches: builtins.int = ...,
|
239
|
-
) -> None: ...
|
240
|
-
def ClearField(self, field_name: typing_extensions.Literal["client", b"client", "num_searches", b"num_searches", "tokens", b"tokens", "type", b"type"]) -> None: ...
|
241
|
-
|
242
|
-
global___Search = Search
|
243
|
-
|
244
|
-
@typing_extensions.final
|
245
|
-
class Predict(google.protobuf.message.Message):
|
246
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
247
|
-
|
248
|
-
CLIENT_FIELD_NUMBER: builtins.int
|
249
|
-
TYPE_FIELD_NUMBER: builtins.int
|
250
|
-
MODEL_FIELD_NUMBER: builtins.int
|
251
|
-
INPUT_FIELD_NUMBER: builtins.int
|
252
|
-
OUTPUT_FIELD_NUMBER: builtins.int
|
253
|
-
IMAGE_FIELD_NUMBER: builtins.int
|
254
|
-
NUM_PREDICTS_FIELD_NUMBER: builtins.int
|
255
|
-
client: global___ClientType.ValueType
|
256
|
-
type: global___PredictType.ValueType
|
257
|
-
model: builtins.str
|
258
|
-
input: builtins.int
|
259
|
-
output: builtins.int
|
260
|
-
image: builtins.int
|
261
|
-
num_predicts: builtins.int
|
262
|
-
def __init__(
|
263
|
-
self,
|
264
|
-
*,
|
265
|
-
client: global___ClientType.ValueType = ...,
|
266
|
-
type: global___PredictType.ValueType = ...,
|
267
|
-
model: builtins.str = ...,
|
268
|
-
input: builtins.int = ...,
|
269
|
-
output: builtins.int = ...,
|
270
|
-
image: builtins.int = ...,
|
271
|
-
num_predicts: builtins.int = ...,
|
272
|
-
) -> None: ...
|
273
|
-
def ClearField(self, field_name: typing_extensions.Literal["client", b"client", "image", b"image", "input", b"input", "model", b"model", "num_predicts", b"num_predicts", "output", b"output", "type", b"type"]) -> None: ...
|
274
|
-
|
275
|
-
global___Predict = Predict
|
276
|
-
|
277
|
-
@typing_extensions.final
|
278
|
-
class KbUsage(google.protobuf.message.Message):
|
279
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
280
|
-
|
281
|
-
SERVICE_FIELD_NUMBER: builtins.int
|
282
|
-
TIMESTAMP_FIELD_NUMBER: builtins.int
|
283
|
-
ACCOUNT_ID_FIELD_NUMBER: builtins.int
|
284
|
-
KB_ID_FIELD_NUMBER: builtins.int
|
285
|
-
KB_SOURCE_FIELD_NUMBER: builtins.int
|
286
|
-
PROCESSES_FIELD_NUMBER: builtins.int
|
287
|
-
PREDICTS_FIELD_NUMBER: builtins.int
|
288
|
-
SEARCHES_FIELD_NUMBER: builtins.int
|
289
|
-
STORAGE_FIELD_NUMBER: builtins.int
|
290
|
-
service: global___Service.ValueType
|
291
|
-
"""Identifiers"""
|
292
|
-
@property
|
293
|
-
def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
294
|
-
account_id: builtins.str
|
295
|
-
kb_id: builtins.str
|
296
|
-
kb_source: global___KBSource.ValueType
|
297
|
-
@property
|
298
|
-
def processes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Process]:
|
299
|
-
"""Data"""
|
300
|
-
@property
|
301
|
-
def predicts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Predict]: ...
|
302
|
-
@property
|
303
|
-
def searches(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Search]: ...
|
304
|
-
@property
|
305
|
-
def storage(self) -> global___Storage: ...
|
306
|
-
def __init__(
|
307
|
-
self,
|
308
|
-
*,
|
309
|
-
service: global___Service.ValueType = ...,
|
310
|
-
timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
311
|
-
account_id: builtins.str | None = ...,
|
312
|
-
kb_id: builtins.str | None = ...,
|
313
|
-
kb_source: global___KBSource.ValueType = ...,
|
314
|
-
processes: collections.abc.Iterable[global___Process] | None = ...,
|
315
|
-
predicts: collections.abc.Iterable[global___Predict] | None = ...,
|
316
|
-
searches: collections.abc.Iterable[global___Search] | None = ...,
|
317
|
-
storage: global___Storage | None = ...,
|
318
|
-
) -> None: ...
|
319
|
-
def HasField(self, field_name: typing_extensions.Literal["_account_id", b"_account_id", "_kb_id", b"_kb_id", "_storage", b"_storage", "account_id", b"account_id", "kb_id", b"kb_id", "storage", b"storage", "timestamp", b"timestamp"]) -> builtins.bool: ...
|
320
|
-
def ClearField(self, field_name: typing_extensions.Literal["_account_id", b"_account_id", "_kb_id", b"_kb_id", "_storage", b"_storage", "account_id", b"account_id", "kb_id", b"kb_id", "kb_source", b"kb_source", "predicts", b"predicts", "processes", b"processes", "searches", b"searches", "service", b"service", "storage", b"storage", "timestamp", b"timestamp"]) -> None: ...
|
321
|
-
@typing.overload
|
322
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["_account_id", b"_account_id"]) -> typing_extensions.Literal["account_id"] | None: ...
|
323
|
-
@typing.overload
|
324
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["_kb_id", b"_kb_id"]) -> typing_extensions.Literal["kb_id"] | None: ...
|
325
|
-
@typing.overload
|
326
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["_storage", b"_storage"]) -> typing_extensions.Literal["storage"] | None: ...
|
327
|
-
|
328
|
-
global___KbUsage = KbUsage
|
329
|
-
|
330
|
-
@typing_extensions.final
|
331
|
-
class KbUsageAggregated(google.protobuf.message.Message):
|
332
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
333
|
-
|
334
|
-
KB_USAGES_FIELD_NUMBER: builtins.int
|
335
|
-
@property
|
336
|
-
def kb_usages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___KbUsage]: ...
|
337
|
-
def __init__(
|
338
|
-
self,
|
339
|
-
*,
|
340
|
-
kb_usages: collections.abc.Iterable[global___KbUsage] | None = ...,
|
341
|
-
) -> None: ...
|
342
|
-
def ClearField(self, field_name: typing_extensions.Literal["kb_usages", b"kb_usages"]) -> None: ...
|
343
|
-
|
344
|
-
global___KbUsageAggregated = KbUsageAggregated
|
@@ -1,23 +0,0 @@
|
|
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
|
-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
22
|
-
"""Client and server classes corresponding to protobuf-defined services."""
|
23
|
-
import grpc
|
@@ -1,24 +0,0 @@
|
|
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
|
-
"""
|
File without changes
|
{nucliadb_utils-5.1.2.post1390.dist-info → nucliadb_utils-5.1.2.post1407.dist-info}/top_level.txt
RENAMED
File without changes
|
{nucliadb_utils-5.1.2.post1390.dist-info → nucliadb_utils-5.1.2.post1407.dist-info}/zip-safe
RENAMED
File without changes
|