Created
October 22, 2025 20:15
-
-
Save tadeubdev/2fe9e94909d674363f8148f8ace86301 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import qrcode | |
| ssid = "Minha Rede Wifi" | |
| password = "123456" | |
| security = "WPA" | |
| wifi_data = f"WIFI:S:{ssid};T:{security};P:{password};;" | |
| qr = qrcode.QRCode( | |
| version=1, | |
| error_correction=qrcode.constants.ERROR_CORRECT_L, | |
| box_size=10, | |
| border=4, | |
| ) | |
| qr.add_data(wifi_data) | |
| qr.make(fit=True) | |
| img = qr.make_image(fill_color="black", back_color="white") | |
| img.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment