🚀 Socket Launch Week 🚀 Day 2: Introducing Repository Labels and Security Policies.Learn More
Socket
Sign inDemoInstall
Socket

spl-qr

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spl-qr

Generate UPI payment QR codes easily

1.0.2
PyPI
Maintainers
1

spl-qr

spl-qr is a simple Python library for generating UPI payment QR codes. It helps businesses and individuals create scannable QR codes for easy digital payments.

Features

✅ Generate UPI QR codes with a name and UPI ID
✅ Optionally include a transaction amount
✅ Support for transaction numbers (optional)
✅ Easy-to-use and lightweight

Installation

Install spl-qr via pip:

pip install spl-qr

Usage

Basic QR Code Generation

from spl_qr import SPLQR  

qr = SPLQR(name="Your Name", upi_id="yourupi@upi")  
qr.generate(amount=100)

📌 This will generate a QR code for ₹100 linked to "yourupi@upi" and save it as an image file.

With an Optional Transaction Number

from spl_qr import SPLQR  

qr = SPLQR(name="Your Name", upi_id="yourupi@upi")  
qr.generate(amount=100, transaction_no="TXN123456789")

📌 Here, "TXN123456789" is an optional transaction reference.

Optional Parameters

ParameterTypeRequiredDescription
namestr✅ YesName of the recipient
upi_idstr✅ YesUPI ID of the recipient
amountfloat/int✅ YesPayment amount
transaction_nostr❌ No(Optional) A unique transaction reference

License

This project is licensed under the MIT License.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts