PYTHON PROJECT / 01

QR code
generator.

A compact Python utility that turns a link or text into a shareable QR image. Built with the qrcode library and designed as a clear first automation project.

Generated QR code
LANGUAGEPython
LIBRARYqrcode
OUTPUTPNG image

THE WORKFLOW

From text to scan.

01

Install the package with pip install qrcode.

02

Set the data you want people to scan, such as a website URL.

03

Create and save a custom QR image ready to share.

SOURCE SNAPSHOT

Core code.

import qrcode

data = "https://arsani-tech.netlify.app/"
qr = qrcode.QRCode(version=1, box_size=10, border=5)
qr.add_data(data)
qr.make(fit=True)

image = qr.make_image(fill_color="red", back_color="white")
image.save("MyQRCode2.png")