Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import qrcode
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
data = "https://forms.gle/6nTWV44RU8ZkHPuN8"
|
| 5 |
+
|
| 6 |
+
# Create a QR code object
|
| 7 |
+
qr = qrcode.QRCode(
|
| 8 |
+
version=1,
|
| 9 |
+
error_correction=qrcode.constants.ERROR_CORRECT_H,
|
| 10 |
+
box_size=10,
|
| 11 |
+
border=4,
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
qr.add_data(data)
|
| 15 |
+
qr.make(fit=True)
|
| 16 |
+
|
| 17 |
+
# Use HTML HEX color codes for fill and background colors
|
| 18 |
+
img = qr.make_image()#fill_color="#f05a2a") (fill_color="black", back_color="white")
|
| 19 |
+
|
| 20 |
+
# Save the image
|
| 21 |
+
img.save("qrcode_corepod.png")
|