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.
Release files for pyqrbtf 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyqrbtf-0.0.3.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyqrbtf-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.1 kB
Release files / pyqrbtf-0.0.3.tar.gz
| Download URL | pyqrbtf-0.0.3.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7ca770c817b68ba97685c79f4ef618d33aab0a102e44a6fce69905c55dfe955
|
|
BLAKE2b-256 checksum How to use checksums |
33b61880fc7125c54e2df60247e59afe220cbcfb4fb8bfa41a9978b8fa4a2890
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / pyqrbtf-0.0.3-py3-none-any.whl
| Download URL | pyqrbtf-0.0.3-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f878805e632c3cb3240636c0f2362499901ad2c6353b9dd35bd7b282083e4c4
|
|
BLAKE2b-256 checksum How to use checksums |
88febef512b82162fe7ff3d792d702d6eda16cbf55b05f0e7074d0c3943c8a94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|