Global Feed Post Login
Replying to Avatar DETERMINISTIC OPTIMISM 🌞

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

Avatar
Fat_₿ank$t€r 2y ago

Cool! 😑

Reply to this note

Please Login to reply.

Discussion

No replies yet.