Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
core generate_qr.py
557 B · 24 lines
Python
12345678910111213141516171819202122232425import qrcode
# Data to encodedata = "https://venmo.com/u/FabianneGstottenmayr"
# Create QR code instanceqr = qrcode.QRCode( version=1, error_correction=qrcode.constants.ERROR_CORRECT_H, box_size=10, border=4,)
# Add dataqr.add_data(data)qr.make(fit=True)
# Create an image from the QR Code instanceimg = qr.make_image(fill_color="black", back_color="white")
# Save itoutput_path = "/workspaces/aesthetic-computer/fundraiser checklist/venmo_qr.png"img.save(output_path)print(f"QR code generated successfully at {output_path}")