Skip to content

Commit 603426b

Browse files
authored
Update 20.10 (#6)
1 parent ad15487 commit 603426b

21 files changed

Lines changed: 469 additions & 44 deletions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ format: format_code format_doc
88

99
.PHONY: format_code
1010
format_code:
11-
python3 -m black --line-length=120 --target-version=py27 -v $(SRC) tests
11+
python3 -m black --line-length=120 -v $(SRC) tests
1212

1313
.PHONY: format_doc
1414
format_doc:

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Aspose.BarCode Cloud SDK for Python
22

33
- API version: 3.0
4-
- Package version: 20.8.0
4+
- Package version: 20.10.0
55

66
[Aspose.BarCode for Cloud](https://products.aspose.cloud/barcode/cloud) is a REST API for Linear, 2D and postal barcode generation and recognition in the cloud. API recognizes and generates barcode images in a variety of formats. Barcode REST API allows to specify barcode image attributes like image width, height, border style and output image format in order to customize the generation process. Developers can also specify the barcode type and text attributes such as text location and font styles in order to suit the application requirements.
77

@@ -90,7 +90,7 @@ All Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed und
9090

9191
- [**Website**](https://www.aspose.cloud)
9292
- [**Product Home**](https://products.aspose.cloud/barcode/cloud)
93-
- [**Documentation**](https://docs.aspose.cloud/display/barcodecloud/Home)
93+
- [**Documentation**](https://docs.aspose.cloud/barcode/)
9494
- [**Free Support Forum**](https://forum.aspose.cloud/c/barcode)
9595
- [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
9696
- [**Blog**](https://blog.aspose.cloud/category/aspose-products/aspose-barcode-product-family/)
@@ -125,12 +125,13 @@ Class | Method | HTTP request | Description
125125

126126
## Documentation For Models
127127

128+
- [ApiError](docs/ApiError.md)
129+
- [ApiErrorResponse](docs/ApiErrorResponse.md)
128130
- [AustralianPostParams](docs/AustralianPostParams.md)
129131
- [AutoSizeMode](docs/AutoSizeMode.md)
130132
- [AvailableGraphicsUnit](docs/AvailableGraphicsUnit.md)
131133
- [AztecParams](docs/AztecParams.md)
132134
- [AztecSymbolMode](docs/AztecSymbolMode.md)
133-
- [BarCodeErrorResponse](docs/BarCodeErrorResponse.md)
134135
- [BarcodeResponse](docs/BarcodeResponse.md)
135136
- [BarcodeResponseList](docs/BarcodeResponseList.md)
136137
- [BorderDashStyle](docs/BorderDashStyle.md)

aspose_barcode_cloud/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@
4040
from aspose_barcode_cloud.configuration import Configuration
4141

4242
# import models into sdk package
43+
from aspose_barcode_cloud.models.api_error import ApiError
44+
from aspose_barcode_cloud.models.api_error_response import ApiErrorResponse
4345
from aspose_barcode_cloud.models.australian_post_params import AustralianPostParams
4446
from aspose_barcode_cloud.models.auto_size_mode import AutoSizeMode
4547
from aspose_barcode_cloud.models.available_graphics_unit import AvailableGraphicsUnit
4648
from aspose_barcode_cloud.models.aztec_params import AztecParams
4749
from aspose_barcode_cloud.models.aztec_symbol_mode import AztecSymbolMode
48-
from aspose_barcode_cloud.models.bar_code_error_response import BarCodeErrorResponse
4950
from aspose_barcode_cloud.models.barcode_response import BarcodeResponse
5051
from aspose_barcode_cloud.models.barcode_response_list import BarcodeResponseList
5152
from aspose_barcode_cloud.models.border_dash_style import BorderDashStyle

aspose_barcode_cloud/api/barcode_api.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def get_barcode_generate(
8080
validate_text=None,
8181
supplement_data=None,
8282
supplement_space=None,
83+
bar_width_reduction=None,
8384
format=None,
8485
async_req=False,
8586
**kwargs
@@ -123,6 +124,7 @@ def get_barcode_generate(
123124
:param bool validate_text: Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingaporePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect. # noqa: E501
124125
:param str supplement_data: Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN. # noqa: E501
125126
:param float supplement_space: Space between main the BarCode and supplement BarCode. # noqa: E501
127+
:param float bar_width_reduction: Bars reduction value that is used to compensate ink spread while printing. # noqa: E501
126128
:param str format: Result image format. # noqa: E501
127129
:param async_req bool
128130
:return: file
@@ -164,6 +166,7 @@ def get_barcode_generate(
164166
validate_text=validate_text,
165167
supplement_data=supplement_data,
166168
supplement_space=supplement_space,
169+
bar_width_reduction=bar_width_reduction,
167170
format=format,
168171
**kwargs
169172
)
@@ -201,6 +204,7 @@ def get_barcode_generate(
201204
validate_text=validate_text,
202205
supplement_data=supplement_data,
203206
supplement_space=supplement_space,
207+
bar_width_reduction=bar_width_reduction,
204208
format=format,
205209
**kwargs
206210
)
@@ -254,6 +258,7 @@ def get_barcode_generate_with_http_info(self, type, text, **kwargs):
254258
"validate_text",
255259
"supplement_data",
256260
"supplement_space",
261+
"bar_width_reduction",
257262
"format",
258263
}
259264
all_params.add("async_req")
@@ -346,6 +351,8 @@ def get_barcode_generate_with_http_info(self, type, text, **kwargs):
346351
query_params.append(("SupplementData", params["supplement_data"]))
347352
if "supplement_space" in params:
348353
query_params.append(("SupplementSpace", params["supplement_space"]))
354+
if "bar_width_reduction" in params:
355+
query_params.append(("BarWidthReduction", params["bar_width_reduction"]))
349356
if "format" in params:
350357
query_params.append(("format", params["format"]))
351358

@@ -416,6 +423,7 @@ def get_barcode_recognize(
416423
scan_window_sizes=None,
417424
similarity=None,
418425
skip_diagonal_search=None,
426+
read_tiny_barcodes=None,
419427
australian_post_encoding_table=None,
420428
rectangle_region=None,
421429
storage=None,
@@ -460,6 +468,7 @@ def get_barcode_recognize(
460468
:param list[int] scan_window_sizes: Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. # noqa: E501
461469
:param float similarity: Similarity coefficient depends on how homogeneous barcodes are. Use high value for for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] # noqa: E501
462470
:param bool skip_diagonal_search: Allows detector to skip search for diagonal barcodes. Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise. Enabling of diagonal search leads to a bigger detection time. # noqa: E501
471+
:param bool read_tiny_barcodes: Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False. # noqa: E501
463472
:param str australian_post_encoding_table: Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other. # noqa: E501
464473
:param str rectangle_region: # noqa: E501
465474
:param str storage: The image storage. # noqa: E501
@@ -502,6 +511,7 @@ def get_barcode_recognize(
502511
scan_window_sizes=scan_window_sizes,
503512
similarity=similarity,
504513
skip_diagonal_search=skip_diagonal_search,
514+
read_tiny_barcodes=read_tiny_barcodes,
505515
australian_post_encoding_table=australian_post_encoding_table,
506516
rectangle_region=rectangle_region,
507517
storage=storage,
@@ -540,6 +550,7 @@ def get_barcode_recognize(
540550
scan_window_sizes=scan_window_sizes,
541551
similarity=similarity,
542552
skip_diagonal_search=skip_diagonal_search,
553+
read_tiny_barcodes=read_tiny_barcodes,
543554
australian_post_encoding_table=australian_post_encoding_table,
544555
rectangle_region=rectangle_region,
545556
storage=storage,
@@ -593,6 +604,7 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
593604
"scan_window_sizes",
594605
"similarity",
595606
"skip_diagonal_search",
607+
"read_tiny_barcodes",
596608
"australian_post_encoding_table",
597609
"rectangle_region",
598610
"storage",
@@ -682,6 +694,8 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
682694
query_params.append(("Similarity", params["similarity"]))
683695
if "skip_diagonal_search" in params:
684696
query_params.append(("SkipDiagonalSearch", params["skip_diagonal_search"]))
697+
if "read_tiny_barcodes" in params:
698+
query_params.append(("ReadTinyBarcodes", params["read_tiny_barcodes"]))
685699
if "australian_post_encoding_table" in params:
686700
query_params.append(("AustralianPostEncodingTable", params["australian_post_encoding_table"]))
687701
if "rectangle_region" in params:
@@ -755,6 +769,7 @@ def post_barcode_recognize_from_url_or_content(
755769
scan_window_sizes=None,
756770
similarity=None,
757771
skip_diagonal_search=None,
772+
read_tiny_barcodes=None,
758773
australian_post_encoding_table=None,
759774
rectangle_region=None,
760775
url=None,
@@ -798,6 +813,7 @@ def post_barcode_recognize_from_url_or_content(
798813
:param list[int] scan_window_sizes: Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. # noqa: E501
799814
:param float similarity: Similarity coefficient depends on how homogeneous barcodes are. Use high value for for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] # noqa: E501
800815
:param bool skip_diagonal_search: Allows detector to skip search for diagonal barcodes. Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise. Enabling of diagonal search leads to a bigger detection time. # noqa: E501
816+
:param bool read_tiny_barcodes: Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False. # noqa: E501
801817
:param str australian_post_encoding_table: Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other. # noqa: E501
802818
:param str rectangle_region: # noqa: E501
803819
:param str url: The image file url. # noqa: E501
@@ -839,6 +855,7 @@ def post_barcode_recognize_from_url_or_content(
839855
scan_window_sizes=scan_window_sizes,
840856
similarity=similarity,
841857
skip_diagonal_search=skip_diagonal_search,
858+
read_tiny_barcodes=read_tiny_barcodes,
842859
australian_post_encoding_table=australian_post_encoding_table,
843860
rectangle_region=rectangle_region,
844861
url=url,
@@ -876,6 +893,7 @@ def post_barcode_recognize_from_url_or_content(
876893
scan_window_sizes=scan_window_sizes,
877894
similarity=similarity,
878895
skip_diagonal_search=skip_diagonal_search,
896+
read_tiny_barcodes=read_tiny_barcodes,
879897
australian_post_encoding_table=australian_post_encoding_table,
880898
rectangle_region=rectangle_region,
881899
url=url,
@@ -927,6 +945,7 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):
927945
"scan_window_sizes",
928946
"similarity",
929947
"skip_diagonal_search",
948+
"read_tiny_barcodes",
930949
"australian_post_encoding_table",
931950
"rectangle_region",
932951
"url",
@@ -1014,6 +1033,8 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):
10141033
query_params.append(("Similarity", params["similarity"]))
10151034
if "skip_diagonal_search" in params:
10161035
query_params.append(("SkipDiagonalSearch", params["skip_diagonal_search"]))
1036+
if "read_tiny_barcodes" in params:
1037+
query_params.append(("ReadTinyBarcodes", params["read_tiny_barcodes"]))
10171038
if "australian_post_encoding_table" in params:
10181039
query_params.append(("AustralianPostEncodingTable", params["australian_post_encoding_table"]))
10191040
if "rectangle_region" in params:
@@ -1034,7 +1055,7 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):
10341055

10351056
# HTTP header "Content-Type"
10361057
header_params["Content-Type"] = self.api_client.select_header_content_type(
1037-
["application/octet-stream", "multipart/form-data"]
1058+
["multipart/form-data", "application/octet-stream"]
10381059
)
10391060

10401061
# Authentication setting
@@ -1197,6 +1218,7 @@ def put_barcode_generate_file(
11971218
validate_text=None,
11981219
supplement_data=None,
11991220
supplement_space=None,
1221+
bar_width_reduction=None,
12001222
storage=None,
12011223
folder=None,
12021224
format=None,
@@ -1243,6 +1265,7 @@ def put_barcode_generate_file(
12431265
:param bool validate_text: Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingaporePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect. # noqa: E501
12441266
:param str supplement_data: Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN. # noqa: E501
12451267
:param float supplement_space: Space between main the BarCode and supplement BarCode. # noqa: E501
1268+
:param float bar_width_reduction: Bars reduction value that is used to compensate ink spread while printing. # noqa: E501
12461269
:param str storage: Image's storage. # noqa: E501
12471270
:param str folder: Image's folder. # noqa: E501
12481271
:param str format: The image format. # noqa: E501
@@ -1287,6 +1310,7 @@ def put_barcode_generate_file(
12871310
validate_text=validate_text,
12881311
supplement_data=supplement_data,
12891312
supplement_space=supplement_space,
1313+
bar_width_reduction=bar_width_reduction,
12901314
storage=storage,
12911315
folder=folder,
12921316
format=format,
@@ -1327,6 +1351,7 @@ def put_barcode_generate_file(
13271351
validate_text=validate_text,
13281352
supplement_data=supplement_data,
13291353
supplement_space=supplement_space,
1354+
bar_width_reduction=bar_width_reduction,
13301355
storage=storage,
13311356
folder=folder,
13321357
format=format,
@@ -1384,6 +1409,7 @@ def put_barcode_generate_file_with_http_info(self, name, type, text, **kwargs):
13841409
"validate_text",
13851410
"supplement_data",
13861411
"supplement_space",
1412+
"bar_width_reduction",
13871413
"storage",
13881414
"folder",
13891415
"format",
@@ -1483,6 +1509,8 @@ def put_barcode_generate_file_with_http_info(self, name, type, text, **kwargs):
14831509
query_params.append(("SupplementData", params["supplement_data"]))
14841510
if "supplement_space" in params:
14851511
query_params.append(("SupplementSpace", params["supplement_space"]))
1512+
if "bar_width_reduction" in params:
1513+
query_params.append(("BarWidthReduction", params["bar_width_reduction"]))
14861514
if "storage" in params:
14871515
query_params.append(("storage", params["storage"]))
14881516
if "folder" in params:

aspose_barcode_cloud/api_client.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,12 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
8282
# Use the pool property to lazily initialize the ThreadPool.
8383
self._pool = None
8484
self.rest_client = rest.RESTClientObject(configuration)
85-
self.default_headers = {
86-
"x-aspose-client": "python sdk",
87-
"x-aspose-client-version": "20.8.0",
88-
}
85+
self.default_headers = {"x-aspose-client": "python sdk", "x-aspose-client-version": "20.10.0"}
8986
if header_name is not None:
9087
self.default_headers[header_name] = header_value
9188
self.cookie = cookie
9289
# Set default User-Agent.
93-
self.user_agent = "Aspose-Barcode-SDK/20.8.0/python"
90+
self.user_agent = "Aspose-Barcode-SDK/20.10.0/python"
9491

9592
def __del__(self):
9693
if self._pool is not None:

aspose_barcode_cloud/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def auth_settings(self):
272272
:return: The Auth Settings information dict.
273273
"""
274274
return {
275-
"JWT": {"type": "oauth2", "in": "header", "key": "Authorization", "value": "Bearer " + self.access_token},
275+
"JWT": {"type": "oauth2", "in": "header", "key": "Authorization", "value": "Bearer " + self.access_token}
276276
}
277277

278278
def to_debug_report(self):
@@ -285,7 +285,7 @@ def to_debug_report(self):
285285
"OS: {env}\n"
286286
"Python Version: {pyversion}\n"
287287
"Version of the API: 3.0\n"
288-
"SDK Package Version: 20.8.0".format(env=sys.platform, pyversion=sys.version)
288+
"SDK Package Version: 20.10.0".format(env=sys.platform, pyversion=sys.version)
289289
)
290290

291291
@staticmethod

aspose_barcode_cloud/models/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@
2929
from __future__ import absolute_import
3030

3131
# import models into model package
32+
from aspose_barcode_cloud.models.api_error import ApiError
33+
from aspose_barcode_cloud.models.api_error_response import ApiErrorResponse
3234
from aspose_barcode_cloud.models.australian_post_params import AustralianPostParams
3335
from aspose_barcode_cloud.models.auto_size_mode import AutoSizeMode
3436
from aspose_barcode_cloud.models.available_graphics_unit import AvailableGraphicsUnit
3537
from aspose_barcode_cloud.models.aztec_params import AztecParams
3638
from aspose_barcode_cloud.models.aztec_symbol_mode import AztecSymbolMode
37-
from aspose_barcode_cloud.models.bar_code_error_response import BarCodeErrorResponse
3839
from aspose_barcode_cloud.models.barcode_response import BarcodeResponse
3940
from aspose_barcode_cloud.models.barcode_response_list import BarcodeResponseList
4041
from aspose_barcode_cloud.models.border_dash_style import BorderDashStyle

0 commit comments

Comments
 (0)