Skip to content

Commit

Permalink
Release 24.1 (#70)
Browse files Browse the repository at this point in the history
* "types" param for multiple barcode types to read added.

mostCommonlyUsed decode type added.

* Copyright updated
  • Loading branch information
ivankamkin authored Jan 30, 2024
1 parent 3c56745 commit 1ef6b1d
Show file tree
Hide file tree
Showing 94 changed files with 151 additions and 99 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Aspose Pty Ltd
Copyright (c) 2024 Aspose Pty Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![PyPI](https://img.shields.io/pypi/v/aspose-barcode-cloud)](https://pypi.org/project/aspose-barcode-cloud/)

- API version: 3.0
- Package version: 23.12.0
- Package version: 24.1.0

## Demo applications

Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 17 additions & 1 deletion aspose_barcode_cloud/api/barcode_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -410,6 +410,7 @@ def get_barcode_recognize(
self,
name,
type=None,
types=None,
checksum_validation=None,
detect_encoding=None,
preset=None,
Expand Down Expand Up @@ -458,6 +459,7 @@ def get_barcode_recognize(
:param str name: The image file name. # noqa: E501
:param str type: The type of barcode to read. # noqa: E501
:param list[DecodeBarcodeType] types: Multiple barcode types to read. # noqa: E501
: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
:param bool detect_encoding: A flag which force engine to detect codetext encoding for Unicode. # noqa: E501
: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
Expand Down Expand Up @@ -504,6 +506,7 @@ def get_barcode_recognize(
return self.get_barcode_recognize_with_http_info(
name,
type=type,
types=types,
checksum_validation=checksum_validation,
detect_encoding=detect_encoding,
preset=preset,
Expand Down Expand Up @@ -546,6 +549,7 @@ def get_barcode_recognize(
(data) = self.get_barcode_recognize_with_http_info(
name,
type=type,
types=types,
checksum_validation=checksum_validation,
detect_encoding=detect_encoding,
preset=preset,
Expand Down Expand Up @@ -603,6 +607,7 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
all_params = {
"name",
"type",
"types",
"checksum_validation",
"detect_encoding",
"preset",
Expand Down Expand Up @@ -667,6 +672,9 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
query_params = []
if "type" in params:
query_params.append(("Type", params["type"]))
if "types" in params:
query_params.append(("Types", params["types"]))
collection_formats["Types"] = "multi"
if "checksum_validation" in params:
query_params.append(("ChecksumValidation", params["checksum_validation"]))
if "detect_encoding" in params:
Expand Down Expand Up @@ -779,6 +787,7 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
def post_barcode_recognize_from_url_or_content(
self,
type=None,
types=None,
checksum_validation=None,
detect_encoding=None,
preset=None,
Expand Down Expand Up @@ -826,6 +835,7 @@ def post_barcode_recognize_from_url_or_content(
>>> result = thread.get()
:param str type: The type of barcode to read. # noqa: E501
:param list[DecodeBarcodeType] types: Multiple barcode types to read. # noqa: E501
: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
:param bool detect_encoding: A flag which force engine to detect codetext encoding for Unicode. # noqa: E501
: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
Expand Down Expand Up @@ -871,6 +881,7 @@ def post_barcode_recognize_from_url_or_content(
if async_req:
return self.post_barcode_recognize_from_url_or_content_with_http_info(
type=type,
types=types,
checksum_validation=checksum_validation,
detect_encoding=detect_encoding,
preset=preset,
Expand Down Expand Up @@ -912,6 +923,7 @@ def post_barcode_recognize_from_url_or_content(
else:
(data) = self.post_barcode_recognize_from_url_or_content_with_http_info(
type=type,
types=types,
checksum_validation=checksum_validation,
detect_encoding=detect_encoding,
preset=preset,
Expand Down Expand Up @@ -967,6 +979,7 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):

all_params = {
"type",
"types",
"checksum_validation",
"detect_encoding",
"preset",
Expand Down Expand Up @@ -1029,6 +1042,9 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):
query_params = []
if "type" in params:
query_params.append(("Type", params["type"]))
if "types" in params:
query_params.append(("Types", params["types"]))
collection_formats["Types"] = "multi"
if "checksum_validation" in params:
query_params.append(("ChecksumValidation", params["checksum_validation"]))
if "detect_encoding" in params:
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/api/file_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/api/folder_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/api/storage_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions aspose_barcode_cloud/api_client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -90,13 +90,13 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
self.rest_client = RESTClientObject(configuration)
self.default_headers = {
"x-aspose-client": "python sdk",
"x-aspose-client-version": "23.12.0",
"x-aspose-client-version": "24.1.0",
}
if header_name is not None:
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = "Aspose-Barcode-SDK/23.12.0/python"
self.user_agent = "Aspose-Barcode-SDK/24.1.0/python"

def __del__(self):
self.rest_client.close()
Expand Down
4 changes: 2 additions & 2 deletions aspose_barcode_cloud/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -286,7 +286,7 @@ def to_debug_report(self):
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: 3.0\n"
"SDK Package Version: 23.12.0".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 24.1.0".format(env=sys.platform, pyversion=sys.version)
)

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# flake8: noqa
"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/api_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/api_error_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/australian_post_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/auto_size_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/available_graphics_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/aztec_encode_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/aztec_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/aztec_symbol_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/barcode_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/barcode_response_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/border_dash_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/caption_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/checksum_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/codabar_checksum_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/codabar_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/codabar_symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/codablock_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/code128_emulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/code128_encode_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/models/code128_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Copyright (c) 2023 Aspose.BarCode for Cloud
Copyright (c) 2024 Aspose.BarCode for Cloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 1ef6b1d

Please sign in to comment.