NVK on Nostr: QR codes on terminal for passing things to phone… ie `qr foo` ``` #!/usr/bin/env ...
QR codes on terminal for passing things to phone…
ie `qr foo`
```
#!/usr/bin/env python3
import os, sys, pyqrcode
p = ' '.join(sys.argv[1:])
if not p:
print(f'{sys.argv[0]} data-for-qr')
sys.exit(1)
q = pyqrcode.create(p)
print(q.terminal())
```
https://gist.github.com/nvk/1b45aea3e63201c65c5aed14304dd366
ie `qr foo`
```
#!/usr/bin/env python3
import os, sys, pyqrcode
p = ' '.join(sys.argv[1:])
if not p:
print(f'{sys.argv[0]} data-for-qr')
sys.exit(1)
q = pyqrcode.create(p)
print(q.terminal())
```
https://gist.github.com/nvk/1b45aea3e63201c65c5aed14304dd366