Skip to main content

QR-code Generator

Project description

THis package to generate QR-code with FoxHustle-style.

For using you hate to install this package with command “pip install FoxHustlqQR” (fow Windows) “pip3 install FoxHustleQR” (fow Linux, Mac)

Requirements: 1) Python version >= 3.6 2) Packages: 2.1) Pillow==7.1.2 2.2) PyQRCode==1.2.1 2.3) requests==2.23.0

For 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')

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 FoxHustleQR
>>> QRGenerator = FoxHustleQR.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 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')

You can modify image:

>>> 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'>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FoxHustleQR-0.5.1.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file FoxHustleQR-0.5.1.tar.gz.

File metadata

  • Download URL: FoxHustleQR-0.5.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for FoxHustleQR-0.5.1.tar.gz
Algorithm Hash digest
SHA256 9d53a0df201d4edbb4a036bf2f66fee78823dde7128ffcb89e61be47daeb1602
MD5 4783dad886472042dca5dbbb4314245d
BLAKE2b-256 3de817c2b723d744283f66b89fae6ccfb96c7f253bc576d140dbff93022264e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page