A project for generating a QR codes in SVG format
Project description
PyQrbtf
pyqrbtf is a Python library for generating beautiful and customizable QR codes in SVG format. It is a Python port of the original qrbtf JavaScript library.
Features
- Generate aesthetically pleasing QR codes
- Multiple style options for QR code rendering
- SVG output for high-quality, scalable QR codes
- Customizable colors, shapes, and patterns
- Easy-to-use Python API
Installation
You can install pyqrbtf using pip:
pip install pyqrbtf
Usage
Here's a quick example of how to use pyqrbtf:
from qrcode import QRCode
from pyqrbtf import PositioningPointType, SP1Drawer
qr = QRCode(
version=1,
error_correction=1,
box_size=10,
border=0,
)
qr.add_data("test")
qr.make()
a = SP1Drawer(positioning_point_type=PositioningPointType.circle)
text = a.to_bytes(qr.get_matrix(), {})
with open("example.svg", "wb") as f:
f.write(text)
Documentation
Will be created after 100 stars in this repo
Examples
You can find example outputs in the examples/
directory:
circles_circle | circles_circle_rounded | sp1_rounded |
---|---|---|
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
- Original qrbtf JavaScript library by latentcat
- Python QR Code library
Contact
If you have any questions or feedback, please open an issue here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyqrbtf-0.0.3.tar.gz
.
File metadata
- Download URL: pyqrbtf-0.0.3.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7ca770c817b68ba97685c79f4ef618d33aab0a102e44a6fce69905c55dfe955 |
|
MD5 | e7b35decc5a3efdbd0412b0a68c2cf56 |
|
BLAKE2b-256 | 33b61880fc7125c54e2df60247e59afe220cbcfb4fb8bfa41a9978b8fa4a2890 |
File details
Details for the file pyqrbtf-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pyqrbtf-0.0.3-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f878805e632c3cb3240636c0f2362499901ad2c6353b9dd35bd7b282083e4c4 |
|
MD5 | 74ebb2f853c9166fb894bd45e9ef1206 |
|
BLAKE2b-256 | 88febef512b82162fe7ff3d792d702d6eda16cbf55b05f0e7074d0c3943c8a94 |