QR-code Generator
Project description
THis package to generate QR-code with FoxHustle-style.
For using you hate to install this package with command “pip3 install FoxHustle_QR”
Requirements: 1) Python version >= 3.6 2) Packages: 2.1) Pillow==8.2.0 2.2) PyQRCode==1.2.1 2.3) requests==2.23.0
For uning: >>> import FoxHustle_QR >>> QRGenerator = FoxHustle_QR.QRGenerator() # activate module >>> foxhustle_link = QRGenerator(”https://foxhustle.ru”, qr=”colored light”) # create QR-code with parameters >>> foxhustle_link.save(‘foxhustle_link.png’)
This actions make to create new file with QR-code with name “foxhustle_link.png”
Types of qr (qr style parameter): 1) colored light (default) 2) colored dark 3) mono dark 4) mono white
You can also specify the “version” parameter to indicate the required version of the QP-code (5 <= version <= 40)
>>> import FoxHustle_QR
>>> QRGenerator = FoxHustle_QR.QRGenerator() # activate module
>>> foxhustle_link = QRGenerator("https://foxhustle.ru", qr="colored light", version=6) # create QR-code with parameters
>>> foxhustle_link.save('foxhustle_link.png')
You can also specify the “encoding” parameter to indicate the required version of the QP-code (5 <= version <= 40)
>>> import FoxHustle_QR
>>> QRGenerator = FoxHustle_QR.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')
You can modify image:
>>> import FoxHustle_QR
>>> QRGenerator = FoxHustle_QR.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'>
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
File details
Details for the file FoxHustle_QR-1.23.1.tar.gz.
File metadata
- Download URL: FoxHustle_QR-1.23.1.tar.gz
- Upload date:
- Size: 99.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
170887fc37c68967e7316a273560284045cfbd0f4fa2b4400b74065c172e7d71
|
|
| MD5 |
e841ef90e6a8563f9625e4e69da91ff3
|
|
| BLAKE2b-256 |
2236a77007f1f0fe3a891646882d1d9135391fb00ade7c32c43871fd1a28dd64
|