New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pyqrbtf

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyqrbtf

A project for generating a QR codes in SVG format

  • 0.0.3
  • PyPI
  • Socket score

Maintainers
1

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_circlecircles_circle_roundedsp1_rounded
circles_circlecircles_circle_roundedsp1_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

Contact

If you have any questions or feedback, please open an issue here.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc