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
pylibdmtxPillowpytest(for testing)
Installation
-
Clone the repository:
git clone https://github.com/yourusername/datamatrix-generator.git cd datamatrix-generator
-
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate
-
Install the required packages:
pip install -r requirements.txt
Usage
-
Run the main script:
python3 main.py -
Follow the prompts to enter the file name and the message for the DataMatrix.
Project Structure
core/datamatrix.py: Contains theDatamatrixGeneratorclass 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 theDatamatrixGeneratorclass.
Testing
To run the tests, use the following command:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd663a954ee615227abc77d200e259a068a5f14c1fb943254d67de369c878182
|
|
| MD5 |
967790b8eb38bad9c1bf022b2eb82ce2
|
|
| BLAKE2b-256 |
76f73166ffe294b9d048593f2070bb425268040fafa64f2c885c848884c97eda
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de58960d4419788b04ecfba8cf7207fcbf773d42c142e62df4a372f76bf9ce2c
|
|
| MD5 |
2154bd8e52c3498d4f3f1f15f0e4934d
|
|
| BLAKE2b-256 |
8cc756b6491cc74f3d60877b804d4b9a9245dcf49c75fb1e1bf07263aef6d9a9
|