pyStrich
========
pyStrich is a Python module to generate 1D and 2D barcodes. Currently it
supports
* code39
* code128
* ean13
* datamatrix
* qrcode - see [known issues](#known-issues)
Available from PyPI: https://pypi.python.org/pypi/pyStrich
[![Build Status](https://travis-ci.org/mmulqueen/pyStrich.svg)](https://travis-ci.org/mmulqueen/pyStrich)
Usage
-----
The interface of the different encoders is fairly straightforward:
```python
from pystrich.datamatrix import DataMatrixEncoder
encoder = DataMatrixEncoder("This is a DataMatrix.")
encoder.save( "sample_barcodes/datamatrix_test.png" )
print(encoder.get_ascii())
```
![Sample of DataMatrix generated by the code above.](sample_barcodes/datamatrix_test.png)
Relevant imports are:
```python
from pystrich.code39 import Code39Encoder
from pystrich.code128 import Code128Encoder
from pystrich.datamatrix import DataMatrixEncoder
from pystrich.ean13 import EAN13Encoder
from pystrich.qrcode import QRCodeEncoder
```
Known Issues
----------
Code39, Code128 and DataMatrix support is considered by the maintainer to be good and they are known to be used in
production.
The maintainer rarely uses EAN13 or QRCode support. You may wish to consider more actively maintained modules.
The maintainer has no plans to fix the following issues:
* Some QR codes cause an exception to be thrown - root cause unknown - [see issue 8](https://github.com/mmulqueen/pyStrich/issues/8).
* DataMatrix module only supports up to 174 characters or 348 digits of data - [see issue 2](https://github.com/mmulqueen/pyStrich/issues/2).
Background
----------
pyStrich is a fork of huBarcode module with modifications to support Python 3 (amongst other changes). pyStrich
only supports encoding not decoding.
[huBarcode](https://github.com/hudora/huBarcode) was developed by [HuDoRa](http://www.hudora.de/en/) from at least 2007, the project does not seem to have been
active since late 2013. [Method B Ltd](http://method-b.uk) has forked it to provide Python 3 support and facilitate
future development. Thank you to the folks at HuDoRa for doing most of the hard work, porting was the easy part.
License
-------
If you worry about copyright you might consider this Software BSD-Licensed.
If you are still worried, you might consider it GPL1/2/3 compatible.
But don't worry. If you need something formal:
The code is available under the Apache License, Version 2.0.
Raw data
{
"_id": null,
"home_page": "https://github.com/mmulqueen/pyStrich",
"name": "pyStrich",
"maintainer": "Michael Mulqueen",
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": "mike@method-b.uk",
"keywords": "barcode, qrcode, datamatrix, ean13, code39, code128",
"author": "Michael Mulqueen",
"author_email": "mike@method-b.uk",
"download_url": "https://files.pythonhosted.org/packages/a9/e5/94bb9bfd60d1570d4d7dfcb674ea0ee011eeca14412e5d111787d2aa47c4/pystrich-0.9.tar.gz",
"platform": null,
"description": "pyStrich\n========\npyStrich is a Python module to generate 1D and 2D barcodes. Currently it\nsupports\n\n * code39\n * code128\n * ean13\n * datamatrix\n * qrcode - see [known issues](#known-issues)\n\nAvailable from PyPI: https://pypi.python.org/pypi/pyStrich\n \n[![Build Status](https://travis-ci.org/mmulqueen/pyStrich.svg)](https://travis-ci.org/mmulqueen/pyStrich)\n\nUsage\n-----\nThe interface of the different encoders is fairly straightforward:\n\n```python\nfrom pystrich.datamatrix import DataMatrixEncoder\nencoder = DataMatrixEncoder(\"This is a DataMatrix.\")\nencoder.save( \"sample_barcodes/datamatrix_test.png\" )\nprint(encoder.get_ascii())\n```\n![Sample of DataMatrix generated by the code above.](sample_barcodes/datamatrix_test.png)\n\nRelevant imports are:\n\n```python\nfrom pystrich.code39 import Code39Encoder\nfrom pystrich.code128 import Code128Encoder\nfrom pystrich.datamatrix import DataMatrixEncoder\nfrom pystrich.ean13 import EAN13Encoder\nfrom pystrich.qrcode import QRCodeEncoder\n```\n\nKnown Issues\n----------\nCode39, Code128 and DataMatrix support is considered by the maintainer to be good and they are known to be used in \nproduction.\n\nThe maintainer rarely uses EAN13 or QRCode support. You may wish to consider more actively maintained modules. \n\nThe maintainer has no plans to fix the following issues:\n\n* Some QR codes cause an exception to be thrown - root cause unknown - [see issue 8](https://github.com/mmulqueen/pyStrich/issues/8).\n* DataMatrix module only supports up to 174 characters or 348 digits of data - [see issue 2](https://github.com/mmulqueen/pyStrich/issues/2).\n\nBackground\n----------\npyStrich is a fork of huBarcode module with modifications to support Python 3 (amongst other changes). pyStrich\nonly supports encoding not decoding.\n\n[huBarcode](https://github.com/hudora/huBarcode) was developed by [HuDoRa](http://www.hudora.de/en/) from at least 2007, the project does not seem to have been\nactive since late 2013. [Method B Ltd](http://method-b.uk) has forked it to provide Python 3 support and facilitate\nfuture development. Thank you to the folks at HuDoRa for doing most of the hard work, porting was the easy part.\n\nLicense\n-------\nIf you worry about copyright you might consider this Software BSD-Licensed.\nIf you are still worried, you might consider it GPL1/2/3 compatible.\nBut don't worry. If you need something formal:\nThe code is available under the Apache License, Version 2.0.\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "PyStrich is a Python module to generate 1D and 2D barcodes (Code 39, Code 128, DataMatrix, QRCode and EAN13). Forked from huBarcode.",
"version": "0.9",
"project_urls": {
"Homepage": "https://github.com/mmulqueen/pyStrich",
"Repository": "https://github.com/mmulqueen/pyStrich"
},
"split_keywords": [
"barcode",
" qrcode",
" datamatrix",
" ean13",
" code39",
" code128"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e0ebc227adbf42b0891569c9e46686e6ba2d1de180bc16949488215b65875b5b",
"md5": "2fe42147450c8836075345ec0aaecb00",
"sha256": "a82d0dcdc1b02c1a6126f45b00fa25ec4e94e6c19f45d34d028aa244d48c8375"
},
"downloads": -1,
"filename": "pystrich-0.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2fe42147450c8836075345ec0aaecb00",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 1139217,
"upload_time": "2024-10-02T15:31:39",
"upload_time_iso_8601": "2024-10-02T15:31:39.654483Z",
"url": "https://files.pythonhosted.org/packages/e0/eb/c227adbf42b0891569c9e46686e6ba2d1de180bc16949488215b65875b5b/pystrich-0.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a9e594bb9bfd60d1570d4d7dfcb674ea0ee011eeca14412e5d111787d2aa47c4",
"md5": "f928e863542b3fbfcf1a1035b910a949",
"sha256": "b1f30ecbc35f14dd19b938b25154a22175bc011c49033b963654a70794155095"
},
"downloads": -1,
"filename": "pystrich-0.9.tar.gz",
"has_sig": false,
"md5_digest": "f928e863542b3fbfcf1a1035b910a949",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 1016955,
"upload_time": "2024-10-02T15:31:41",
"upload_time_iso_8601": "2024-10-02T15:31:41.536591Z",
"url": "https://files.pythonhosted.org/packages/a9/e5/94bb9bfd60d1570d4d7dfcb674ea0ee011eeca14412e5d111787d2aa47c4/pystrich-0.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-02 15:31:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mmulqueen",
"github_project": "pyStrich",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "pystrich"
}