Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bensuperpc/qrcode
QRcode generator in python 3
https://github.com/bensuperpc/qrcode
python python3 qrcode qrcode-generator
Last synced: about 1 month ago
JSON representation
QRcode generator in python 3
- Host: GitHub
- URL: https://github.com/bensuperpc/qrcode
- Owner: bensuperpc
- License: mit
- Created: 2022-11-10T18:21:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T05:58:38.000Z (over 1 year ago)
- Last Synced: 2024-10-19T05:27:10.372Z (3 months ago)
- Topics: python, python3, qrcode, qrcode-generator
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# QRcode
## _Generate QRcode_
[![qrcode](https://github.com/bensuperpc/qrcode/actions/workflows/base.yml/badge.svg)](https://github.com/bensuperpc/qrcode/actions/workflows/base.yml)
![GitHub top language](https://img.shields.io/github/languages/top/bensuperpc/qrcode) ![GitHub](https://img.shields.io/github/license/bensuperpc/qrcode)
## Features
- Generate QRcode from text
- Image in center of QRcode
- Change error correction level## Usage
Usage of qrcode:
```sh
python3 qrcode_generator.py --data --image --error_correction --box_size --border ...
```Or with double quote (Recommended if you have space in your text)
```sh
python3 qrcode_generator.py --data "" --image "" --error_correction ""
```## Example
Generate QRcode from URL (eg: wikipedia.org)
```sh
python3 qrcode_generator.py --data https://www.wikipedia.org/
```Generate QRcode from text with image in center
```sh
python3 qrcode_generator.py --data "Hello World" --image image.png
```Generate QRcode from text with max error correction level
```sh
python3 qrcode_generator.py --data "Hello World" --error_correction H
```Generate QRcode from text with box size 10 and border 4
```sh
python3 qrcode_generator.py --data "Hello World" --box_size 10 --border 4
```Generate QRcode from text with blue color and white background
```sh
python3 qrcode_generator.py --data "Hello World" --color "blue" --background "white"
```## Error correction level
- L: 7% of codewords can be restored.
- M: 15% of codewords can be restored.
- Q: 25% of codewords can be restored.
- H: 30% of codewords can be restored.## Open source projects used
- [python-qrcode](https://github.com/lincolnloop/python-qrcode)
- [Pillow](https://github.com/python-pillow/Pillow)
- [python](https://www.python.org/)## Licensing
[MIT License](LICENSE)