Socket
Socket
Sign inDemoInstall

aspose-barcode-cloud

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aspose-barcode-cloud

Aspose.Barcode Cloud API Reference


Maintainers
1

Aspose.BarCode Cloud SDK for Python

License Python package PyPI

  • API version: 3.0
  • Package version: 24.8.0

Demo applications

Scan QRGenerate BarcodeRecognize Barcode
ScanQRGenerateRecognize
Generate Wi-Fi QREmbed BarcodeScan Barcode
Wi-FiQREmbedScan

Aspose.BarCode for 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.

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 3 applications quickly and easily.

Supported Python versions:

  • Python 3.6+

To use these SDKs, you will need Client Id and Client Secret which can be looked up at Aspose Cloud Dashboard (free registration in Aspose Cloud is required for this).

How to use the SDK

The complete source code is available in this repository folder. You can either directly use it in your project via source code or get from PyPi (recommended).

Prerequisites

To use Aspose.BarCode Cloud SDK for Python you need to register an account with Aspose Cloud and lookup/create Client Secret and Client Id at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.

Installation

Install aspose-barcode-cloud via pip

From the command line:

pip install aspose-barcode-cloud

Then import the package:

import aspose_barcode_cloud

Sample usage

The examples below show how you can generate and recognize Code128 barcode and save it into local file using aspose-barcode-cloud:

import os
from pprint import pprint

from aspose_barcode_cloud import (
    BarcodeApi,
    ApiClient,
    Configuration,
    EncodeBarcodeType,
    CodeLocation,
    DecodeBarcodeType,
)

config = Configuration(
    client_id="Client Id from https://dashboard.aspose.cloud/applications",
    client_secret="Client Secret from https://dashboard.aspose.cloud/applications",
    access_token=os.environ.get("TEST_CONFIGURATION_ACCESS_TOKEN"),  # Only for testing in CI, remove this line
)

api = BarcodeApi(ApiClient(config))

# Generate barcode
response = api.get_barcode_generate(EncodeBarcodeType.QR, "Example", text_location=CodeLocation.NONE)
with open("example.png", "wb") as f:
    f.write(response.data)
print("Barcode saved to file 'example.png'")

# Recognize barcode
response = api.scan_barcode("example.png", decode_types=[DecodeBarcodeType.QR])
pprint(response)

Requirements

  • urllib3 >= 1.21.1, <2.0

Licensing

All Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed under MIT License.

Resources

Documentation for API Endpoints

All URIs are relative to https://api.aspose.cloud/v3.0

ClassMethodHTTP requestDescription
BarcodeApiget_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 stream
BarcodeApiput_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 server
BarcodeApiscan_barcodePOST /barcode/scanQuickly scan a barcode from an image.
FileApicopy_filePUT /barcode/storage/file/copy/{srcPath}Copy file
FileApidelete_fileDELETE /barcode/storage/file/{path}Delete file
FileApidownload_fileGET /barcode/storage/file/{path}Download file
FileApimove_filePUT /barcode/storage/file/move/{srcPath}Move file
FileApiupload_filePUT /barcode/storage/file/{path}Upload file
FolderApicopy_folderPUT /barcode/storage/folder/copy/{srcPath}Copy folder
FolderApicreate_folderPUT /barcode/storage/folder/{path}Create the folder
FolderApidelete_folderDELETE /barcode/storage/folder/{path}Delete folder
FolderApiget_files_listGET /barcode/storage/folder/{path}Get all files and folders within a folder
FolderApimove_folderPUT /barcode/storage/folder/move/{srcPath}Move folder
StorageApiget_disc_usageGET /barcode/storage/discGet disc usage
StorageApiget_file_versionsGET /barcode/storage/version/{path}Get file versions
StorageApiobject_existsGET /barcode/storage/exist/{path}Check if file or folder exists
StorageApistorage_existsGET /barcode/storage/{storageName}/existCheck if storage exists

Documentation For Models

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc