# Barcode Generation & Scanning Library for Python
[Product Page](https://products.aspose.com/barcode/python-net/) | [Docs](https://docs.aspose.com/barcode/python-net/) | [Demos](https://products.aspose.app/barcode/family) | [API Reference](https://docs.aspose.com/barcode/python-net/api-reference/) | [Examples](https://github.com/aspose-barcode/Aspose.Barcode-for-Python-via-.NET) | [Blog](https://blog.aspose.com/category/barcode/) | [Free Support](https://forum.aspose.com/c/barcode/13) | [Temporary License](https://purchase.aspose.com/temporary-license/)
[Aspose.BarCode for Python via .NET](https://products.aspose.com/barcode/python-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](https://products.aspose.com/barcode/python-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](https://docs.aspose.com/barcode/python-net/barcode-generation/) images programmatically.
- [Create a 'QR' and 'MicroQR' Barcode](https://docs.aspose.com/barcode/python-net/generate-qr-code/), set error correction level, and encoding mode.
- Create [Datamatrix barcodes](https://docs.aspose.com/barcode/python-net/generate-datamatrix-barcode/) 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](https://github.com/aspose-barcode/Aspose.Barcode-for-Python-via-.NET) for other common usage scenarios.
```python
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:
```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](https://products.aspose.com/barcode/python-net/) | [Docs](https://docs.aspose.com/barcode/python-net/) | [Demos](https://products.aspose.app/barcode/family) | [API Reference](https://docs.aspose.com/barcode/python-net/api-reference/) | [Examples](https://github.com/aspose-barcode/Aspose.Barcode-for-Python-via-.NET) | [Blog](https://blog.aspose.com/category/barcode/) | [Free Support](https://forum.aspose.com/c/barcode/13) | [Temporary License](https://purchase.aspose.com/temporary-license/)
Raw data
{
"_id": null,
"home_page": "https://products.aspose.com/barcode/python-net/",
"name": "aspose-barcode-for-python-via-net",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.14,>=3.6",
"maintainer_email": null,
"keywords": "Aspose.Barcode, barcode, generation, recognition, Alpha-Numeric, AI-8102-Coupon, AustralianPosteParcel, AustraliaPost, Aztec, Codabar, CodablockF, Code11, Code128, Code16K, Code32, Code39Extended, Code39Standard, Code93Extended, Code93Standard, DatabarExpanded, DatabarExpandedStacked, DatabarLimited, DatabarOmniDirectional, DatabarStacked, DatabarStackedOmniDirectional, DatabarTruncated, DataLogic2of5, DataMatrix, DeutschePostIdentcode, DeutschePostLeitcode, DotCode, DutchKIX, EAN13, EAN14, EAN8, GS1CodablockF, GS1Code128, GS1DataMatrix, GS1QR, IATA2of5, Interleaved2of5, ISBN, ISMN, ISSN, ItalianPost25, ITF14, ITF6, Mailmark2D, Mailmark4-State, MacroPdf417, Matrix2of5, MaxiCode, MicroPdf417, MSI, OneCode, OPC, PatchCode, Pdf417, Pharmacode, Planet, Postnet, PZN, QR, RM4SCC, SCC14, SingaporePost, SSCC18, Standard2of5, SwissQR, SwissPostParcel, UPCA, UpcaGs1Code128Coupon, UpcaGs1DatabarCoupon, UPCE, VIN, HanXin, rMQR, Rectangular-Micro-QR-Code",
"author": "Aspose",
"author_email": null,
"download_url": null,
"platform": "macos_arm64",
"description": "# Barcode Generation & Scanning Library for Python\n\n[Product Page](https://products.aspose.com/barcode/python-net/) | [Docs](https://docs.aspose.com/barcode/python-net/) | [Demos](https://products.aspose.app/barcode/family) | [API Reference](https://docs.aspose.com/barcode/python-net/api-reference/) | [Examples](https://github.com/aspose-barcode/Aspose.Barcode-for-Python-via-.NET) | [Blog](https://blog.aspose.com/category/barcode/) | [Free Support](https://forum.aspose.com/c/barcode/13) | [Temporary License](https://purchase.aspose.com/temporary-license/)\n\n[Aspose.BarCode for Python via .NET](https://products.aspose.com/barcode/python-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.\n\n## What is Aspose.BarCode for Python via .NET?\n\n[Aspose.BarCode for Python via .NET](https://products.aspose.com/barcode/python-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.\n\nAspose.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.\n\n\n## Barcode Generation Features\n\n- [Generate barcode](https://docs.aspose.com/barcode/python-net/barcode-generation/) images programmatically.\n- [Create a 'QR' and 'MicroQR' Barcode](https://docs.aspose.com/barcode/python-net/generate-qr-code/), set error correction level, and encoding mode.\n- Create [Datamatrix barcodes](https://docs.aspose.com/barcode/python-net/generate-datamatrix-barcode/) with default or custom encoding mode.\n- Enable checksum for the barcodes of applicable symbologies.\n- Supports error correction for various types of barcodes.\n- Adjust image size of 2D barcodes and set aspect ratio.\n- Enable image border, modify barcode image border width and style.\n- Detect Unicode encoding of barcodes.\n- Hide codetext that is too long or reduce the font size of codetext.\n- Codetext can be set as per the associated symbology type and the outbound part is truncated.\n- Colorize barcode, code text, barcode background, barcode border, and caption.\n- Specify size unit for the barcode image in document, inch, millimeter, pixel, and point.\n- Lots of other barcode processing features.\n\n## Supported Symbologies for Barcode Generation & Recognition\n\n- BarCode Supplement\n- BooklandEAN\n- Codabar\n- Code11\n- Code128\n- Code39 Extended\n- Code39 Standard\n- Code93 Extended\n- Code93 Standard\n- Datamatrix\n- Deutsche Post Identcode\n- EAN128\n- EAN13\n- EAN14(SCC14)\n- EAN8\n- Interleaved2of5\n- ITF14\n- Matrix 2 of 5\n- MSI\n- PDF417\n- Planet\n- Postnet\n- PZN (Pharma Zentral Nummer, Pharmazentralnummer barcode)\n- QR\n- Han Xin\n- SSCC18\n- Standard2of5\n- UPCA\n- UPCE\n\n## Supported Symbologies for Barcode Generation Only\n\n- Australia Post\n- Aztec\n\n## Read & Write Barcode Labels\n\nJPEG, TIFF, PNG, BMP, GIF\n\n## Save Barcode Labels As\n\nEMF, SVG\n\n## Generate QR Barcode in PNG Format\n\nYou can execute the below code snippet to see how Aspose.BarCode API works in your development environment. You may also check the [GitHub Repository](https://github.com/aspose-barcode/Aspose.Barcode-for-Python-via-.NET) for other common usage scenarios.\n\n```python\nfrom aspose.barcode import generation\n\ngen = generation.BarcodeGenerator(generation.EncodeTypes.QR, \"ASPOSE\")\ngen.save(\"output.png\", generation.BarCodeImageFormat.PNG)\n```\n\n## Hide Barcode Label Text using Python\n\nYou 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:\n\n```python\nfrom aspose.barcode import generation\n\ngen = generation.BarcodeGenerator(generation.EncodeTypes.DATA_MATRIX, \"ASPOSE\")\ngen.parameters.barcode.code_text_parameters.location = generation.CodeLocation.NONE\ngen.save(\"output.png\", generation.BarCodeImageFormat.PNG)\n```\n\n[Product Page](https://products.aspose.com/barcode/python-net/) | [Docs](https://docs.aspose.com/barcode/python-net/) | [Demos](https://products.aspose.app/barcode/family) | [API Reference](https://docs.aspose.com/barcode/python-net/api-reference/) | [Examples](https://github.com/aspose-barcode/Aspose.Barcode-for-Python-via-.NET) | [Blog](https://blog.aspose.com/category/barcode/) | [Free Support](https://forum.aspose.com/c/barcode/13) | [Temporary License](https://purchase.aspose.com/temporary-license/)\n",
"bugtrack_url": null,
"license": "https://company.aspose.com/legal/eula",
"summary": "Aspose.BarCode for Python via .NET is a python libray for generation and recognition of barcodes for many popular formats.",
"version": "24.11",
"project_urls": {
"API Reference": "https://docs.aspose.com/barcode/python-net/api-reference/",
"Blog": "https://blog.aspose.com/category/barcode/",
"Demos": "https://products.aspose.app/barcode/family",
"Documentation": "https://docs.aspose.com/barcode/python-net/",
"Free support": "https://forum.aspose.com/c/barcode/13",
"Homepage": "https://products.aspose.com/barcode/python-net/",
"Temporary License": "https://purchase.aspose.com/temporary-license/"
},
"split_keywords": [
"aspose.barcode",
" barcode",
" generation",
" recognition",
" alpha-numeric",
" ai-8102-coupon",
" australianposteparcel",
" australiapost",
" aztec",
" codabar",
" codablockf",
" code11",
" code128",
" code16k",
" code32",
" code39extended",
" code39standard",
" code93extended",
" code93standard",
" databarexpanded",
" databarexpandedstacked",
" databarlimited",
" databaromnidirectional",
" databarstacked",
" databarstackedomnidirectional",
" databartruncated",
" datalogic2of5",
" datamatrix",
" deutschepostidentcode",
" deutschepostleitcode",
" dotcode",
" dutchkix",
" ean13",
" ean14",
" ean8",
" gs1codablockf",
" gs1code128",
" gs1datamatrix",
" gs1qr",
" iata2of5",
" interleaved2of5",
" isbn",
" ismn",
" issn",
" italianpost25",
" itf14",
" itf6",
" mailmark2d",
" mailmark4-state",
" macropdf417",
" matrix2of5",
" maxicode",
" micropdf417",
" msi",
" onecode",
" opc",
" patchcode",
" pdf417",
" pharmacode",
" planet",
" postnet",
" pzn",
" qr",
" rm4scc",
" scc14",
" singaporepost",
" sscc18",
" standard2of5",
" swissqr",
" swisspostparcel",
" upca",
" upcags1code128coupon",
" upcags1databarcoupon",
" upce",
" vin",
" hanxin",
" rmqr",
" rectangular-micro-qr-code"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6f0a0f83fb9f261b017612d6cdda5fb9065703ee7e7fe1b46997d1018b6a13e9",
"md5": "24f7b0dd7ff590495807232e9342238f",
"sha256": "81c7a392b17fbd4431ba84193cffcf8de682aee0c8620cabc8e550b6689b5c72"
},
"downloads": -1,
"filename": "aspose_barcode_for_python_via_net-24.11-py3-none-macosx_10_14_x86_64.whl",
"has_sig": false,
"md5_digest": "24f7b0dd7ff590495807232e9342238f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.14,>=3.6",
"size": 49107830,
"upload_time": "2024-11-19T23:02:19",
"upload_time_iso_8601": "2024-11-19T23:02:19.098046Z",
"url": "https://files.pythonhosted.org/packages/6f/0a/0f83fb9f261b017612d6cdda5fb9065703ee7e7fe1b46997d1018b6a13e9/aspose_barcode_for_python_via_net-24.11-py3-none-macosx_10_14_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8cf14fec5a9caaa736be979a03434ceaba5b4eab875c8b9d24c04f981c5ce951",
"md5": "ad5fa3a5c2b6efb44c72c5968e49d3d9",
"sha256": "655ae960853865a4e7cc01a484aab5edaf3ac5fbef117a66ef2af470cc935f2e"
},
"downloads": -1,
"filename": "aspose_barcode_for_python_via_net-24.11-py3-none-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "ad5fa3a5c2b6efb44c72c5968e49d3d9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.14,>=3.6",
"size": 41922052,
"upload_time": "2024-11-19T22:56:29",
"upload_time_iso_8601": "2024-11-19T22:56:29.512855Z",
"url": "https://files.pythonhosted.org/packages/8c/f1/4fec5a9caaa736be979a03434ceaba5b4eab875c8b9d24c04f981c5ce951/aspose_barcode_for_python_via_net-24.11-py3-none-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d48963eb66330b6d2c3007bad2d69af71891fad2408c9dc7d99f74ed2e714510",
"md5": "0bdfa9418d4777fd557605ad9192ca29",
"sha256": "330f445fcdc48f1f35a3d9a08afa450d910a2c72ccdceba9c7718d65ad82d0c8"
},
"downloads": -1,
"filename": "aspose_barcode_for_python_via_net-24.11-py3-none-manylinux1_x86_64.whl",
"has_sig": false,
"md5_digest": "0bdfa9418d4777fd557605ad9192ca29",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.14,>=3.6",
"size": 53159000,
"upload_time": "2024-11-19T23:03:21",
"upload_time_iso_8601": "2024-11-19T23:03:21.801224Z",
"url": "https://files.pythonhosted.org/packages/d4/89/63eb66330b6d2c3007bad2d69af71891fad2408c9dc7d99f74ed2e714510/aspose_barcode_for_python_via_net-24.11-py3-none-manylinux1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6d9ee59da2071a4c153ceb37eb1ae8938dd4eebcb014987e409e773373c5b0a7",
"md5": "c7c4f19e382a652dd0cf06605ecd1754",
"sha256": "abff5a71c884690378066081028c5d2eeabcd4dcac14d6950122d0989e29bb4a"
},
"downloads": -1,
"filename": "aspose_barcode_for_python_via_net-24.11-py3-none-win32.whl",
"has_sig": false,
"md5_digest": "c7c4f19e382a652dd0cf06605ecd1754",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.14,>=3.6",
"size": 37760040,
"upload_time": "2024-11-19T23:03:29",
"upload_time_iso_8601": "2024-11-19T23:03:29.460740Z",
"url": "https://files.pythonhosted.org/packages/6d/9e/e59da2071a4c153ceb37eb1ae8938dd4eebcb014987e409e773373c5b0a7/aspose_barcode_for_python_via_net-24.11-py3-none-win32.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0d3fb5b2e02cd19958c5e8f688c48d64e29ffda7ce7d769bf015d91760ceebbd",
"md5": "08023a1289e388cd99e7bff0701af62d",
"sha256": "61ad791a1422462d3842291259266d1e5b1d81fa96a1bee1fb38b29f3159a7d0"
},
"downloads": -1,
"filename": "aspose_barcode_for_python_via_net-24.11-py3-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "08023a1289e388cd99e7bff0701af62d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.14,>=3.6",
"size": 43126215,
"upload_time": "2024-11-19T23:03:36",
"upload_time_iso_8601": "2024-11-19T23:03:36.132431Z",
"url": "https://files.pythonhosted.org/packages/0d/3f/b5b2e02cd19958c5e8f688c48d64e29ffda7ce7d769bf015d91760ceebbd/aspose_barcode_for_python_via_net-24.11-py3-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-19 23:02:19",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "aspose-barcode-for-python-via-net"
}