Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ from aspose_barcode_cloud import (
EncodeBarcodeType,
CodeLocation,
DecodeBarcodeType,
BarcodeImageParams,
QrParams,
QREncodeMode,
QRErrorLevel,
QRVersion,
Expand All @@ -90,11 +92,13 @@ generateApi = GenerateApi(ApiClient(config))
response = generateApi.generate(
EncodeBarcodeType.QR,
"Example",
text_location=CodeLocation.NONE,
qr_encode_mode=QREncodeMode.AUTO,
qr_error_level=QRErrorLevel.LEVELM,
qr_version=QRVersion.AUTO,
qr_aspect_ratio=0.75,
barcode_image_params=BarcodeImageParams(text_location=CodeLocation.NONE),
qr_params=QrParams(
qr_encode_mode=QREncodeMode.AUTO,
qr_error_level=QRErrorLevel.LEVELM,
qr_version=QRVersion.AUTO,
qr_aspect_ratio=0.75,
),
)
with open("example.png", "wb") as f:
f.write(response.data)
Expand Down
438 changes: 155 additions & 283 deletions aspose_barcode_cloud/api/generate_api.py

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions aspose_barcode_cloud/api/recognize_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ def recognize_multipart(
>>> thread = RecognizeApi().recognize_multipart(barcode_type, file, async_req=True)
>>> result = thread.get()

:param DecodeBarcodeType barcode_type: # noqa: E501
:param DecodeBarcodeType barcode_type: See https://reference.aspose.com/barcode/net/aspose.barcode.barcoderecognition/decodetype/ # noqa: E501
:param bytearray file: Barcode image file. # noqa: E501
:param RecognitionMode recognition_mode: # noqa: E501
:param RecognitionImageKind recognition_image_kind: # noqa: E501
:param RecognitionMode recognition_mode: Recognition mode. # noqa: E501
:param RecognitionImageKind recognition_image_kind: Image kind for recognition. # noqa: E501
:param async_req bool
:return: BarcodeResponseList
If the method is called asynchronously,
Expand Down Expand Up @@ -278,7 +278,7 @@ def recognize_multipart_with_http_info(self, barcode_type, file, **kwargs):
>>> thread = RecognizeApi().recognize_multipart_with_http_info(barcode_type, file, async_req=True)
>>> result = thread.get()

:param DecodeBarcodeType barcode_type: # noqa: E501
:param DecodeBarcodeType barcode_type: See https://reference.aspose.com/barcode/net/aspose.barcode.barcoderecognition/decodetype/ # noqa: E501
:param bytearray file: Barcode image file. # noqa: E501
:return: BarcodeResponseList
If the method is called asynchronously,
Expand Down
2 changes: 2 additions & 0 deletions aspose_barcode_cloud/models/api_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def date_time(self, date_time):
def inner_error(self):
"""Gets the inner_error of this ApiError. # noqa: E501

Gets or sets inner error. # noqa: E501

:return: The inner_error of this ApiError. # noqa: E501
:rtype: ApiError
Expand All @@ -163,6 +164,7 @@ def inner_error(self):
def inner_error(self, inner_error):
"""Sets the inner_error of this ApiError.

Gets or sets inner error. # noqa: E501

:param inner_error: The inner_error of this ApiError. # noqa: E501
:type: ApiError
Expand Down
2 changes: 2 additions & 0 deletions aspose_barcode_cloud/models/api_error_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def request_id(self, request_id):
def error(self):
"""Gets the error of this ApiErrorResponse. # noqa: E501

Gets or sets error. # noqa: E501

:return: The error of this ApiErrorResponse. # noqa: E501
:rtype: ApiError
Expand All @@ -71,6 +72,7 @@ def error(self):
def error(self, error):
"""Sets the error of this ApiErrorResponse.

Gets or sets error. # noqa: E501

:param error: The error of this ApiErrorResponse. # noqa: E501
:type: ApiError
Expand Down
6 changes: 6 additions & 0 deletions aspose_barcode_cloud/models/barcode_image_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def __init__(
def image_format(self):
"""Gets the image_format of this BarcodeImageParams. # noqa: E501

Barcode output image format. Default value: png. # noqa: E501

:return: The image_format of this BarcodeImageParams. # noqa: E501
:rtype: BarcodeImageFormat
Expand All @@ -100,6 +101,7 @@ def image_format(self):
def image_format(self, image_format):
"""Sets the image_format of this BarcodeImageParams.

Barcode output image format. Default value: png. # noqa: E501

:param image_format: The image_format of this BarcodeImageParams. # noqa: E501
:type: BarcodeImageFormat
Expand All @@ -111,6 +113,7 @@ def image_format(self, image_format):
def text_location(self):
"""Gets the text_location of this BarcodeImageParams. # noqa: E501

Specify the displayed text location. Set to CodeLocation.None to hide CodeText. Default value depends on BarcodeType: CodeLocation.Below for 1D barcodes and CodeLocation.None for 2D barcodes. # noqa: E501

:return: The text_location of this BarcodeImageParams. # noqa: E501
:rtype: CodeLocation
Expand All @@ -121,6 +124,7 @@ def text_location(self):
def text_location(self, text_location):
"""Sets the text_location of this BarcodeImageParams.

Specify the displayed text location. Set to CodeLocation.None to hide CodeText. Default value depends on BarcodeType: CodeLocation.Below for 1D barcodes and CodeLocation.None for 2D barcodes. # noqa: E501

:param text_location: The text_location of this BarcodeImageParams. # noqa: E501
:type: CodeLocation
Expand Down Expand Up @@ -178,6 +182,7 @@ def background_color(self, background_color):
def units(self):
"""Gets the units of this BarcodeImageParams. # noqa: E501

Common units for all measurements. Default units: pixels. # noqa: E501

:return: The units of this BarcodeImageParams. # noqa: E501
:rtype: GraphicsUnit
Expand All @@ -188,6 +193,7 @@ def units(self):
def units(self, units):
"""Sets the units of this BarcodeImageParams.

Common units for all measurements. Default units: pixels. # noqa: E501

:param units: The units of this BarcodeImageParams. # noqa: E501
:type: GraphicsUnit
Expand Down
2 changes: 2 additions & 0 deletions aspose_barcode_cloud/models/code128_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def __init__(self, code128_encode_mode=None): # noqa: E501
def code128_encode_mode(self):
"""Gets the code128_encode_mode of this Code128Params. # noqa: E501

Code128 barcode encode mode. Controls which Code 128 subset (A, B, C, or mix) is used. # noqa: E501

:return: The code128_encode_mode of this Code128Params. # noqa: E501
:rtype: Code128EncodeMode
Expand All @@ -45,6 +46,7 @@ def code128_encode_mode(self):
def code128_encode_mode(self, code128_encode_mode):
"""Sets the code128_encode_mode of this Code128Params.

Code128 barcode encode mode. Controls which Code 128 subset (A, B, C, or mix) is used. # noqa: E501

:param code128_encode_mode: The code128_encode_mode of this Code128Params. # noqa: E501
:type: Code128EncodeMode
Expand Down
2 changes: 2 additions & 0 deletions aspose_barcode_cloud/models/encode_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def __init__(self, data_type=None, data=None): # noqa: E501
def data_type(self):
"""Gets the data_type of this EncodeData. # noqa: E501

Type of data to encode. Default value: StringData. # noqa: E501

:return: The data_type of this EncodeData. # noqa: E501
:rtype: EncodeDataType
Expand All @@ -47,6 +48,7 @@ def data_type(self):
def data_type(self, data_type):
"""Sets the data_type of this EncodeData.

Type of data to encode. Default value: StringData. # noqa: E501

:param data_type: The data_type of this EncodeData. # noqa: E501
:type: EncodeDataType
Expand Down
12 changes: 12 additions & 0 deletions aspose_barcode_cloud/models/generate_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def __init__(
def barcode_type(self):
"""Gets the barcode_type of this GenerateParams. # noqa: E501

Barcode type. # noqa: E501

:return: The barcode_type of this GenerateParams. # noqa: E501
:rtype: EncodeBarcodeType
Expand All @@ -80,6 +81,7 @@ def barcode_type(self):
def barcode_type(self, barcode_type):
"""Sets the barcode_type of this GenerateParams.

Barcode type. # noqa: E501

:param barcode_type: The barcode_type of this GenerateParams. # noqa: E501
:type: EncodeBarcodeType
Expand All @@ -93,6 +95,7 @@ def barcode_type(self, barcode_type):
def encode_data(self):
"""Gets the encode_data of this GenerateParams. # noqa: E501

Data to encode into a barcode. # noqa: E501

:return: The encode_data of this GenerateParams. # noqa: E501
:rtype: EncodeData
Expand All @@ -103,6 +106,7 @@ def encode_data(self):
def encode_data(self, encode_data):
"""Sets the encode_data of this GenerateParams.

Data to encode into a barcode. # noqa: E501

:param encode_data: The encode_data of this GenerateParams. # noqa: E501
:type: EncodeData
Expand All @@ -116,6 +120,7 @@ def encode_data(self, encode_data):
def barcode_image_params(self):
"""Gets the barcode_image_params of this GenerateParams. # noqa: E501

Optional barcode image parameters. # noqa: E501

:return: The barcode_image_params of this GenerateParams. # noqa: E501
:rtype: BarcodeImageParams
Expand All @@ -126,6 +131,7 @@ def barcode_image_params(self):
def barcode_image_params(self, barcode_image_params):
"""Sets the barcode_image_params of this GenerateParams.

Optional barcode image parameters. # noqa: E501

:param barcode_image_params: The barcode_image_params of this GenerateParams. # noqa: E501
:type: BarcodeImageParams
Expand All @@ -137,6 +143,7 @@ def barcode_image_params(self, barcode_image_params):
def qr_params(self):
"""Gets the qr_params of this GenerateParams. # noqa: E501

Optional QR barcode generation parameters. # noqa: E501

:return: The qr_params of this GenerateParams. # noqa: E501
:rtype: QrParams
Expand All @@ -147,6 +154,7 @@ def qr_params(self):
def qr_params(self, qr_params):
"""Sets the qr_params of this GenerateParams.

Optional QR barcode generation parameters. # noqa: E501

:param qr_params: The qr_params of this GenerateParams. # noqa: E501
:type: QrParams
Expand All @@ -158,6 +166,7 @@ def qr_params(self, qr_params):
def code128_params(self):
"""Gets the code128_params of this GenerateParams. # noqa: E501

Optional Code128 barcode generation parameters. # noqa: E501

:return: The code128_params of this GenerateParams. # noqa: E501
:rtype: Code128Params
Expand All @@ -168,6 +177,7 @@ def code128_params(self):
def code128_params(self, code128_params):
"""Sets the code128_params of this GenerateParams.

Optional Code128 barcode generation parameters. # noqa: E501

:param code128_params: The code128_params of this GenerateParams. # noqa: E501
:type: Code128Params
Expand All @@ -179,6 +189,7 @@ def code128_params(self, code128_params):
def pdf417_params(self):
"""Gets the pdf417_params of this GenerateParams. # noqa: E501

Optional PDF417 barcode generation parameters. # noqa: E501

:return: The pdf417_params of this GenerateParams. # noqa: E501
:rtype: Pdf417Params
Expand All @@ -189,6 +200,7 @@ def pdf417_params(self):
def pdf417_params(self, pdf417_params):
"""Sets the pdf417_params of this GenerateParams.

Optional PDF417 barcode generation parameters. # noqa: E501

:param pdf417_params: The pdf417_params of this GenerateParams. # noqa: E501
:type: Pdf417Params
Expand Down
8 changes: 8 additions & 0 deletions aspose_barcode_cloud/models/pdf417_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def __init__(
def pdf417_encode_mode(self):
"""Gets the pdf417_encode_mode of this Pdf417Params. # noqa: E501

PDF417 barcode encode mode. # noqa: E501

:return: The pdf417_encode_mode of this Pdf417Params. # noqa: E501
:rtype: Pdf417EncodeMode
Expand All @@ -112,6 +113,7 @@ def pdf417_encode_mode(self):
def pdf417_encode_mode(self, pdf417_encode_mode):
"""Sets the pdf417_encode_mode of this Pdf417Params.

PDF417 barcode encode mode. # noqa: E501

:param pdf417_encode_mode: The pdf417_encode_mode of this Pdf417Params. # noqa: E501
:type: Pdf417EncodeMode
Expand All @@ -123,6 +125,7 @@ def pdf417_encode_mode(self, pdf417_encode_mode):
def pdf417_error_level(self):
"""Gets the pdf417_error_level of this Pdf417Params. # noqa: E501

PDF417 barcode error correction level. # noqa: E501

:return: The pdf417_error_level of this Pdf417Params. # noqa: E501
:rtype: Pdf417ErrorLevel
Expand All @@ -133,6 +136,7 @@ def pdf417_error_level(self):
def pdf417_error_level(self, pdf417_error_level):
"""Sets the pdf417_error_level of this Pdf417Params.

PDF417 barcode error correction level. # noqa: E501

:param pdf417_error_level: The pdf417_error_level of this Pdf417Params. # noqa: E501
:type: Pdf417ErrorLevel
Expand Down Expand Up @@ -260,6 +264,7 @@ def pdf417_aspect_ratio(self, pdf417_aspect_ratio):
def pdf417_eci_encoding(self):
"""Gets the pdf417_eci_encoding of this Pdf417Params. # noqa: E501

ECI encoding for PDF417 barcode data. # noqa: E501

:return: The pdf417_eci_encoding of this Pdf417Params. # noqa: E501
:rtype: ECIEncodings
Expand All @@ -270,6 +275,7 @@ def pdf417_eci_encoding(self):
def pdf417_eci_encoding(self, pdf417_eci_encoding):
"""Sets the pdf417_eci_encoding of this Pdf417Params.

ECI encoding for PDF417 barcode data. # noqa: E501

:param pdf417_eci_encoding: The pdf417_eci_encoding of this Pdf417Params. # noqa: E501
:type: ECIEncodings
Expand Down Expand Up @@ -304,6 +310,7 @@ def pdf417_is_reader_initialization(self, pdf417_is_reader_initialization):
def pdf417_macro_characters(self):
"""Gets the pdf417_macro_characters of this Pdf417Params. # noqa: E501

Macro character to prepend (structured append). # noqa: E501

:return: The pdf417_macro_characters of this Pdf417Params. # noqa: E501
:rtype: MacroCharacter
Expand All @@ -314,6 +321,7 @@ def pdf417_macro_characters(self):
def pdf417_macro_characters(self, pdf417_macro_characters):
"""Sets the pdf417_macro_characters of this Pdf417Params.

Macro character to prepend (structured append). # noqa: E501

:param pdf417_macro_characters: The pdf417_macro_characters of this Pdf417Params. # noqa: E501
:type: MacroCharacter
Expand Down
Loading