Skip to content

Commit 1ef6b1d

Browse files
authored
Release 24.1 (#70)
* "types" param for multiple barcode types to read added. mostCommonlyUsed decode type added. * Copyright updated
1 parent 3c56745 commit 1ef6b1d

94 files changed

Lines changed: 151 additions & 99 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

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

3-
Copyright (c) 2023 Aspose Pty Ltd
3+
Copyright (c) 2024 Aspose Pty Ltd
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

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.12.0
8+
- Package version: 24.1.0
99

1010
## Demo applications
1111

aspose_barcode_cloud/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
"""
66
7-
Copyright (c) 2023 Aspose.BarCode for Cloud
7+
Copyright (c) 2024 Aspose.BarCode for Cloud
88
99
Permission is hereby granted, free of charge, to any person obtaining a copy
1010
of this software and associated documentation files (the "Software"), to deal

aspose_barcode_cloud/api/barcode_api.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"""
44
5-
Copyright (c) 2023 Aspose.BarCode for Cloud
5+
Copyright (c) 2024 Aspose.BarCode for Cloud
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
88
of this software and associated documentation files (the "Software"), to deal
@@ -410,6 +410,7 @@ def get_barcode_recognize(
410410
self,
411411
name,
412412
type=None,
413+
types=None,
413414
checksum_validation=None,
414415
detect_encoding=None,
415416
preset=None,
@@ -458,6 +459,7 @@ def get_barcode_recognize(
458459
459460
:param str name: The image file name. # noqa: E501
460461
:param str type: The type of barcode to read. # noqa: E501
462+
:param list[DecodeBarcodeType] types: Multiple barcode types to read. # noqa: E501
461463
:param str checksum_validation: Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies # noqa: E501
462464
:param bool detect_encoding: A flag which force engine to detect codetext encoding for Unicode. # noqa: E501
463465
:param str preset: Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality. # noqa: E501
@@ -504,6 +506,7 @@ def get_barcode_recognize(
504506
return self.get_barcode_recognize_with_http_info(
505507
name,
506508
type=type,
509+
types=types,
507510
checksum_validation=checksum_validation,
508511
detect_encoding=detect_encoding,
509512
preset=preset,
@@ -546,6 +549,7 @@ def get_barcode_recognize(
546549
(data) = self.get_barcode_recognize_with_http_info(
547550
name,
548551
type=type,
552+
types=types,
549553
checksum_validation=checksum_validation,
550554
detect_encoding=detect_encoding,
551555
preset=preset,
@@ -603,6 +607,7 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
603607
all_params = {
604608
"name",
605609
"type",
610+
"types",
606611
"checksum_validation",
607612
"detect_encoding",
608613
"preset",
@@ -667,6 +672,9 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
667672
query_params = []
668673
if "type" in params:
669674
query_params.append(("Type", params["type"]))
675+
if "types" in params:
676+
query_params.append(("Types", params["types"]))
677+
collection_formats["Types"] = "multi"
670678
if "checksum_validation" in params:
671679
query_params.append(("ChecksumValidation", params["checksum_validation"]))
672680
if "detect_encoding" in params:
@@ -779,6 +787,7 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
779787
def post_barcode_recognize_from_url_or_content(
780788
self,
781789
type=None,
790+
types=None,
782791
checksum_validation=None,
783792
detect_encoding=None,
784793
preset=None,
@@ -826,6 +835,7 @@ def post_barcode_recognize_from_url_or_content(
826835
>>> result = thread.get()
827836
828837
:param str type: The type of barcode to read. # noqa: E501
838+
:param list[DecodeBarcodeType] types: Multiple barcode types to read. # noqa: E501
829839
:param str checksum_validation: Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies # noqa: E501
830840
:param bool detect_encoding: A flag which force engine to detect codetext encoding for Unicode. # noqa: E501
831841
:param str preset: Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality. # noqa: E501
@@ -871,6 +881,7 @@ def post_barcode_recognize_from_url_or_content(
871881
if async_req:
872882
return self.post_barcode_recognize_from_url_or_content_with_http_info(
873883
type=type,
884+
types=types,
874885
checksum_validation=checksum_validation,
875886
detect_encoding=detect_encoding,
876887
preset=preset,
@@ -912,6 +923,7 @@ def post_barcode_recognize_from_url_or_content(
912923
else:
913924
(data) = self.post_barcode_recognize_from_url_or_content_with_http_info(
914925
type=type,
926+
types=types,
915927
checksum_validation=checksum_validation,
916928
detect_encoding=detect_encoding,
917929
preset=preset,
@@ -967,6 +979,7 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):
967979

968980
all_params = {
969981
"type",
982+
"types",
970983
"checksum_validation",
971984
"detect_encoding",
972985
"preset",
@@ -1029,6 +1042,9 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):
10291042
query_params = []
10301043
if "type" in params:
10311044
query_params.append(("Type", params["type"]))
1045+
if "types" in params:
1046+
query_params.append(("Types", params["types"]))
1047+
collection_formats["Types"] = "multi"
10321048
if "checksum_validation" in params:
10331049
query_params.append(("ChecksumValidation", params["checksum_validation"]))
10341050
if "detect_encoding" in params:

aspose_barcode_cloud/api/file_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"""
44
5-
Copyright (c) 2023 Aspose.BarCode for Cloud
5+
Copyright (c) 2024 Aspose.BarCode for Cloud
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
88
of this software and associated documentation files (the "Software"), to deal

aspose_barcode_cloud/api/folder_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"""
44
5-
Copyright (c) 2023 Aspose.BarCode for Cloud
5+
Copyright (c) 2024 Aspose.BarCode for Cloud
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
88
of this software and associated documentation files (the "Software"), to deal

aspose_barcode_cloud/api/storage_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"""
44
5-
Copyright (c) 2023 Aspose.BarCode for Cloud
5+
Copyright (c) 2024 Aspose.BarCode for Cloud
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
88
of this software and associated documentation files (the "Software"), to deal

aspose_barcode_cloud/api_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22
"""
33
4-
Copyright (c) 2023 Aspose.BarCode for Cloud
4+
Copyright (c) 2024 Aspose.BarCode for Cloud
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -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.12.0",
93+
"x-aspose-client-version": "24.1.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.12.0/python"
99+
self.user_agent = "Aspose-Barcode-SDK/24.1.0/python"
100100

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

aspose_barcode_cloud/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"""
44
5-
Copyright (c) 2023 Aspose.BarCode for Cloud
5+
Copyright (c) 2024 Aspose.BarCode for Cloud
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
88
of this software and associated documentation files (the "Software"), to deal
@@ -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.12.0".format(env=sys.platform, pyversion=sys.version)
289+
"SDK Package Version: 24.1.0".format(env=sys.platform, pyversion=sys.version)
290290
)
291291

292292
@staticmethod

aspose_barcode_cloud/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# flake8: noqa
44
"""
55
6-
Copyright (c) 2023 Aspose.BarCode for Cloud
6+
Copyright (c) 2024 Aspose.BarCode for Cloud
77
88
Permission is hereby granted, free of charge, to any person obtaining a copy
99
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)