生成格式优美的条形码(UPC-A和EAN)
项目描述
beautiful_barcode
生成格式优美的、生产就绪的条形码。
默认情况下,现有的Python条形码库(如python-barcode)生成良好的条形码,但所有文本格式化都留给了用户。beautiful_barcode可以直接生成带有交错文本的格式优美的条形码
根据您的渲染器(默认为真),条形码中的文本不是 SVG <text>
元素,因为这样的元素可能会根据字体可用性在不同的机器上以不同的方式渲染。
这个库目前仅限于UPC-A/EAN和EPS/SVG——这就是我们(原始作者)需要的。欢迎补丁!
安装
$ pip install beautiful_barcode
用法
>>> from beautiful_barcode import GTIN
>>> GTIN('123456789012').write('output.svg')
命令行
$ python -m beautiful_barcode 123456789012 -o output.svg
快速入门
~$ git clone https://github.com/boxine/beautiful_barcode.git
~$ cd beautiful_barcode
~/beautiful_barcode$ make
help List all commands
install-poetry install or update poetry
install install via poetry
update Update the dependencies as according to the pyproject.toml file
lint Run code formatters and linter
fix-code-style Fix code formatting
tox-listenvs List all tox test environments
tox Run pytest via tox with all environments
tox-py36 Run pytest via tox with *python v3.6*
tox-py37 Run pytest via tox with *python v3.7*
tox-py38 Run pytest via tox with *python v3.8*
tox-py39 Run pytest via tox with *python v3.9*
pytest Run pytest
pytest-ci Run pytest with CI settings
publish Release new version to PyPi
makemessages Make and compile locales message files
许可证
项目详情
关闭
beautiful_barcode-1.1.3.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 014401e27e0953d30111a606520e03ea057ad3d943554172515ba844dc2411f7 |
|
MD5 | 02614d8ce2d557e2d9dacbeaab189656 |
|
BLAKE2b-256 | a4c4c372c4be9587544a00cd64044f354106ffdb75f3b63e52e019b2a40a99e8 |
关闭
beautiful_barcode-1.1.3-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | f00bee8a2aebb11d2e66f6c3d1eafa757145060175093d7ab865a5e9bc581f12 |
|
MD5 | e43af568456231ca434c54d3a501834e |
|
BLAKE2b-256 | 5a4bd0da0fb7c5f075162ee164d33aaec1a3d27234c07debebaba4a3fbfcec54 |