QRCode Terminal

raw JSON →
0.8 verified Sat May 09 auth: no python

A lightweight Python library for generating QR codes and displaying them in the terminal. Written as a pure Python terminal QR code library, it includes no external dependencies. Current version is 0.8, with no recent releases or active development.

pip install qrcode-terminal
error ModuleNotFoundError: No module named 'qrcode_terminal'
cause Common misspelling of the import name; the correct module name is 'qrcode_terminal' (with underscore).
fix
Use: from qrcode_terminal import qr_terminal_str
error AttributeError: module 'qrcode_terminal' has no attribute 'qr_terminal_str'
cause The method was renamed in version 0.7. Older versions used a misspelled name.
fix
Upgrade to 0.8 and use qr_terminal_str.
gotcha The method name `qr_terminal_str` was misspelled as `qr_terminal_str` in earlier versions (0.5). If you're using version 0.8, the correct name is `qr_terminal_str`.
fix Upgrade to 0.8 and use `qr_terminal_str`.

Generate a QR code string and print it to the terminal.

from qrcode_terminal import qr_terminal_str
print(qr_terminal_str('https://example.com'))