QR码发生器
FoxHustleQR的Python项目详细描述
本软件包生成具有FoxHustle风格的二维码。在
因为你讨厌用命令安装这个包 “pip安装FoxHustleQR”(fow Windows) “pip3安装FoxHustleQR”(fow Linux,Mac)
要求: 1) Python版本>;=3.6 2) 包装: 2.1)枕头==7.1.2 2.2)PyQRCode==1.2.1 2.3)请求==2.23.0
对于uning:
>>> import FoxHustleQR >>> QRGenerator = FoxHustleQR.QRGenerator() # activate module >>> foxhustle_link = QRGenerator("https://foxhustle.ru", qr="colored light") # create QR-code with parameters >>> foxhustle_link.save('foxhustle_link.png')
此操作将使用名为“foxhustle”的二维码创建新文件_链接.png““
qr类型(qr样式参数): 1) 彩色灯光(默认) 2) 深色 3) 单色深色 4) 单色白色
您还可以指定“version”参数来指示所需的QP代码版本(5<;=version<;=40)
^{pr2}$您还可以指定“encoding”参数来指示所需的QP代码版本(5<;=version<;=40)
>>> import FoxHustleQR >>> QRGenerator = FoxHustleQR.QRGenerator() # activate module >>> foxhustle_link = QRGenerator("https://foxhustle.ru", qr="colored light", encoding="unicode") # create QR-code with parameters >>> foxhustle_link.save('foxhustle_link.png')
您可以修改图像:
>>> import FoxHustleQR >>> QRGenerator = FoxHustleQR.QRGenerator() # activate module >>> foxhustle_link = QRGenerator("https://foxhustle.ru", qr="colored light", encoding="unicode") # create QR-code with parameters >>> type(foxhustle_link.img) <class 'PIL.Image.Image'>
- 项目
标签: