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.

This includes the table inside a separate code block to show its Markdown format. If you want the table to render correctly in Markdown instead of displaying as code, remove the enclosing triple backticks around the table.

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.1.tar.gz (2.5 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.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spl-qr-1.0.1.tar.gz
  • Upload date:
  • Size: 2.5 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.1.tar.gz
Algorithm Hash digest
SHA256 e4de397d40eb636f13a604ab3032a2155dff97b8518216b579809fb4ebd238b8
MD5 aad0040e8ff2002185662dfdbbb853ba
BLAKE2b-256 cd4dd7e8a061f3e1e17ba8e6a5b5f3e8c748319adde5bef8399fab92a6f929ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spl_qr-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4738c96efd38617acc9e474e7457dea8ebf76645598af3c625237ab756c93df1
MD5 a23557863ab4ccb9f1ebe4515a42ffc8
BLAKE2b-256 d1f24cbdff9f4c0b7ea6855b084a3745f3a48656bd8c9a7b52c939a6b9fa188e

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