Skip to content

A Python tool that generates compact ASCII representations of QR codes for URLs and text inputs. Create scannable QR codes using only text characters, perfect for console applications or text-based environments.

License

Notifications You must be signed in to change notification settings

nikelau/python-ascii-qr-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Python tool that generates compact ASCII representations of QR codes for URLs and text inputs. Create scannable QR codes using only text characters, perfect for console applications or text-based environments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages