🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

spl-qr

Package Overview
Dependencies
Maintainers
1
Versions
3
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

pipPyPI
Version
1.0.2
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