Closed Nazneenp closed 4 weeks ago
The changes include modifications to the generate_qr_code
function in app.py
, which now outputs a QR code as ASCII art while retaining the existing image generation functionality. The requirements.txt
file has been updated to include the pillow
dependency, ensuring that image generation remains supported alongside the new ASCII output option.
File | Change Summary |
---|---|
app.py | Modified generate_qr_code to use qr.print_ascii() for ASCII output while maintaining image generation. |
requirements.txt | Added pillow==10.3.0 dependency. |
Objective | Addressed | Explanation |
---|---|---|
Print QR code on terminal (#7) | ✅ |
In the terminal bright, a code we can see,
ASCII art dancing, as simple as can be.
No more images to show, just text on the screen,
A rabbit's delight, in this code so serene! 🐇✨
Summary
removed the pillow dependencies and replace the
img.show
withqr.print_ascii
in order to print the qr-code in the terminal.Related Issue
Resolves #7
Changes Made
Checklist
Summary by CodeRabbit
New Features
Chores
pillow
package (version10.3.0
) to support image generation.