Skip to main content

Barcode Generation & Scanning Library for Python

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

Aspose.BarCode for Python via .NET is a barcode Python library for barcode generation and scanning to be used in a Python application. The barcode library allows fine-tuning of barcode appearance aspects like barcode size, captions, alignment, colors, font and its size. The library supports wide range of scanning presets for optimal trade-off between recognition speed and quality.

What is Aspose.BarCode for Python via .NET?

Aspose.BarCode for Python via .NET supports more tan 40 different barcode symbologies. Aspose.BarCode for Python via .NET supports various file formats such as JPEG, SVG, PNG, EMF, etc. You can generate high-quality numeric, alpha-numeric and 2D barcodes, also you can tune the appearance of the generated barcodes such as codetext, captions, dimensions, aspect ratio, and more.

Aspose.BarCode for Python via .NET also assists you in barcode scanning in an efficient manner via internal multi-threading. It can recognize barcode symbologies and fetch the encoded text. You can also detect several symbologies present in a single picture or perform barcode recognition on a page with mixed text and images.

Barcode Generation Features

  • Generate barcode images programmatically.
  • Create a 'QR' and 'MicroQR' Barcode, set error correction level, and encoding mode.
  • Create Datamatrix barcodes with default or custom encoding mode.
  • Enable checksum for the barcodes of applicable symbologies.
  • Supports error correction for various types of barcodes.
  • Adjust image size of 2D barcodes and set aspect ratio.
  • Enable image border, modify barcode image border width and style.
  • Detect Unicode encoding of barcodes.
  • Hide codetext that is too long or reduce the font size of codetext.
  • Codetext can be set as per the associated symbology type and the outbound part is truncated.
  • Colorize barcode, code text, barcode background, barcode border, and caption.
  • Specify size unit for the barcode image in document, inch, millimeter, pixel, and point.
  • Lots of other barcode processing features.

Supported Symbologies for Barcode Generation & Recognition

  • BarCode Supplement
  • BooklandEAN
  • Codabar
  • Code11
  • Code128
  • Code39 Extended
  • Code39 Standard
  • Code93 Extended
  • Code93 Standard
  • Datamatrix
  • Deutsche Post Identcode
  • EAN128
  • EAN13
  • EAN14(SCC14)
  • EAN8
  • Interleaved2of5
  • ITF14
  • Matrix 2 of 5
  • MSI
  • PDF417
  • Planet
  • Postnet
  • PZN (Pharma Zentral Nummer, Pharmazentralnummer barcode)
  • QR
  • Han Xin
  • SSCC18
  • Standard2of5
  • UPCA
  • UPCE

Supported Symbologies for Barcode Generation Only

  • Australia Post
  • Aztec

Read & Write Barcode Labels

JPEG, TIFF, PNG, BMP, GIF

Save Barcode Labels As

EMF, SVG

Generate QR Barcode in PNG Format

You can execute the below code snippet to see how Aspose.BarCode API works in your development environment. You may also check the GitHub Repository for other common usage scenarios.

from aspose.barcode import generation

gen = generation.BarcodeGenerator(generation.EncodeTypes.QR, "ASPOSE")
gen.save("output.png", generation.BarCodeImageFormat.PNG)

Hide Barcode Label Text using Python

You can customize properities of generated barcode with Aspose.BarCode for Python via .NET. The following example shows how to hide the barcode text using Python:

from aspose.barcode import generation

gen = generation.BarcodeGenerator(generation.EncodeTypes.DATA_MATRIX, "ASPOSE")
gen.parameters.barcode.code_text_parameters.location = generation.CodeLocation.NONE
gen.save("output.png", generation.BarCodeImageFormat.PNG)

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

aspose_barcode_for_python_via_net-26.7-py3-none-win_amd64.whl (43.3 MB view details)

Uploaded Python 3Windows x86-64

aspose_barcode_for_python_via_net-26.7-py3-none-win32.whl (37.9 MB view details)

Uploaded Python 3Windows x86

aspose_barcode_for_python_via_net-26.7-py3-none-macosx_11_0_arm64.whl (42.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

aspose_barcode_for_python_via_net-26.7-py3-none-macosx_10_14_x86_64.whl (49.7 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

Details for the file aspose_barcode_for_python_via_net-26.7-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for aspose_barcode_for_python_via_net-26.7-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9907217f0520240838fbb005b20b6d5dad9c62b1de06fe1214812cd8990d9112
MD5 be220c8e699149c164522709eeeed205
BLAKE2b-256 9798fbbcc683756527f45ec35824a00956f6c7bea430fbc6bd610701a6f42711

See more details on using hashes here.

File details

Details for the file aspose_barcode_for_python_via_net-26.7-py3-none-win32.whl.

File metadata

File hashes

Hashes for aspose_barcode_for_python_via_net-26.7-py3-none-win32.whl
Algorithm Hash digest
SHA256 84ba7549221ef5d3864e9f8ef1f59dbea0097d325a5b8922c86b4ac2f500768b
MD5 53fc77fd179aef7c4d98b77f8fca221c
BLAKE2b-256 f979fbfe428a9feca36b1b5cbeb33c71ee8a88754c3676d10dfb63511ce6a45b

See more details on using hashes here.

File details

Details for the file aspose_barcode_for_python_via_net-26.7-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for aspose_barcode_for_python_via_net-26.7-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fc64a76cfdbccd4ff174e413341cdb08317cf9ec3a123b15d20d415ecfc8aa5d
MD5 67f0180c6bed654fa0cb49b53b83e2b0
BLAKE2b-256 291a7d5984269af7a6e4742f5093cb2030c5fe4de9d19656c9c20cc160666849

See more details on using hashes here.

File details

Details for the file aspose_barcode_for_python_via_net-26.7-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aspose_barcode_for_python_via_net-26.7-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2162855b1dbdc3bcc978306ee0454634d9f6ace493bafa11e0fd11213602cb49
MD5 0ec1dc3af9b0d703a88afed6df874747
BLAKE2b-256 ffd0f618ca1d435b12549de7206a9e525d83a652adca1bdfc82d44dfab153e51

See more details on using hashes here.

File details

Details for the file aspose_barcode_for_python_via_net-26.7-py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for aspose_barcode_for_python_via_net-26.7-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 9380922dd3b121f54ab579ac93112c06dfd4ab8d3b3dd434d231c63eb1c3d83a
MD5 d7598e68e53095fb5109f636148f679a
BLAKE2b-256 7e461821f3ab849c4d0d1d5e5ed94c2f9e6f2a63c4a259c8d9773952c90a065e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

26.7 This release

5 files

26.6

5 files

26.5

5 files

25.12

5 files

25.11

5 files

25.8

3 files

25.7

5 files

25.6

5 files

25.5

5 files

25.4

5 files

25.3

5 files

25.2

5 files

25.1

5 files

24.12

5 files

24.11

5 files

24.10

5 files

24.9

5 files

24.8

5 files

24.7

5 files

24.6

5 files

24.5

5 files

24.4

5 files

24.3

5 files

24.2

5 files

24.1

5 files

23.12

5 files

23.11

5 files

23.10

4 files

23.9

3 files

23.8

3 files

23.7

3 files

23.6

2 files

23.5

2 files

23.4

2 files

23.3

2 files

23.1

2 files

22.12.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page