Skip to content

Files

Latest commit

475a924 · Oct 23, 2024

History

History
58 lines (45 loc) · 2.39 KB

README.md

File metadata and controls

58 lines (45 loc) · 2.39 KB

ASCII QR Code Generator

This is a simple Python tool that generates ASCII representations of QR codes for URLs and text inputs.

Installation

  1. Clone this repository:
git clone https://github.com/nikelau/python-ascii-qr-generator.git
cd python-ascii-qr-generator
  1. Install the required packages:
pip install -r requirements.txt

Usage

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.

Example

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.