Skip to content

Instantly share code, notes, and snippets.

@tadeubdev
Created October 22, 2025 20:15
Show Gist options
  • Select an option

  • Save tadeubdev/2fe9e94909d674363f8148f8ace86301 to your computer and use it in GitHub Desktop.

Select an option

Save tadeubdev/2fe9e94909d674363f8148f8ace86301 to your computer and use it in GitHub Desktop.
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