QR code generator for terminal output
Project description
qrcode_term
QR code generator for terminal output
Screenshot
From a terminal:
CLI
> python src/qrcode_term/qrcode_term.py
███████████████████████████
███▀▀▀▀▀▀▀████▀▀█▀▀▀▀▀▀▀███
███ █▀▀▀█ ██▄▀█ █ █▀▀▀█ ███
███ █ █ ███ ▀▀█ █ █ ███
███ ▀▀▀▀▀ █ █▀█▀█ ▀▀▀▀▀ ███
███▀██▀█▀▀█▀█ ▀▀▀█▀████████
███▄▄ ▄▀▄▀▀▀▄▄ ██▄ ▄▀▀▄ ███
████▄██▀▄▀ ▀▀▄▀▄▀ ▄█▄▄███
███▀▀▀▀▀▀▀█▄█▀ ▀█▀▀▀▀ ▀████
███ █▀▀▀█ █▄ ▄█▀▀█▄███▄████
███ █ █ █▄ ▀█ █▀▄ ▄ ▄ ███
███ ▀▀▀▀▀ █▀█ ▄▀▄▀▀█▀█▀████
███████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Hello world!
> python src/qrcode_term/qrcode_term.py --data "mydata" -f5
███████████████████████████████
███████████████████████████████
█████▀▀▀▀▀▀▀██▀████▀▀▀▀▀▀▀█████
█████ █▀▀▀█ █▄ █ █ █▀▀▀█ █████
█████ █ █ █▀▀▄▀▀█ █ █ █████
█████ ▀▀▀▀▀ █▀▄▀▄▀█ ▀▀▀▀▀ █████
█████▀█▀█▀█▀██▀██▀███▀██▀██████
██████ ▀▀ ▀█ █ █ ▀ █ ▀ █████
█████ ▄█▄▀▄▀ ▀█▄ ▄ ▀ ▄██▀██████
█████▀▀▀▀▀▀▀█▄▄ █▀█▄▄▀█▀ █████
█████ █▀▀▀█ █▀█ █▀█ █▀██ █████
█████ █ █ █▀█▄ █ ▀ ▀▄▀█████
█████ ▀▀▀▀▀ █▀ ▀ ▄ ▀ ▀▀█ ▀█████
███████████████████████████████
███████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
mydata
> python src/qrcode_term/qrcode_term.py --data "mydata 2" -f3 -i
▄▄▄▄▄▄▄ ▄ ▄▄ ▄▄▄▄▄▄▄
█ ▄▄▄ █ ██▀█▀ █ ▄▄▄ █
█ ███ █ ▄▀▀▀▄ █ ███ █
█▄▄▄▄▄█ ▄ ▄▀█ █▄▄▄▄▄█
▄ ▄▄▄▄▄▄██▀█▄ ▄ ▄▄▄
▀▄▄█▀▄ ▄▀█ ▀ ▀█ ▄█▄
▀▄▄ ▀▀▄▄▄▀ ▀ ▄▄▄█▄▀▀
▄▄▄▄▄▄▄ █ ▀█▄▄▄█▀█▀
█ ▄▄▄ █ ██▀██▀▄█▀█▀ ▀
█ ███ █ ▀ █▀▀ ▄ ▄▀█▄▄
█▄▄▄▄▄█ ▄▀▄▄ ▀▀ ▄█▀▀▀
mydata 2
> python src/qrcode_term/qrcode_term.py --data "mydata 3" -f10 -n
█████████████████████████████████████████
█████████████████████████████████████████
█████████████████████████████████████████
█████████████████████████████████████████
█████████████████████████████████████████
██████████ ▄▄▄▄▄ ██▄ ▀ █ ▄▄▄▄▄ ██████████
██████████ █ █ █ ▄ █▀█ █ █ ██████████
██████████ █▄▄▄█ █ ▄▄ █ █▄▄▄█ ██████████
██████████▄▄▄▄▄▄▄█ ▀▄▀ █▄▄▄▄▄▄▄██████████
██████████▄█▄▄▄▄▄█▀▄ █ █▄▄ ▄▄▀▀██████████
██████████▄ ▀ ▀▄▀█ ▄▄█▄▄ █ ███████████
██████████████▄▄▄█ █ ▀▀▀ ▀▀▀▄ ██████████
██████████ ▄▄▄▄▄ █▀▄▄▀ ▀ ▄█▀ ▄███████████
██████████ █ █ █ ▀██ ██ ▀█▀█▄██████████
██████████ █▄▄▄█ █▄▄▄▄█▄█▀█ ████████████
██████████▄▄▄▄▄▄▄█▄██▄█▄███▄█▄███████████
█████████████████████████████████████████
█████████████████████████████████████████
█████████████████████████████████████████
█████████████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
mydata 3
API
Examples:
from qrcode_term import qrcode_string
a = qrcode_string("Is there anybody out there?")
b = qrcode_string("It's just another brick in the wall", frame_width=1)
c = qrcode_string("Vera! Vera!", version=5, inverse=True, frame_width=5, ansi_white=False)
print(a)
print(b)
print(c)
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
qrcode_term-0.0.1.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for qrcode_term-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8148b678d20ee4a15eb971310acbcce9f378f224b975ca4046d14132e17cf38 |
|
MD5 | c25f612dc5878039b75836134611b1b9 |
|
BLAKE2b-256 | 9d1ad3bc3c5a10a7c868f314c6048b44c31a40f2482d1f58ce9698b130538f4f |