Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f32bf13

Browse files
Merge pull request avinashkranjan#365 from CharvyJain/master
QR Code Generator
2 parents fc4ff0a + 7ecd6a4 commit f32bf13

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

‎QR_Code_Generator/README.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# QR Code Generator
2+
This script will generate the QR Code of the given link.
3+
4+
## Setup Instructions
5+
In order to run this script, you just need two modules.
6+
- **pyqrcode**
7+
- **pypng**
8+
9+
## Output
10+
![QRCODE](qr.png)
11+
12+
## Author
13+
[Charvy Jain](https://github.com/CharvyJain)

‎QR_Code_Generator/main.py‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Installing required libraries
2+
pip install pyqrcode
3+
pip install pypng
4+
5+
# Importing the libraries
6+
import pyqrcode
7+
import png
8+
9+
# Link Which represents the QR Code.
10+
link = "www.google.com"
11+
12+
# Generating QR Code.
13+
url = pyqrcode.create(link)
14+
15+
# Creating and Saving the file as SVG.
16+
url.svg("my_qr.svg", scale=10)
17+
18+
# Creating and Saving the file as PNG.
19+
url.png("my_qr.png", scale=12)

‎QR_Code_Generator/qr.png‎

7.87 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /