Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.BarCode for PHP via Java is a platform-independent product that can be used on any operating system — including Windows, Linux, and Solaris — where both PHP and Java are installed.
It requires Java SE 1.8 or later and works with various JDK distributions, including but not limited to:
This flexibility ensures that Aspose.BarCode for Python via Java can integrate seamlessly into most environments, whether for development, testing, or production.
You have several options to install the product:
Install from Aspose.Barcode for Python via Java Repository Install latest version:
pip install aspose-barcode-for-python-via-java
Install specific version to particular environment
pip install aspose-barcode-for-python-via-java==25.6.0 --upgrade -t ./venv_external
Download the ZIP archive from the Aspose website.
This archive contains:
doc
— includes aspose-barcode-python-xx.x-api-docs.zip
, the compressed API docslicense
— contains the End User License Agreement and third-party licenseslib
— contains Python source files and the product’s JAR filereadme.txt
— general instructionsSteps:
lib ├── asposebarcode/ ├── jlib/ │ └── aspose-barcode-python-xx.x.jar ├── __init__.py ├── Assist.py ├── ComplexBarcode.py ├── Generation.py └── Recognition.py
python --version
lib ├── asposebarcode/ ├── jlib/ │ └── aspose-barcode-python-xx.x.jar ├── __init__.py ├── Assist.py ├── ComplexBarcode.py ├── Generation.py └── Recognition.py
Run a basic Python test:
import sys
import os
import unittest
from asposebarcode.Recognition import BarCodeReader, DecodeType, QualitySettings
sys.path.insert(0, "./lib")
from asposebarcode import Assist, ComplexBarcode, Generation, Recognition
from asposebarcode.Generation import BarcodeGenerator, EncodeTypes
class BarcodeTests(unittest.TestCase):
def __init__(self):
self.folder = "testdata"
self.image_path = os.path.join(self.folder, "code_128.png")
self.pythonLicensePath = os.path.join(self.folder, "Aspose.BarCode.Python.Java.lic")
def test_generate_barcode_image(self):
license = Assist.License()
license.setLicense(self.pythonLicensePath)
generator = BarcodeGenerator(EncodeTypes.CODE_128, "123456")
image = generator.generateBarCodeImage()
generator.save(self.image_path, Generation.BarCodeImageFormat.PNG)
def test_recognize_barcode_image(self):
license = Assist.License()
license.setLicense(self.pythonLicensePath)
barcodeReader = BarCodeReader(self.image_path,None, DecodeType.CODE_128)
barcodeReader.setQualitySettings(QualitySettings.getMaxQuality())
results = barcodeReader.readBarCodes()
for result in results:
print("Code Type:", result.getCodeTypeName())
print("Code Text:", result.getCodeText())
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.