Skip to main content

Generate UPI payment QR codes easily

Project description

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

Parameter Type Required Description
name str ✅ Yes Name of the recipient
upi_id str ✅ Yes UPI ID of the recipient
amount float/int ✅ Yes Payment amount
transaction_no str ❌ No (Optional) A unique transaction reference

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spl-qr-1.0.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spl_qr-1.0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file spl-qr-1.0.2.tar.gz.

File metadata

  • Download URL: spl-qr-1.0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for spl-qr-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e782cc77d3d812e63440568dbc5dc85209c04affe14f1152541ebb02901b44bb
MD5 6f1c46f6c9fb0dfc4b5144d0f245afcc
BLAKE2b-256 826b4ad93ef6478737c1265493d3f96f294c7feb8316d3996f49073545fb411c

See more details on using hashes here.

File details

Details for the file spl_qr-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: spl_qr-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for spl_qr-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5cb814820ff7e37fa326c04117d590eb1afe6c923e3ff0a0f94c5b4ecf000f29
MD5 df546443a0eb1c39a61ceb163f78eac9
BLAKE2b-256 bc2fe079adb1c5fdebe53c09aca8dd7ed32fea76cb62e3082f1752782d23e7a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page