
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
aspose-barcode-cloud
Advanced tools
Scan QR | Generate Barcode | Recognize Barcode |
---|---|---|
![]() | ![]() | ![]() |
Generate Wi-Fi QR | Embed Barcode | Scan Barcode |
![]() | ![]() | ![]() |
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:
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).
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).
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.
From the command line:
pip install aspose-barcode-cloud
Then import the package:
import aspose_barcode_cloud
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 (
GenerateApi,
RecognizeApi,
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
)
# Generate barcode
generateApi = GenerateApi(ApiClient(config))
response = generateApi.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
recognizeApi = RecognizeApi(ApiClient(config))
response = recognizeApi.recognize_multipart(DecodeBarcodeType.QR, open("example.png", "rb"))
pprint(response)
All Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed under MIT License.
All URIs are relative to https://api.aspose.cloud/v4.0
Class | Method | HTTP request | Description |
---|---|---|---|
GenerateApi | generate | GET /barcode/generate/{barcodeType} | Generate barcode using GET request with parameters in route and query string. |
GenerateApi | generate_body | POST /barcode/generate-body | Generate barcode using POST request with parameters in body in json or xml format. |
GenerateApi | generate_multipart | POST /barcode/generate-multipart | Generate barcode using POST request with parameters in multipart form. |
RecognizeApi | recognize | GET /barcode/recognize | Recognize barcode from file on server using GET requests with parameters in route and query string. |
RecognizeApi | recognize_base64 | POST /barcode/recognize-body | Recognize barcode from file in request body using POST requests with parameters in body in json or xml format. |
RecognizeApi | recognize_multipart | POST /barcode/recognize-multipart | Recognize barcode from file in request body using POST requests with parameters in multipart form. |
ScanApi | scan | GET /barcode/scan | Scan barcode from file on server using GET requests with parameter in query string. |
ScanApi | scan_base64 | POST /barcode/scan-body | Scan barcode from file in request body using POST requests with parameter in body in json or xml format. |
ScanApi | scan_multipart | POST /barcode/scan-multipart | Scan barcode from file in request body using POST requests with parameter in multipart form. |
FAQs
Aspose.BarCode.Cloud v4.0 Specification
We found that aspose-barcode-cloud demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.