Python qrcode extension developed with rust.
Project description
rqrcode.py
使用方法(usage)
安装(install)
pip install rqrcode
测试(test)
from rqrcode import rqrcode
if __name__ == '__main__':
# 生成二维码PNG图片保存(Generate QR code PNG picture and save)
rqrcode.qrcode_img("hello","C:\\Users\\user\\Desktop\\qrcode.png")
# 生成二维码SVG图片保存(Generate QR code SVG picture and save)
rqrcode.qrcode_svg("hello","C:\\Users\\user\\Desktop\\qrcode.svg")
# 生成二维码unicode(Generate QR code unicode)
rqrcode.qrcode_unicode("hello")
扩展(extend)
如果使用源码自定义扩展(If you use the source code to customize the extension)
- 1.下载源码(Download source code)
git clone https://github.com/korykim/rqrcode
- 2.安装(Install)
python -m venv C:\Users\user\myenv # 创建虚拟环境(Create virtual environment)
cd C:\Users\user\myenv\Scripts # 进入虚拟环境目录(Enter the virtual environment directory)
.\activate # 激活虚拟环境(Activate virtual environment)
pip install maturin # 安装maturin(Install maturin)
cd rqrcode # 进入源码目录(Enter the source code directory)
maturin develop # 会自动打包出一个 wheel 包,并且安装到当前的 venv 中(Automatically package a wheel package and install it to the current venv)
- 3.现在可以在python中正常使用了(Now you can use it normally in python)
- 4.发布whl包(Publish whl package)
maturin build --release --interpreter python
此时在./target/wheels目录下会生成whl包,可以上传到pypi或者使用pip install安装(At this time, a whl package will be generated in the ./target/wheels directory, which can be uploaded to pypi or installed using pip install).
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
rqrcode-0.0.1.tar.gz
(13.6 kB
view hashes)
Built Distributions
Close
Hashes for rqrcode-0.0.1-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d79a584297421e1fcea84a531af50ca7f642ab64b196a5a1513f072b0452449 |
|
MD5 | 40da7654553c923933c4d2525f3d25d5 |
|
BLAKE2b-256 | 3f37b55862337c9cf18af62d5aadf6e430853bef177eda2892a9608303fe8497 |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f38bf6670620bbb3eb6600641b42abcce5a7a746de1243eb21f3989a4443bae1 |
|
MD5 | cdde966fd6f51fb19bfe9ad2324abce0 |
|
BLAKE2b-256 | 6638cfb1b9cec65ecc4d2e7a955356c92b498a23d5dd5796a749f1fd729245c4 |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28a71cd619ceafeea0a7458a0e65be6ec99195e7920895e42a98ad5b22547822 |
|
MD5 | 7a617e3ca3ad18e1be26a82753ef532e |
|
BLAKE2b-256 | d1dc3864ca97b7384bb6569ad6c825443054268fac41d0ff2401edc494b2fb1b |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-musllinux_1_2_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c63c5f03db451bde67d0cb9335cfe6a4960d300c1d0891f70035a41a7462d1b |
|
MD5 | 97bfd2468244660444469564d1949975 |
|
BLAKE2b-256 | 3d0825309c19403588be8ff6ed3da7764c971e709bcc86ee518c94ae7dc6cd13 |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ab02238187b489b0c331172a0d6ff7eae8999d86ae2209e7082d892dff4c8cc |
|
MD5 | 104b4c6e6b73ab25d936f63195eb71a6 |
|
BLAKE2b-256 | 8966fd7373adacaf625c6a14ac3a86d1cf18325c7d591f7f1b62ee64165596da |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d57e71360cefc6246bd1b8e4192f8c309a60573e1b07fc86067c77f3706f5b1 |
|
MD5 | 40f3c87e59c866f3a14b06cec611a099 |
|
BLAKE2b-256 | 6415eb3bdc32f352315a8e0b997155c8b0aa82f281ef9ef6775f709f3eaddaf1 |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d904e2443a312e0a0d381ef35a717ca8f0d33fa09e897635547284ae5bf5d813 |
|
MD5 | b3382e587f0c03c61b7398431efffc3f |
|
BLAKE2b-256 | d6d6fddefcc1eebde05783e823afc6e8ba620ce180960a758f6a123de4948469 |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f05fc08ab8a1664b46074786a3d1291ca2fa542d8e794c3739ab15bdfafb41f |
|
MD5 | 02e05d96fcb286e59e409c376266ef0e |
|
BLAKE2b-256 | 3ee754bc4a7a8171e5ceadf5a08dad3ffcfa5ba430e0ec34583eda9990ec788e |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 500fa2e673e70f95c8f5045b65e114615b0e4edba3c8392ee0cefe36044e5b78 |
|
MD5 | f23e5f51459dde86f6bc90506a15fc2f |
|
BLAKE2b-256 | 4fdc27e8933299b18a202b9203326d5fb6e6bccb2c2bfeefdc311e137ac4b849 |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e78d7ed9bb2245224fb3eefa4283a7dc389232da6b7e2976abff267154577544 |
|
MD5 | 061b52833ef26765f43ba6b0fad0f0ec |
|
BLAKE2b-256 | fa5161ae5d2aaa9cd90507b6329421a22ae674c7a2ef26b3f3061b5c2d27dc23 |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24716cdfe6631b5539376ab10a67b3da294b9356daebdf32cab445601cfb04b0 |
|
MD5 | 97a257af578c512e69fe6673000ff979 |
|
BLAKE2b-256 | ce1aab95666458afa81af85e97733132a10c6e426cf0dad4d8d433c8851397ed |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46501964f17f4e09558098e477da29f37c02607ecb5d9c931d9969a59b3ba77b |
|
MD5 | dbb863e7bf557bd29c681c9990eb6f1d |
|
BLAKE2b-256 | fe4eef8e8f60ea1e9dd5be279595f74c9551f6859472f6fef91c94deae57b1a7 |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb15132d6518409415d9bca6e5c989de4f3c18a96b52395af347db6a44053163 |
|
MD5 | 6627db59947c1943262f95e646b0af46 |
|
BLAKE2b-256 | 156b6cbe82d4cb74aa8d28c0355970b42d336bd35068c65023ac9050b0c65959 |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66c4f5fca97ea2323d355004a3ff372c2aac274480fb8e72f75177293411775f |
|
MD5 | 2cfa8409a31945139fea4d1e4dea3be6 |
|
BLAKE2b-256 | 061f94b8f46004820064f5854667dc67a6ceaf41023c0deab9d031ec857fe478 |
Close
Hashes for rqrcode-0.0.1-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6e94900f3b38654e15938ad20a5ff66f23b2250bf7fdeb1b7fb60c387d567d2 |
|
MD5 | 10c059020a63dbae271267a3927f1020 |
|
BLAKE2b-256 | dab3363761f26b2d9bf94d84f1795a4aa224d1084fe6635792c0d63a69342e4c |