Python Barcode Generator and Reader, powered by Java
Create and scan a barcode in seconds
More showcases >from aspose_barcode import generation
# Create instance of BarcodeGenerator
gen = BarcodeGenerator(EncodeTypes.CODE_128, "SKU-12345")
# Set barcode x - dimension in pixels
gen.getParameters().barcode.x_dimension.pixels = 4
# Generate barcode and Save to PNG
gen.save("barcode.png", BarCodeImageFormat.PNG)
> pip install aspose-barcode-for-python-via-java
Java-grade barcode accuracy with a Python-friendly workflow
Get the full capability of the Aspose.BarCode for Java engine from Python. The Python-Java bridge keeps behavior consistent across platforms, so your decoding and rendering results stay predictable as you move from dev to production.
Install with pip, no native builds
Get started with a single pip install. There are no platform-specific native extensions to compile, which keeps setup simple in CI and containers.
Runs anywhere you have Python and a JDK
Use the same code on Windows, Linux, and macOS. The only requirements are Python 3.7+ and a JDK 8+ runtime.
Offline processing in your environment
Generate and recognize barcodes locally. No external services, no data transfer, and no network dependency for day-to-day operation.
Predictable results from the Java engine
You get the maturity and stability of the Java backend with a Pythonic API. This helps keep results consistent across teams, machines, and deployments.
Standards? Covered.
Aspose.BarCode for Python via Java supports all major image formats, including vector formats like SVG and EMF, as well as PDF. Use our API to recognize files from scanners or cameras with ease. Here are all supported barcode symbologies, including 1D, 2D, postal, and composite types. Each one can be generated and recognized across all supported platforms.
Matrix / 2D Codes
- QR Code, MicroQR, rMQR
- Data Matrix, Industrial Data Matrix (DPM)
- Aztec
- Han Xin
- MaxiCode
- DotCode
Linear / 1D Codes
- UPCA, UPCE
- EAN13, EAN14, EAN8
- Code 128
- DataBar
- ITF
- Postal
Industry & Composite Codes
- GS1
- ECI
- Composite barcodes
- HIBC
- SwissQR
- Royal Mailmark
Cross-platform setup for Python
Run on Windows, Linux, or macOS with Python 3.7+ and a Java JDK 8+ (OpenJDK, Amazon Corretto, BellSoft Liberica, Oracle JDK). Install from PyPI with pip, keep processing fully offline, and reuse the same code in local development, CI, containers, and production.
Live Code Demo
Paste text → get a barcode. Drop a file → get decoded data. Both examples come with auto-generated sample code so you can copy straight into your project.
Print-ready barcodes for labels, reports, and documents
Generate clean, scan-friendly barcodes with precise sizing for print and screen. Use raster output for web and PDFs, or vector formats when you need crisp results at any resolution.
- Control X dimension, bar height, quiet zones, borders, fonts, and alignment
- Use codetext helpers for GS1 and complex barcodes, including Swiss QR and HIBC payloads
- ECI and Unicode-friendly encoding for international text
- Export to PNG, JPEG, GIF, BMP, TIFF, SVG, EMF, PDF, or PIL.Image
- Build batch label jobs and integrate barcode images into reports and templates
Built for services, pipelines, and batch processing
Scale from single requests to high-volume jobs. Read multiple barcodes per image, narrow decoding scope when you need speed, and tune recognition behavior with presets.
Generate 1D and 2D barcodes with fine-grained styling controls
Region-of-interest decoding to speed up large frames
Checksum and validation options to reduce false positives
Auto-rotation, skew handling, and multi-barcode detection
Complex payloads: GS1, HIBC, Swiss QR, and more
QualitySettings presets to balance speed and tolerance