All Projects → sylnsfar → Qrcode

sylnsfar / Qrcode

Licence: gpl-3.0
💮 amazing QRCode generator in Python (supporting animated gif) - Python amazing 二维码生成器(支持 gif 动态图片二维码)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Qrcode

Qr Ascii
A small library to generate QR codes with ascii
Stars: ✭ 63 (-99.27%)
Mutual labels:  qrcode, qr-code, qrcode-generator
React Qr Svg
React component for rendering SVG QR codes
Stars: ✭ 134 (-98.44%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Awesome Qr.js
An awesome QR code generator written in JavaScript.
Stars: ✭ 1,247 (-85.52%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Ngx Kjua
Angular QR-Code generator component using kjua.
Stars: ✭ 51 (-99.41%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Qrcode
QR-code encoder/decoder (no image recognition)
Stars: ✭ 34 (-99.61%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Php Qrcode
A QR Code generator for PHP7.4+
Stars: ✭ 685 (-92.05%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Awesomeqrcode
An awesome QR code generator for Android.
Stars: ✭ 1,718 (-80.05%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Qrbtf
An art QR code (qrcode) beautifier. 艺术二维码生成器。https://qrbtf.com
Stars: ✭ 1,391 (-83.85%)
Mutual labels:  qrcode, qr-code, qrcode-generator
QRCode-Generator-PHP-Class
🚀 QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart API
Stars: ✭ 91 (-98.94%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Offline Qr Code
📱 Browser add-on allowing you to quickly generate a QR code offline with the URL of the open tab or other text!
Stars: ✭ 193 (-97.76%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Barcode
barcode.php - Generate barcodes from a single PHP file. MIT license.
Stars: ✭ 141 (-98.36%)
Mutual labels:  qrcode, qr-code, qrcode-generator
nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (-99.67%)
Mutual labels:  qrcode, qr-code, qrcode-generator
QRCodeFX
Simple tool to generate/read QR Code and export it.
Stars: ✭ 31 (-99.64%)
Mutual labels:  qrcode, qr-code, qrcode-generator
QR Attendance
This project is an attendance system which provides attendance on scanning QR code. The attendance is stored in Excel sheet named with the date of attendance taken. In this folder a file named Generate.py is used to generate the QR code for given input file. Attend.py file is for scanning the QR code
Stars: ✭ 17 (-99.8%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Qr Code
Web Component for generating QR codes
Stars: ✭ 425 (-95.07%)
Mutual labels:  qrcode, qr-code
React Native Vision Camera
📸 The Camera library that sees the vision.
Stars: ✭ 443 (-94.86%)
Mutual labels:  qrcode, qr-code
Efqrcode
A better way to operate QR Code in Swift, support iOS, macOS, watchOS and tvOS.
Stars: ✭ 4,121 (-52.15%)
Mutual labels:  qrcode, qrcode-generator
Quick Media
media(audio/image/qrcode/markdown/html/svg) support web service (多媒体编辑服务, 酷炫二维码, 音频, 图片, svg, markdown, html渲染服务支持)
Stars: ✭ 612 (-92.89%)
Mutual labels:  gif, qrcode
Qrcode
A QRCode generator written in Swift.
Stars: ✭ 695 (-91.93%)
Mutual labels:  qrcode, qrcode-generator
Vue Qrcode
QR code component for Vue.js
Stars: ✭ 724 (-91.59%)
Mutual labels:  qrcode, qr-code

Amazing-QR

former name PyPI - Downloads PyPI - Python Version PyPI PyPI - Wheel PyPI - Downloads PyPI - License GitHub code size in bytes macos linux windows

sponsor

转到中文版

Overview

Python QR Code Generator

Generate common qr-code, artistic qr-code (black & white or colorized), animated qr-code (black & white or colorized).

Contents

Examples

Install

# via pip
pip install amzqr

Usage

Terminal Way

(TIPS: If you haven't install amzqr, you should python(3) amzqr.py instead of amzqr blow.)

# summary
amzqr Words
      [-v {1,2,3,...,40}]
      [-l {L,M,Q,H}]
      [-n output-filename]
      [-d output-directory]
      [-p picture_file]
      [-c]
      [-con contrast]
      [-bri brightness]

Common QR-Code

#1 Words
amzqr https://github.com
  • Just input a URL or a sentence, then get your QR-Code named 'qrcode.png' in the current directory.
#2 -v, -l
amzqr https://github.com -v 10 -l Q
  • The default size of QR-Code depends both on the numbers of words you input and the level, while the default level (Error Correction Level) is H (the highest).

  • Customize: If you want to control the size and the error-correction-level, use the -v and -l arguments.

    -v representing the length is from a minimum of 1 to a maximum of 40.

    -l representing the error correction level is one of L, M, Q and H, where L is the lowest level and H is the highest.

#3 -n, -d
amzqr https://github.com   -n github_qr.jpg   -d .../paths/
  • The default output-filename is 'qrcode.png', while the default output-directory is current directory.

  • Customize: You can name the output-file and decide the output-directory. Notice that if the name is as same as a existing file, the old one will be deleted.

    -n representing the output-filename could be in the format one of .jpg.png.bmp.gif .

    -d means directory.

Artistic QR-Code

#1 -p
amzqr https://github.com -p github.jpg
  • The -p is to combine the QR-Code with the following picture which is in the same directory as the program. The resulting picture is black and white by default.
#2 -c
amzqr https://github.com -p github.jpg -c
  • The -c is to make the resulting picture colorized.
#3 -con, -bri
amzqr https://github.com -p github.jpg [-c] -con 1.5 -bri 1.6
  • The -con flag changes the contrast of the picture - a low number corresponds to low contrast and a high number to high contrast. Default: 1.0.

  • The -bri flag changes the brightness and the parameter values work the same as those for -con. Default: 1.0.

Animated GIF QR-Code

The only difference from Artistic QR-Code mentioned above is that you should input an image file in the .gif format. The you can get your black-and-white or colorful qr-code. Remember that when you use -n to customize the output-filename, then the output-filename must end by .gif.

Import Way

from amzqr import amzqr

version, level, qr_name = amzqr.run(
    words,
    version=1,
    level='H',
    picture=None,
    colorized=False,
    contrast=1.0,
    brightness=1.0,
    save_name=None,
    save_dir=os.getcwd()
)

details about each parameter are as mentioned above

# help(amzqr)
Positional parameter
   words: str

Optional parameters
   version: int, from 1 to 40
   level: str, just one of ('L','M','Q','H')
   picutre: str, a filename of a image
   colorized: bool
   constrast: float
   brightness: float
   save_name: str, the output filename like 'example.png'
   save_dir: str, the output directory

Tips

  • Use a nearly square picture instead of a rectangle one.

  • If the size of the picture is large, you should also choose a rightly large -v instead of using the default one.

  • If part of the picture is transparent, the qr code will look like:

    You can change the transparent layer to white, and then it will look like:

Supported Characters

  • Numbers: 0~9

  • Letters: a~z, A~Z

  • Common punctuations:

    · , . : ; + - * / \ ~ ! @ # $ % ^ & ` ' = < > [ ] ( ) ? _ { } | and  (space)

Environment

  • Python 3

License

  • GPLv3

Buy me a coffee

GitHub Sponsors

Since the GitHub Sponsors is unavailable in China yet...

wechatpay

wechatpay

alipay

alipay

🎉🎉🎉 Thanks for your support. 🎉🎉🎉

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].