Skip to main content

Lib de geração de qrcode datamatrix

Project description

DataMatrix Generator

This project is a DataMatrix generator written in Python. It allows you to generate DataMatrix barcodes from text input and save them as image files.

Features

  • Generate DataMatrix barcodes from text input
  • Save generated DataMatrix as PNG images
  • Customizable output directory
  • Error handling and logging

Requirements

  • Python 3.x
  • pylibdmtx
  • Pillow
  • pytest (for testing)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/datamatrix-generator.git
    cd datamatrix-generator
    
  2. Create a virtual environment and activate it:

    python3 -m venv venv
    source venv/bin/activate
    
  3. Install the required packages:

    pip install -r requirements.txt
    

Usage

  1. Run the main script:

    python3 main.py
    
  2. Follow the prompts to enter the file name and the message for the DataMatrix.

Project Structure

  • core/
    • datamatrix.py: Contains the DatamatrixGenerator class for generating DataMatrix barcodes.
    • errors/
      • error_handler.py: Contains the error handling logic.
  • input/
    • getTerminalInput.py: Contains the function to get input from the terminal.
  • main.py: Entry point of the application.
  • tests/
    • test_datamatrix.py: Contains tests for the DatamatrixGenerator class.

Testing

To run the tests, use the following command:

pytest

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

datamatrix_lib-0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

datamatrix_lib-0.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file datamatrix_lib-0.1.tar.gz.

File metadata

  • Download URL: datamatrix_lib-0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for datamatrix_lib-0.1.tar.gz
Algorithm Hash digest
SHA256 fd663a954ee615227abc77d200e259a068a5f14c1fb943254d67de369c878182
MD5 967790b8eb38bad9c1bf022b2eb82ce2
BLAKE2b-256 76f73166ffe294b9d048593f2070bb425268040fafa64f2c885c848884c97eda

See more details on using hashes here.

File details

Details for the file datamatrix_lib-0.1-py3-none-any.whl.

File metadata

  • Download URL: datamatrix_lib-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for datamatrix_lib-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de58960d4419788b04ecfba8cf7207fcbf773d42c142e62df4a372f76bf9ce2c
MD5 2154bd8e52c3498d4f3f1f15f0e4934d
BLAKE2b-256 8cc756b6491cc74f3d60877b804d4b9a9245dcf49c75fb1e1bf07263aef6d9a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page