Skip to content

Commit 31387f5

Browse files
authored
Release 23.11 (#67)
* Update version to 23.11.0 * Update API * Change Maximum timeout value * Use requirements from requirements.txt
1 parent e3b3a17 commit 31387f5

15 files changed

Lines changed: 119 additions & 20 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![PyPI](https://img.shields.io/pypi/v/aspose-barcode-cloud)](https://pypi.org/project/aspose-barcode-cloud/)
66

77
- API version: 3.0
8-
- Package version: 23.10.0
8+
- Package version: 23.11.0
99

1010
## Demo applications
1111

aspose_barcode_cloud/api/barcode_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def get_barcode_recognize(
466466
:param int rect_width: Set Width of area for recognition. # noqa: E501
467467
:param int rect_height: Set Height of area for recognition. # noqa: E501
468468
:param bool strip_fnc: Value indicating whether FNC symbol strip must be done. # noqa: E501
469-
:param int timeout: Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. # noqa: E501
469+
:param int timeout: Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. # noqa: E501
470470
:param int median_smoothing_window_size: Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. # noqa: E501
471471
:param bool allow_median_smoothing: Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. # noqa: E501
472472
:param bool allow_complex_background: Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. # noqa: E501
@@ -834,7 +834,7 @@ def post_barcode_recognize_from_url_or_content(
834834
:param int rect_width: Set Width of area for recognition. # noqa: E501
835835
:param int rect_height: Set Height of area for recognition. # noqa: E501
836836
:param bool strip_fnc: Value indicating whether FNC symbol strip must be done. # noqa: E501
837-
:param int timeout: Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. # noqa: E501
837+
:param int timeout: Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. # noqa: E501
838838
:param int median_smoothing_window_size: Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. # noqa: E501
839839
:param bool allow_median_smoothing: Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. # noqa: E501
840840
:param bool allow_complex_background: Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. # noqa: E501

aspose_barcode_cloud/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
9090
self.rest_client = RESTClientObject(configuration)
9191
self.default_headers = {
9292
"x-aspose-client": "python sdk",
93-
"x-aspose-client-version": "23.10.0",
93+
"x-aspose-client-version": "23.11.0",
9494
}
9595
if header_name is not None:
9696
self.default_headers[header_name] = header_value
9797
self.cookie = cookie
9898
# Set default User-Agent.
99-
self.user_agent = "Aspose-Barcode-SDK/23.10.0/python"
99+
self.user_agent = "Aspose-Barcode-SDK/23.11.0/python"
100100

101101
def __del__(self):
102102
self.rest_client.close()

aspose_barcode_cloud/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def to_debug_report(self):
286286
"OS: {env}\n"
287287
"Python Version: {pyversion}\n"
288288
"Version of the API: 3.0\n"
289-
"SDK Package Version: 23.10.0".format(env=sys.platform, pyversion=sys.version)
289+
"SDK Package Version: 23.11.0".format(env=sys.platform, pyversion=sys.version)
290290
)
291291

292292
@staticmethod

aspose_barcode_cloud/models/decode_barcode_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class DecodeBarcodeType(object):
124124
GS1HANXIN = "GS1HanXin"
125125
GS1AZTEC = "GS1Aztec"
126126
GS1COMPOSITEBAR = "GS1CompositeBar"
127+
GS1MICROPDF417 = "GS1MicroPdf417"
127128

128129
"""
129130
Attributes:

aspose_barcode_cloud/models/encode_barcode_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ class EncodeBarcodeType(object):
112112
HANXIN = "HanXin"
113113
GS1HANXIN = "GS1HanXin"
114114
GS1AZTEC = "GS1Aztec"
115+
GS1MICROPDF417 = "GS1MicroPdf417"
115116

116117
"""
117118
Attributes:

aspose_barcode_cloud/models/pdf417_params.py

Lines changed: 93 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ class Pdf417Params(object):
6666
"macro_addressee": "str",
6767
"macro_eci_encoding": "ECIEncodings",
6868
"code128_emulation": "Code128Emulation",
69+
"is_code128_emulation": "bool",
6970
"pdf417_macro_terminator": "Pdf417MacroTerminator",
71+
"is_linked": "bool",
72+
"macro_characters": "MacroCharacter",
7073
}
7174

7275
attribute_map = {
@@ -90,7 +93,10 @@ class Pdf417Params(object):
9093
"macro_addressee": "MacroAddressee",
9194
"macro_eci_encoding": "MacroECIEncoding",
9295
"code128_emulation": "Code128Emulation",
96+
"is_code128_emulation": "IsCode128Emulation",
9397
"pdf417_macro_terminator": "Pdf417MacroTerminator",
98+
"is_linked": "IsLinked",
99+
"macro_characters": "MacroCharacters",
94100
}
95101

96102
def __init__(
@@ -115,7 +121,10 @@ def __init__(
115121
macro_addressee=None,
116122
macro_eci_encoding=None,
117123
code128_emulation=None,
124+
is_code128_emulation=None,
118125
pdf417_macro_terminator=None,
126+
is_linked=None,
127+
macro_characters=None,
119128
): # noqa: E501
120129
"""Pdf417Params - a model defined in Swagger""" # noqa: E501
121130

@@ -139,7 +148,10 @@ def __init__(
139148
self._macro_addressee = None
140149
self._macro_eci_encoding = None
141150
self._code128_emulation = None
151+
self._is_code128_emulation = None
142152
self._pdf417_macro_terminator = None
153+
self._is_linked = None
154+
self._macro_characters = None
143155
self.discriminator = None
144156

145157
if aspect_ratio is not None:
@@ -182,8 +194,14 @@ def __init__(
182194
self.macro_eci_encoding = macro_eci_encoding
183195
if code128_emulation is not None:
184196
self.code128_emulation = code128_emulation
197+
if is_code128_emulation is not None:
198+
self.is_code128_emulation = is_code128_emulation
185199
if pdf417_macro_terminator is not None:
186200
self.pdf417_macro_terminator = pdf417_macro_terminator
201+
if is_linked is not None:
202+
self.is_linked = is_linked
203+
if macro_characters is not None:
204+
self.macro_characters = macro_characters
187205

188206
@property
189207
def aspect_ratio(self):
@@ -630,7 +648,7 @@ def macro_eci_encoding(self, macro_eci_encoding):
630648
def code128_emulation(self):
631649
"""Gets the code128_emulation of this Pdf417Params. # noqa: E501
632650
633-
Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. # noqa: E501
651+
DEPRECATED: This property is obsolete and will be removed in future releases. See samples of using new parameters on https://releases.aspose.com/barcode/net/release-notes/2023/aspose-barcode-for-net-23-10-release-notes/ Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. # noqa: E501
634652
635653
:return: The code128_emulation of this Pdf417Params. # noqa: E501
636654
:rtype: Code128Emulation
@@ -641,14 +659,41 @@ def code128_emulation(self):
641659
def code128_emulation(self, code128_emulation):
642660
"""Sets the code128_emulation of this Pdf417Params.
643661
644-
Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. # noqa: E501
662+
DEPRECATED: This property is obsolete and will be removed in future releases. See samples of using new parameters on https://releases.aspose.com/barcode/net/release-notes/2023/aspose-barcode-for-net-23-10-release-notes/ Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. # noqa: E501
645663
646664
:param code128_emulation: The code128_emulation of this Pdf417Params. # noqa: E501
647665
:type: Code128Emulation
648666
"""
667+
warnings.warn(
668+
"Property 'code128_emulation' is deprecated. This property is obsolete and will be removed in future releases. See samples of using new parameters on https://releases.aspose.com/barcode/net/release-notes/2023/aspose-barcode-for-net-23-10-release-notes/ Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes.", # noqa: E501
669+
category=DeprecationWarning,
670+
)
649671

650672
self._code128_emulation = code128_emulation
651673

674+
@property
675+
def is_code128_emulation(self):
676+
"""Gets the is_code128_emulation of this Pdf417Params. # noqa: E501
677+
678+
Can be used only with MicroPdf417 and encodes Code 128 emulation modes. Can encode FNC1 in second position modes 908 and 909, also can encode 910 and 911 which just indicate that recognized MicroPdf417 can be interpret as Code 128. # noqa: E501
679+
680+
:return: The is_code128_emulation of this Pdf417Params. # noqa: E501
681+
:rtype: bool
682+
"""
683+
return self._is_code128_emulation
684+
685+
@is_code128_emulation.setter
686+
def is_code128_emulation(self, is_code128_emulation):
687+
"""Sets the is_code128_emulation of this Pdf417Params.
688+
689+
Can be used only with MicroPdf417 and encodes Code 128 emulation modes. Can encode FNC1 in second position modes 908 and 909, also can encode 910 and 911 which just indicate that recognized MicroPdf417 can be interpret as Code 128. # noqa: E501
690+
691+
:param is_code128_emulation: The is_code128_emulation of this Pdf417Params. # noqa: E501
692+
:type: bool
693+
"""
694+
695+
self._is_code128_emulation = is_code128_emulation
696+
652697
@property
653698
def pdf417_macro_terminator(self):
654699
"""Gets the pdf417_macro_terminator of this Pdf417Params. # noqa: E501
@@ -672,6 +717,52 @@ def pdf417_macro_terminator(self, pdf417_macro_terminator):
672717

673718
self._pdf417_macro_terminator = pdf417_macro_terminator
674719

720+
@property
721+
def is_linked(self):
722+
"""Gets the is_linked of this Pdf417Params. # noqa: E501
723+
724+
Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes. With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 “Linked” UCC/EAN-128 modes. With MicroPdf417 and Pdf417 symbologies encodes 918 linkage flag to associated linear component other than an EAN.UCC. # noqa: E501
725+
726+
:return: The is_linked of this Pdf417Params. # noqa: E501
727+
:rtype: bool
728+
"""
729+
return self._is_linked
730+
731+
@is_linked.setter
732+
def is_linked(self, is_linked):
733+
"""Sets the is_linked of this Pdf417Params.
734+
735+
Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes. With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 “Linked” UCC/EAN-128 modes. With MicroPdf417 and Pdf417 symbologies encodes 918 linkage flag to associated linear component other than an EAN.UCC. # noqa: E501
736+
737+
:param is_linked: The is_linked of this Pdf417Params. # noqa: E501
738+
:type: bool
739+
"""
740+
741+
self._is_linked = is_linked
742+
743+
@property
744+
def macro_characters(self):
745+
"""Gets the macro_characters of this Pdf417Params. # noqa: E501
746+
747+
Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes. Can be used only with MicroPdf417 and encodes 916 and 917 MicroPdf417 modes. Default value: MacroCharacters.None. # noqa: E501
748+
749+
:return: The macro_characters of this Pdf417Params. # noqa: E501
750+
:rtype: MacroCharacter
751+
"""
752+
return self._macro_characters
753+
754+
@macro_characters.setter
755+
def macro_characters(self, macro_characters):
756+
"""Sets the macro_characters of this Pdf417Params.
757+
758+
Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes. Can be used only with MicroPdf417 and encodes 916 and 917 MicroPdf417 modes. Default value: MacroCharacters.None. # noqa: E501
759+
760+
:param macro_characters: The macro_characters of this Pdf417Params. # noqa: E501
761+
:type: MacroCharacter
762+
"""
763+
764+
self._macro_characters = macro_characters
765+
675766
def to_dict(self):
676767
"""Returns the model properties as a dict"""
677768
result = {}

aspose_barcode_cloud/models/reader_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def strip_fnc(self, strip_fnc):
480480
def timeout(self):
481481
"""Gets the timeout of this ReaderParams. # noqa: E501
482482
483-
Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. # noqa: E501
483+
Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. # noqa: E501
484484
485485
:return: The timeout of this ReaderParams. # noqa: E501
486486
:rtype: int
@@ -491,7 +491,7 @@ def timeout(self):
491491
def timeout(self, timeout):
492492
"""Sets the timeout of this ReaderParams.
493493
494-
Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. # noqa: E501
494+
Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. # noqa: E501
495495
496496
:param timeout: The timeout of this ReaderParams. # noqa: E501
497497
:type: int

docs/BarcodeApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ rect_y = 56 # int | Set Y of top left corner of area for recognition. (optional)
160160
rect_width = 56 # int | Set Width of area for recognition. (optional)
161161
rect_height = 56 # int | Set Height of area for recognition. (optional)
162162
strip_fnc = True # bool | Value indicating whether FNC symbol strip must be done. (optional)
163-
timeout = 56 # int | Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. (optional)
163+
timeout = 56 # int | Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. (optional)
164164
median_smoothing_window_size = 56 # int | Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. (optional)
165165
allow_median_smoothing = True # bool | Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. (optional)
166166
allow_complex_background = True # bool | Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. (optional)
@@ -211,7 +211,7 @@ Name | Type | Description | Notes
211211
**rect_width** | **int**| Set Width of area for recognition. | [optional]
212212
**rect_height** | **int**| Set Height of area for recognition. | [optional]
213213
**strip_fnc** | **bool**| Value indicating whether FNC symbol strip must be done. | [optional]
214-
**timeout** | **int**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
214+
**timeout** | **int**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
215215
**median_smoothing_window_size** | **int**| Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. | [optional]
216216
**allow_median_smoothing** | **bool**| Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. | [optional]
217217
**allow_complex_background** | **bool**| Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. | [optional]
@@ -282,7 +282,7 @@ rect_y = 56 # int | Set Y of top left corner of area for recognition. (optional)
282282
rect_width = 56 # int | Set Width of area for recognition. (optional)
283283
rect_height = 56 # int | Set Height of area for recognition. (optional)
284284
strip_fnc = True # bool | Value indicating whether FNC symbol strip must be done. (optional)
285-
timeout = 56 # int | Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. (optional)
285+
timeout = 56 # int | Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. (optional)
286286
median_smoothing_window_size = 56 # int | Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. (optional)
287287
allow_median_smoothing = True # bool | Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. (optional)
288288
allow_complex_background = True # bool | Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. (optional)
@@ -332,7 +332,7 @@ Name | Type | Description | Notes
332332
**rect_width** | **int**| Set Width of area for recognition. | [optional]
333333
**rect_height** | **int**| Set Height of area for recognition. | [optional]
334334
**strip_fnc** | **bool**| Value indicating whether FNC symbol strip must be done. | [optional]
335-
**timeout** | **int**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 60_000 (1 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
335+
**timeout** | **int**| Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout. | [optional]
336336
**median_smoothing_window_size** | **int**| Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set. | [optional]
337337
**allow_median_smoothing** | **bool**| Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes. | [optional]
338338
**allow_complex_background** | **bool**| Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode. | [optional]

docs/Code128Emulation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Code128Emulation
22

3-
3+
DEPRECATED. This enum will be removed in future releases Function codewords for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes.
44
## Allowable values
55

66
* **Code128Emulation.NONE**

0 commit comments

Comments
 (0)