tools.qr_generator module
QR Code Generator Tools.
Generates QR codes for URLs, text, contacts (vCard), WiFi credentials, email, and batch generation. Supports PNG, SVG, and ASCII output.
- class tools.qr_generator.QRCodeGenerator[source]
Bases:
objectQRCodeGenerator.
- generate_qr_code(data, size=10, border=4, error_correction='M', fill_color='black', back_color='white', format_type='PNG')[source]
Generate qr code.
- Parameters:
data – Input data payload.
size – The size value.
border – The border value.
error_correction – The error correction value.
fill_color – The fill color value.
back_color – The back color value.
format_type – The format type value.
- create_vcard_qr(contact_info)[source]
Create a new vcard qr.
- Parameters:
contact_info – The contact info value.