regula.documentreader.webclient 7.5.147.dev0__py3-none-any.whl → 7.5.149.dev0__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.
- regula/documentreader/webclient/ext/api/document_reader_api.py +0 -16
- regula/documentreader/webclient/ext/models/recognition_request.py +8 -4
- {regula.documentreader.webclient-7.5.147.dev0.dist-info → regula.documentreader.webclient-7.5.149.dev0.dist-info}/METADATA +1 -1
- {regula.documentreader.webclient-7.5.147.dev0.dist-info → regula.documentreader.webclient-7.5.149.dev0.dist-info}/RECORD +6 -6
- {regula.documentreader.webclient-7.5.147.dev0.dist-info → regula.documentreader.webclient-7.5.149.dev0.dist-info}/WHEEL +0 -0
- {regula.documentreader.webclient-7.5.147.dev0.dist-info → regula.documentreader.webclient-7.5.149.dev0.dist-info}/top_level.txt +0 -0
|
@@ -20,13 +20,9 @@ class DocumentReaderApi(HealthcheckApi, ProcessApi):
|
|
|
20
20
|
configuration = Configuration(host=host)
|
|
21
21
|
configuration.debug = debug
|
|
22
22
|
configuration.verify_ssl = verify_ssl
|
|
23
|
-
|
|
24
23
|
self.api_client = ApiClient(configuration=configuration)
|
|
25
|
-
|
|
26
24
|
super().__init__(self.api_client)
|
|
27
25
|
|
|
28
|
-
self.__license = None
|
|
29
|
-
|
|
30
26
|
def __enter__(self):
|
|
31
27
|
return self
|
|
32
28
|
|
|
@@ -36,19 +32,7 @@ class DocumentReaderApi(HealthcheckApi, ProcessApi):
|
|
|
36
32
|
def set_configuration(self, configuration) -> None:
|
|
37
33
|
self.api_client.configuration = configuration
|
|
38
34
|
|
|
39
|
-
@property
|
|
40
|
-
def license(self) -> Base64String:
|
|
41
|
-
return self.__license
|
|
42
|
-
|
|
43
|
-
@license.setter
|
|
44
|
-
def license(self, value: Union[Base64String, bytes]):
|
|
45
|
-
if isinstance(value, bytes):
|
|
46
|
-
self.__license = base64.b64encode(value).decode("utf-8")
|
|
47
|
-
else:
|
|
48
|
-
self.__license = value
|
|
49
|
-
|
|
50
35
|
def process(self, process_request: ProcessRequest) -> RecognitionResponse:
|
|
51
|
-
process_request.system_info.license = self.license
|
|
52
36
|
return RecognitionResponse(self.api_process(process_request))
|
|
53
37
|
|
|
54
38
|
def deserialize_to_recognition_response(self, content: Union[bytes, bytearray, str]) -> RecognitionResponse:
|
|
@@ -75,13 +75,17 @@ class RecognitionRequest(ProcessRequest):
|
|
|
75
75
|
else:
|
|
76
76
|
input_images.append(image)
|
|
77
77
|
super().__init__(
|
|
78
|
-
process_param=process_params,
|
|
79
|
-
|
|
78
|
+
process_param=process_params,
|
|
79
|
+
list=input_images,
|
|
80
|
+
system_info=system_info,
|
|
81
|
+
tag=tag
|
|
80
82
|
)
|
|
81
83
|
if container_list:
|
|
82
84
|
super().__init__(
|
|
83
|
-
process_param=process_params,
|
|
84
|
-
|
|
85
|
+
process_param=process_params,
|
|
86
|
+
container_list=container_list,
|
|
87
|
+
system_info=system_info,
|
|
88
|
+
tag=tag
|
|
85
89
|
)
|
|
86
90
|
|
|
87
91
|
@property
|
|
@@ -3,12 +3,12 @@ regula/documentreader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
3
3
|
regula/documentreader/webclient/__init__.py,sha256=9hNPg8FLQRyDZAueC34R9NnYD6krtWSlnUczVs-jYyU,100
|
|
4
4
|
regula/documentreader/webclient/ext/__init__.py,sha256=WC-Qq2WK9YVx7iI2WBysw3irgqH9rQsPpupPsClhTBI,1204
|
|
5
5
|
regula/documentreader/webclient/ext/api/__init__.py,sha256=Xzygo6zcLQaUJmchHGc2awK1kGwgIcqdBBqexU8iZfI,90
|
|
6
|
-
regula/documentreader/webclient/ext/api/document_reader_api.py,sha256=
|
|
6
|
+
regula/documentreader/webclient/ext/api/document_reader_api.py,sha256=nfRPhQE3dm_ra7Pt-M1br0ZTBIR7X1gPLA8WSJY2Ttw,1813
|
|
7
7
|
regula/documentreader/webclient/ext/models/__init__.py,sha256=jkX63hjohO56S5BqMgXegD13tFNEz0TFFOqgaoV-rO0,1303
|
|
8
8
|
regula/documentreader/webclient/ext/models/images.py,sha256=rR4nRIVA3V4iEsSkLaPrbpDvLdYFbkKYgLrUxW0a_x4,1343
|
|
9
9
|
regula/documentreader/webclient/ext/models/raw_authenticity_result_item.py,sha256=YSuewMtw8M9sKnsgLBgL5-6HS3jhCPYcYRJGKue4wAw,954
|
|
10
10
|
regula/documentreader/webclient/ext/models/raw_result_item.py,sha256=3WMQxrOVav6A9bysoYHe5j-o3qhs4nHOPcO_QeN5aec,767
|
|
11
|
-
regula/documentreader/webclient/ext/models/recognition_request.py,sha256=
|
|
11
|
+
regula/documentreader/webclient/ext/models/recognition_request.py,sha256=OQoHZuWWhArUNEOA-2jTUSO3Qa10M4ZrCiER6vOvE6A,3259
|
|
12
12
|
regula/documentreader/webclient/ext/models/recognition_response.py,sha256=UqapU-YrpBlorHo-BToBB0aTK2TV9CpXKqxsK5uqnWY,3406
|
|
13
13
|
regula/documentreader/webclient/ext/models/text.py,sha256=djXhXXzUJyq0nc5DnsTzWhBfg8dt7eU4vl3_2qvVMx0,1715
|
|
14
14
|
regula/documentreader/webclient/ext/models/text_field.py,sha256=WaSlf6ndJK-4HSuocCMoNlSFBP0vNKUb_18acnPTM7I,1130
|
|
@@ -179,7 +179,7 @@ regula/documentreader/webclient/gen/models/transaction_scenario_request.py,sha25
|
|
|
179
179
|
regula/documentreader/webclient/gen/models/verification_result.py,sha256=QmecwNs6cz3OTzPSNaSkY4ktudmsAF_wpn4DjDWDbMM,2905
|
|
180
180
|
regula/documentreader/webclient/gen/models/verified_field_map.py,sha256=L3JXmadMiV6RNdbpSbE8_jiJ0Zh85ZSpCvwPuKeDHR4,10406
|
|
181
181
|
regula/documentreader/webclient/gen/models/visibility.py,sha256=c5H2K34md6ykhebeNmqyqUOb_hCUJx6b5sdmeAIQQ7c,2917
|
|
182
|
-
regula.documentreader.webclient-7.5.
|
|
183
|
-
regula.documentreader.webclient-7.5.
|
|
184
|
-
regula.documentreader.webclient-7.5.
|
|
185
|
-
regula.documentreader.webclient-7.5.
|
|
182
|
+
regula.documentreader.webclient-7.5.149.dev0.dist-info/METADATA,sha256=jmJQcgkXZAkKaFN5N5uHoPW0rXJ0wrme74GfxbXqnlc,3585
|
|
183
|
+
regula.documentreader.webclient-7.5.149.dev0.dist-info/WHEEL,sha256=uCRv0ZEik_232NlR4YDw4Pv3Ajt5bKvMH13NUU7hFuI,91
|
|
184
|
+
regula.documentreader.webclient-7.5.149.dev0.dist-info/top_level.txt,sha256=SFSSVn4j8QDivd3307s97NtpIJ8zOjiWZloAxZIClJY,7
|
|
185
|
+
regula.documentreader.webclient-7.5.149.dev0.dist-info/RECORD,,
|
|
File without changes
|