Registry / serialization / qrcode-terminal

qrcode-terminal

JSON →
library0.8pypypi✓ verified 86d ago

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
INSTALL
IMPORT
SIG · QRCODE-TERMINAL
Q
qrcode-terminal
serializationpythonv0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

qr_terminal_str
from qrcode_terminal import qr_terminal_str
draw_qrcode
from qrcode_terminal import draw_qrcode

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'))
qrcode-terminal --version
Debug
Known issues
gotchaThe 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`.
affects: <0.7
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'qrcode_terminal'
Common misspelling of the import name; the correct module name is 'qrcode_terminal' (with underscore).
fix
Use: from qrcode_terminal import qr_terminal_str
AttributeError: module 'qrcode_terminal' has no attribute 'qr_terminal_str'
The method was renamed in version 0.7. Older versions used a misspelled name.
fix
Upgrade to 0.8 and use `qr_terminal_str`.
Upgrade
Version history
0.8latest on PyPI · released Dec 5, 2017
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
qrcode-terminal — pip install qrcode-terminal · libregistry