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: object

QRCodeGenerator.

__init__()[source]

Initialize the instance.

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.

create_wifi_qr(wifi_info)[source]

Create a new wifi qr.

Parameters:

wifi_info – The wifi info value.

create_email_qr(email_info)[source]

Create a new email qr.

Parameters:

email_info – The email info value.