Package: aspose-barcode-cloud
Aspose.BarCode Cloud SDK for PythonAPI version: 3.0Package version: 24.2.0Demo applicationsScan QRGenerate BarcodeRecognize BarcodeGenerate Wi-Fi QREmbed BarcodeScan BarcodeAspose.BarCode for Cloudis 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.This repository contains Aspose.BarCode Cloud SDK for Python source code. This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Python 2 or Python 3 applications quickly and easily.Supported Python versions:Python 3.5+To use these SDKs, you will need Client Id and Client Secret which can be looked up atAspose Cloud Dashboard(free registration in Aspose Cloud is required for this).How to use the SDKThe complete source code is available in this repository folder. You can either directly use it in your project via source code or getfrom PyPi(recommended).PrerequisitesTo use Aspose.BarCode Cloud SDK for Python you need to register an account withAspose Cloudand lookup/create Client Secret and Client Id atCloud Dashboard. There is free quota available. For more details, seeAspose Cloud Pricing.InstallationInstall aspose-barcode-cloud via pipFrom the command line:pipinstallaspose-barcode-cloudThen import the package:importaspose_barcode_cloudSample usageThe examples below show how you can generate and recognize Code128 barcode and save it into local file using aspose-barcode-cloud:from__future__importdivision,print_functionfrompprintimportpprintimportaspose_barcode_cloudfromaspose_barcode_cloud.restimportApiException# Configure OAuth2 access token for authorization: JWTconfiguration=aspose_barcode_cloud.Configuration(client_id="Client Id from https://dashboard.aspose.cloud/applications",client_secret="Client Secret from https://dashboard.aspose.cloud/applications",)# create an instance of the API classapi=aspose_barcode_cloud.BarcodeApi(aspose_barcode_cloud.ApiClient(configuration))type=aspose_barcode_cloud.EncodeBarcodeType.CODE128# str | Type of barcode to generate.text='text_example'# str | Text to encode.try:# Generate barcode.response=api.get_barcode_generate(type,text)withopen("example.png","wb")asf:f.write(response.data)print("Barcode saved to file 'example.png'")exceptApiExceptionase:print("Exception when calling BarcodeApi->get_barcode_generate:%s\n"%e)# Recognize barcoderesponse=api.post_barcode_recognize_from_url_or_content(image="example.png",preset=aspose_barcode_cloud.PresetType.HIGHPERFORMANCE)pprint(response)Requirementssix >= 1.10urllib3 >= 1.21.1, <2.0LicensingAll Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed underMIT License.ResourcesWebsiteProduct HomeDocumentationFree Support ForumPaid Support HelpdeskBlogDocumentation for API EndpointsAll URIs are relative tohttps://api.aspose.cloud/v3.0ClassMethodHTTP requestDescriptionBarcodeApiget_barcode_generateGET/barcode/generateGenerate barcode.BarcodeApiget_barcode_recognizeGET/barcode/{name}/recognizeRecognize barcode from a file on server.BarcodeApipost_barcode_recognize_from_url_or_contentPOST/barcode/recognizeRecognize barcode from an url or from request body. Request body can contain raw data bytes of the image with content-type &quot;application/octet-stream&quot;. An image can also be passed as a form field.BarcodeApipost_generate_multiplePOST/barcode/generateMultipleGenerate multiple barcodes and return in response streamBarcodeApiput_barcode_generate_filePUT/barcode/{name}/generateGenerate barcode and save on server (from query params or from file with json or xml content)BarcodeApiput_barcode_recognize_from_bodyPUT/barcode/{name}/recognizeRecognition of a barcode from file on server with parameters in body.BarcodeApiput_generate_multiplePUT/barcode/{name}/generateMultipleGenerate image with multiple barcodes and put new file on serverFileApicopy_filePUT/barcode/storage/file/copy/{srcPath}Copy fileFileApidelete_fileDELETE/barcode/storage/file/{path}Delete fileFileApidownload_fileGET/barcode/storage/file/{path}Download fileFileApimove_filePUT/barcode/storage/file/move/{srcPath}Move fileFileApiupload_filePUT/barcode/storage/file/{path}Upload fileFolderApicopy_folderPUT/barcode/storage/folder/copy/{srcPath}Copy folderFolderApicreate_folderPUT/barcode/storage/folder/{path}Create the folderFolderApidelete_folderDELETE/barcode/storage/folder/{path}Delete folderFolderApiget_files_listGET/barcode/storage/folder/{path}Get all files and folders within a folderFolderApimove_folderPUT/barcode/storage/folder/move/{srcPath}Move folderStorageApiget_disc_usageGET/barcode/storage/discGet disc usageStorageApiget_file_versionsGET/barcode/storage/version/{path}Get file versionsStorageApiobject_existsGET/barcode/storage/exist/{path}Check if file or folder existsStorageApistorage_existsGET/barcode/storage/{storageName}/existCheck if storage existsDocumentation For ModelsApiErrorApiErrorResponseAustralianPostParamsAutoSizeModeAvailableGraphicsUnitAztecEncodeModeAztecParamsAztecSymbolModeBarcodeResponseBarcodeResponseListBorderDashStyleCaptionParamsChecksumValidationCodabarChecksumModeCodabarParamsCodabarSymbolCodablockParamsCode128EmulationCode128EncodeModeCode128ParamsCode16KParamsCodeLocationCouponParamsCustomerInformationInterpretingTypeDataBarParamsDataMatrixEccTypeDataMatrixEncodeModeDataMatrixParamsDataMatrixVersionDecodeBarcodeTypeDiscUsageDotCodeEncodeModeDotCodeParamsECIEncodingsEnableChecksumEncodeBarcodeTypeErrorErrorDetailsFileVersionsFilesListFilesUploadResultFontModeFontParamsFontStyleGeneratorParamsGeneratorParamsListHanXinEncodeModeHanXinErrorLevelHanXinParamsHanXinVersionITF14BorderTypeITFParamsMacroCharacterMaxiCodeEncodeModeMaxiCodeModeMaxiCodeParamsObjectExistPaddingPatchCodeParamsPatchFormatPdf417CompactionModePdf417ErrorLevelPdf417MacroTerminatorPdf417ParamsPostalParamsPresetTypeQREncodeModeQREncodeTypeQRErrorLevelQRVersionQrParamsReaderParamsRegionPointResultImageInfoStorageExistStorageFileStructuredAppendTextAlignmentFileVersion