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
Metadata
Release files for datamatrix-lib 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| datamatrix_lib-0.1.tar.gz | 2.5 kB | Without provenance | Details for datamatrix_lib-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datamatrix_lib-0.1-py3-none-any.whl | Python 3 | none | any | Details for datamatrix_lib-0.1-py3-none-any.whl |
Total release size: 4.9 kB
Release files / datamatrix_lib-0.1.tar.gz
| Download URL | datamatrix_lib-0.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd663a954ee615227abc77d200e259a068a5f14c1fb943254d67de369c878182
|
|
BLAKE2b-256 checksum How to use checksums |
76f73166ffe294b9d048593f2070bb425268040fafa64f2c885c848884c97eda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / datamatrix_lib-0.1-py3-none-any.whl
| Download URL | datamatrix_lib-0.1-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de58960d4419788b04ecfba8cf7207fcbf773d42c142e62df4a372f76bf9ce2c
|
|
BLAKE2b-256 checksum How to use checksums |
8cc756b6491cc74f3d60877b804d4b9a9245dcf49c75fb1e1bf07263aef6d9a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Security for datamatrix-lib 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.