DhanushNehru / Python-Scripts

A curated list of python scripts for automating your tasks
https://dhanushnehru.github.io/Python-Scripts/
MIT License
551 stars 259 forks source link

update: Refactor QR code generation for flexibility and reuse #373

Closed Engcompaulo closed 3 weeks ago

Engcompaulo commented 3 weeks ago

Function with Parameters: Created a generate_qrcode function that takes parameters for content, colors, and file path, allowing for reuse and flexibility. Comments: Added comments to make the code clearer and easier to understand. Customizable Parameters: Added options for fill and background colors, as well as the file name. Box Size and Border: Set box_size and border to customize the QR code size.

Refactor QR code generation for flexibility and reuse

Summary

Function with Parameters: Created a generate_qrcode function that takes parameters for content, colors, and file path, allowing for reuse and flexibility. Comments: Added comments to make the code clearer and easier to understand. Customizable Parameters: Added options for fill and background colors, as well as the file name. Box Size and Border: Set box_size and border to customize the QR code size.

Description

The changes are as follows:

Add function to generate customizable QR codes

Checks

in the repository

in the PR

Thank You,

[Engcompaulo]