Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions QR Code Generator/Requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### QR Code Generator
A simple program to generate QR codes. Install `qrcode` library before running the program.

```
pip install qrcode
```
Binary file added QR Code Generator/__pycache__/qrcode.cpython-310.pyc
Binary file not shown.
15 changes: 15 additions & 0 deletions QR Code Generator/qrcode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#import the library
import qrcode
#link to the website
input_data = "https://github.com/Buzzpy"
#Creating object
#version: defines size of image from integer(1 to 40), box_size = size of each box in pixels, border = thickness of the border.
qr = qrcode.QRCode(version=1,box_size=10,border=5)
#add_date : pass the input text
qr.add_data(input_data)
#converting into image
qr.make(fit=True)
#specify the foreground and background color for the img
img = qr.make_image(fill='black', back_color='white')
#store the image
img.save('qrcode_img.png')
Binary file added QR Code Generator/qrcode_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.