Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.py31 linesDownload Raw Back to qrcode
1from qrcode.main import QRCode2from qrcode.main import make  # noqa3from qrcode.constants import (  # noqa4    ERROR_CORRECT_L,5    ERROR_CORRECT_M,6    ERROR_CORRECT_Q,7    ERROR_CORRECT_H,8)9 10from qrcode import image  # noqa11 12 13def run_example(data="http://www.lincolnloop.com", *args, **kwargs):14    """15    Build an example QR Code and display it.16 17    There's an even easier way than the code here though: just use the ``make``18    shortcut.19    """20    qr = QRCode(*args, **kwargs)21    qr.add_data(data)22 23    im = qr.make_image()24    im.show()25 26 27if __name__ == "__main__":  # pragma: no cover28    import sys29 30    run_example(*sys.argv[1:])31 
codekingpro/portable-devtools · Team Ai