From a31bfe00e6e18a52c65ec9b71ebeec2d07c552a4 Mon Sep 17 00:00:00 2001 From: Ripunjay Singh Date: Sun, 30 Oct 2022 15:09:22 +0530 Subject: [PATCH] added python version of the project --- Python_version/app.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Python_version/app.py diff --git a/Python_version/app.py b/Python_version/app.py new file mode 100644 index 0000000..b1d11ea --- /dev/null +++ b/Python_version/app.py @@ -0,0 +1,16 @@ +import pyqrcode +import png +from pyqrcode import QRCode + + +# String which represents the QR code +s = input("Enter the string to be encoded: ") + +# Generate QR code +url = pyqrcode.create(s) + +# Create and save the svg file naming "myqr.svg" +url.svg("myqr.svg", scale = 8) + +# Create and save the png file naming "myqr.png" +url.png('myqr.png', scale = 6) \ No newline at end of file