This is a simple Python tool that generates ASCII representations of QR codes for URLs and text inputs.
- Clone this repository:
git clone https://github.com/nikelau/python-ascii-qr-generator.git
cd python-ascii-qr-generator
- Install the required packages:
pip install -r requirements.txt
Run the script:
python python-ascii-qr-generator.py
Follow the prompts to enter your URL or text and choose the size of the QR code.
Compact ASCII QR Code Generator
Enter the URL or text (or 'q' to quit): https://github.com/nikelau/python-ascii-qr-generator
Enter the size (default is 1): 1
Here's your compact ASCII QR code:
▄▄▄▄▄▄▄ ▄ ▄▄▄▄ ▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄▄
█ ▄▄▄ █ ▀▄██▄▀ █▄▀▄ ▀▀█ █ ▄▄▄ █
█ ███ █ ▀▀▀█▄ █ ▀ ▀▄ ▀ █ █ ███ █
█▄▄▄▄▄█ ▄ ▄▀█▀█ ▄▀▄▀▄▀█ █ █▄▄▄▄▄█
▄ ▄▄ ▄▄▄▀▄▄ █ ███▀▄▄ █ ▄ ▄ ▄▄
█▀█▀▄█▄▀▄▀█ ▀ ▄ ▀▄▀▀█▄▄█ ▀█▄█▀ █
█▄▄ █▄▀ ██▄▄▀▀▄▀ █▄█ █▄▄ █▄█ ██
█▄█▄▀ ▄ ▀ ▀ ▄▀▄▄█▀██▄█ █ ▄█▄▄▀▀
█▀▄▄▀ ▄▀ ▀▀ █▀▀▄█ ▄███▄ ██▀███
▀▀█▄ ▀▄█ █▄ ▄ ▀█▄█ █▄█▀███▄█▀▄█▀
▀█▄▄ ▄█▄█▀ ▀ █▀ ▄▀ ▄▀▀▀▀▀ ▀▄▄▀▄
▀▀█ ██▄ ██▄ ▀▄█▀▄██▀██▀█▀██▄▄ ▀▄█
▄▀▄█▄█▄▀▄▄ ▄▀█▄▄▀▄ ▀▀ ▄▀▄▄█▄██ █
▄▄▄▄▄▄▄ █ ▀▀█▄▄▀ ▀ ██▄▄▄█ ▄ █▀
█ ▄▄▄ █ ▀█▀█▀ ▄▀▀▄ ▄▀█▄██▄▄▄█▀█
█ ███ █ ██ █ ▄ █ █▀█▀ ▄█ ▄ ▀
█▄▄▄▄▄█ ▄▄▄█▄ █▀██▄▀▄▀▄▀ ▀▀█ ▄ ▀
Data: https://github.com/nikelau/python-ascii-qr-generator
'''
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.