Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /MarkinHaus_ToolBoxV2 /toolboxv2 /utils /extras /qr.py
| import sys | |
| def print_qrcode_to_console(content): | |
| try: | |
| qrcode = __import__('qrcode') | |
| qr = qrcode.main.QRCode( | |
| version=1, | |
| error_correction=qrcode.constants.ERROR_CORRECT_Q, | |
| box_size=1, | |
| border=2, | |
| ) | |
| qr.add_data(content) | |
| qr.make(fit=True) | |
| print("QR: ", content) | |
| if 'unittest' not in sys.argv[0]: | |
| qr.print_ascii(invert=True) | |
| return qr | |
| except ImportError: | |
| print("QRCode is not available run pip install qrcode") | |
| return None | |
Xet Storage Details
- Size:
- 569 Bytes
- Xet hash:
- c04cde810cba0b0e1730a876cf70f7a03746e9430f3375fc6d319be8b631aedd
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.