An open API service indexing awesome lists of open source software.

https://github.com/alishtory/qrcode-terminal

在控制台打印二维码 Draw QRCodes in your terminal by Python
https://github.com/alishtory/qrcode-terminal

py-qrcode python qrcode-terminal

Last synced: 6 months ago
JSON representation

在控制台打印二维码 Draw QRCodes in your terminal by Python

Awesome Lists containing this project

README

          

# Python QRCode Terminal
You can draw QR codes in your terminal by Python:
![Py QrCode][cmdqrcode-example-img]

## Install Dependencies
You need install these:
```shell
yum install -y python-devel zlib-devel libjpeg-turbo-devel
pip install pillow qrcode
```

## Install
Can be installed with pip:
``` shell
pip install qrcode-terminal
```

## Useage

### As Library
```python
import qrcode_terminal
qrcode_terminal.draw('http://www.baidu.com')
```
![Py QrCode][pyqrcode-example-img]

### In Terminal
``` shell
qrcode-terminal-py -d http://www.baidu.com
echo "http://www.baidu.com" | qrcode-terminal-py
```
![Py QrCode][cmdqrcode-example-img]

[pyqrcode-example-img]:https://raw.githubusercontent.com/alishtory/qrcode-terminal/master/example/pyqrcode.jpg
[cmdqrcode-example-img]:https://raw.githubusercontent.com/alishtory/qrcode-terminal/master/example/cmdqrcode.jpg

## License
Released under the [MIT License](https://raw.githubusercontent.com/dawndiy/qrcode-terminal/master/LICENSE).