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.
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| pyqrbtf-0.0.3.tar.gz | 10.0 kB | Without provenance | Details for pyqrbtf-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyqrbtf-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for pyqrbtf-0.0.3-py3-none-any.whl |
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
|
Security for pyqrbtf 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.