pylhb4qrcode
pylhb4qrcode 是我在工作过程中陆续整理的一个 Python qrcode 工具包,里面就放在一个关于qrcode操作的类及相关函数。与其说是一个正式的开源项目,不如说是我自己的“代码杂物间”——只不过把它打包了一下,方便在不同项目之间复用。
由于是个人使用为主,很多设计可能带着比较强的个人习惯,也未必是最优解。
如果您发现了问题或有更好的建议,非常欢迎指正。
申明:操作前请作好备份,本人对所有操作结果拥有所有解释权。
安装
pip install pylhb4qrcode
命令
- 创建二维码
pylhb4qrcode --str 596928288
pylhb4qrcode --str 596928288 --desc 扫我加QQ --logo my.png --circular --file MyQQ.png
🌺myqrcode模块
二维码生成,并可以在二维码下方添加描述文字。
使用示例:
from pylhb4qrcode.myqrcode import MyQRCode
if __name__ == "__main__":
qr=MyQRCode()
qrImg = qr.get(qrStr="596928288",qrDesc="扫我加QQ")
qrImg.save("QR.png")
🌺License
本项目基于 MIT 许可证开源。MIT 是一种宽松的开源许可证,允许任何人免费使用、修改、分发本软件,包括用于商业用途。详见 LICENSE 文件。
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pylhb4qrcode-1.2.0.tar.gz
(5.3 kB
view details)
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 pylhb4qrcode-1.2.0.tar.gz.
File metadata
- Download URL: pylhb4qrcode-1.2.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff4b6f3db3b0a3c2ee71f482aa416754a1597888a7b5ba00737cc72170a26344
|
|
| MD5 |
7d3915948d3f4a15e838c0a05c3c6066
|
|
| BLAKE2b-256 |
dd23ddd2dcc644edc37ac3ef3c9f9f716353a7705ba90b3b85b6fb1312f7277e
|
File details
Details for the file pylhb4qrcode-1.2.0-py3-none-any.whl.
File metadata
- Download URL: pylhb4qrcode-1.2.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1508dae2423a74999dc3e8d7f3aa2090ed8c604a0cc9da6ed3deedbb0f698038
|
|
| MD5 |
4bde0d082f3bdbca9ac30f0ec7f0bca8
|
|
| BLAKE2b-256 |
41bae0c5c37dda450fa1dc9035fb7d003704b7b8c8adfabdaa5578d36b617792
|