Aspose.BarCode for Python via .NET

We are glad to announce that the Aspose.BarCode API has been made accessible for Python programming language through the .NET platform. This allows developers to seamlessly integrate advanced barcode generation and recognition functionality into their Python projects deployed in the .NET environment.

In this article, we introduce a newly added barcode scanner and generator library for Python via .NET, its key features, and some details on its installation and licensing. Find out more about this API on the corresponding product page.

Features of Aspose.BarCode for Python via .NET

Aspose.BarCode API for Python via .NET is a powerful tool that allows developers to easily incorporate barcode generation and reading functionality into their Python projects. Some of the key features of this barcode library include:

  • Support for a wide variety of barcode formats: it supports over 40 different barcode types, including QR Code, Aztec Code, PDF417, Data Matrix, EAN, UPC, Code 39, and more
  • Advanced barcode recognition capabilities: it can read barcodes from various image formats (BMP, GIF, PNG, JPG, or TIFF) and of different quality. Moreover, it allows decoding damaged or distorted barcodes and supports various recognition presets, which can be used to prioritize barcode reading for speed or quality
  • Customization options: developers can customize various aspects of the generated barcodes, such as size, orientation, and color
  • Easy integration: it can be easily integrated into any Python project using the .NET platform
  • High-quality output: it generates high-quality barcode images that can be easily scanned and read by any barcode reader
  • Easy to use: it has a rich and easy-to-use functionality, which can be easily called from Python
  • Flexibility: it can be used for any kind of development environment, whether web- or desktop-based
  • Platform independence: it is platform-independent and can be used on various operating systems, such as Windows, Linux, or Mac

Supported Barcode Types

Aspose.BarCode API for Python via .NET supports a wide variety of barcode types, including over 60 linear, 2D, and postal symbologies:

  • Linear barcodes are the most common type of barcode and are represented by a series of parallel lines and spaces. Aspose.BarCode API for Python via .NET supports popular linear symbologies, such as Code 39, Code 128, EAN-13, EAN-8, Interleaved 2-of-5, UPC-A, UPC-E, Databar, Codabar, Codablok-f, and more.

  • 2D barcodes have a greater storage capacity than linear ones. They are defined as a matrix of dots or squares. Aspose.BarCode API for Python via .NET supports widely used 2D types, such as QR Code and Micro QR Code, PDF417, Aztec Code, DotCode, Data Matrix, MaxiCode, and more.

  • Postal barcodes are used for mail sorting and tracking. The barcode library supports a vast set of postal barcode standards, including Royal Mail, Planet, Postnet, and more.

Generation and Recognition Capabilities

Aspose.BarCode API for Python via .NET offers advanced generation and recognition capabilities for a wide variety of barcode types:

  • Generation capabilities: the API allows developers to easily generate high-quality barcode images using a simple and easy-to-use API. The main class for generating barcodes is called BarCodeGenerator. It provides methods for setting various properties of the generated barcode, such as the barcode format, text, and size. Once the properties have been set, the Save method can be used to save the generated barcode image to a file or stream.

  • Reading capabilities: the API also enables advanced barcode recognition capabilities, allowing developers to easily recognize barcodes from various sources such as images, PDFs, and even live web camera streams. The main class for recognizing barcodes is called BarCodeReader. It contains methods for recognizing barcodes from a file, stream, or image object. Once the barcode is recognized, the get_code_text method can be used to retrieve the text encoded in the barcode.

Please consult the API documentation for detailed information on all the classes, methods, and properties available for use.

Installation and Usage

The process of installing Aspose.BarCode for Python via .NET involves a few simple steps. Before proceeding, ensure that you have met the following necessary requirements:

  • Python 3.6 or higher
  • GCC-6 runtime libraries (or later)
  • .NET Core Runtime dependencies
  • For Python 3.6-3.7: the pymalloc build of Python
  • libpython shared Python library

Aspose.BarCode for Python via .NET can be obtained by downloading a .whl file from the API download page. Once you have the file, you can install it via the command line by using the following command:

pip install package_name

Alternatively, the source code for the barcode library is available on the Pypi (Python Package Index) repository as a package that can be installed by running the following command:

pip install aspose-barcode-for-python-via-net

Licensing

Aspose.BarCode for Python via .NET offers an evaluation mode that allows for the generation of barcodes without any limitations. However, a watermark with the words “Aspose” will be placed on the resulting barcode image. The unlicensed version can also be used to read all supported barcode types, however only Code 39 can be decoded without any limitations. Attempting to read barcodes corresponding to other types will result in 30% of the decoded text being masked with “*”. To access the full functionality of the library and perform barcode generation and reading without limitations or watermark placement, a license must be obtained. Once a license is purchased, you will have full access to all features of the library.

If you want to test the full capabilities of Aspose.BarCode for Python via .NET, you can request a 30-day temporary license. For more details, please refer to the instructions on How to get a Temporary License?. To use the barcode library without any restrictions, a commercial license must be purchased. You can find information about pricing and terms here.

Conclusion

In this article, we introduced the new barcode library released for Python projects implemented in .NET environments. Overall, Aspose.BarCode API for Python via .NET is a powerful tool that can be used by developers to add advanced barcode functionality to their projects with minimal effort.

If you have any questions, you can refer to Free Support Forum which can help not only with resolving technical issues but also with getting advice to solve any business problem.