qrpy is a simple command-line program capable of encoding and decoding basic QR codes.
pip install qrpy
Note: You may need to additionally install zbar, as outlined in the installation steps for pyzbar.
❯ qrpy encode --input "Hello world" --output "hello.png"
❯ qrpy decode --input "hello.png"
Hello world
Omitting --output
when encoding will print the QR code to the console.