Welcome to the digital wizardry workshop, where boring URLs are transformed into mysterious QR glyphs.
Just type in your link, press the button, and voilΓ β your very own QR code is born!
This is QR Code Generator, powered by Python, Flask, and a pinch of magic. β¨
- Launch the app:
python main.py
- Open your browser at localhost:5000.
- Paste any URL into the form.
- Behold your QR code! Download it, share it, or show it off to your grandma. πΌοΈ
- Because typing endless URLs is boring, but showing off a QR code is classy! π
- Works faster than your morning coffee. β
- Friendly UI β so simple, even your cat could use it. πΎ
- Powered by Flask β no complicated stuff, just pure Python bliss.
- QR code magic by the
qrcodelibrary. - Output is beamed directly to your browser as an image, ready to scan.
Application quality is checked with automated tests.
Youβll find test files in the tests/ directory.
To make sure the user interface works and QR codes are generated correctly, we use Playwright for end-to-end testing.
To run the test suite successfully, follow these exact steps:
Make sure you have both pytest and playwright installed, along with the required browser binaries:
pip install playwright pytest
playwright installThe web application must be running in the background for the UI tests to connect to it. Start the app in your terminal:
python main.py(Leave this terminal window open so the server keeps running!)
Open a new, separate terminal window/tab, navigate back to your project root directory, and run the tests:
pytest tests/The tests check that:
- The application is reachable.
- A QR code can be generated from a URL.
- The results are correctly displayed in the UI.
If you want to add your own tests, check out
tests/test_app.pyfor inspiration.
Lovingly crafted by Hanka Robovska
This project is licensed under the MIT License. See the LICENSE file for details. Free to use, modify, and distribute as needed.