Metadata-Version: 2.4
Name: qrtxtgen
Version: 1.0.0
Summary: Generate a QR code from any text or URL, rendered in your terminal with Unicode block art
License: MIT
Project-URL: Homepage, https://github.com/007Style/qrTxtGen
Project-URL: Source, https://github.com/007Style/qrTxtGen
Project-URL: Issues, https://github.com/007Style/qrTxtGen/issues
Keywords: qr,qrcode,terminal,cli,unicode,url
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: qrcode>=7.4
Requires-Dist: pillow>=10.0
Dynamic: license-file

# qrTxtGen 📡

> *From the minds of Daneyand & IBM Bob...*

Generate a QR code from **any text or URL** — rendered instantly in your terminal with Unicode block art, plus optional PNG export. No browser, no web app, no nonsense.

```
    ██████████████    ██  ██████████    ██████████████
    ██          ██    ████  ██████████  ██          ██
    ██  ██████  ██  ██  ████  ██  ██    ██  ██████  ██
    ██  ██████  ██  ████████    ████    ██  ██████  ██
    ██  ██████  ██  ██  ████      ████  ██  ██████  ██
    ██          ██  ██  ██████          ██          ██
    ██████████████  ██  ██  ██  ██  ██  ██████████████
```

---

## ⚡ Quickstart

### Install with pipx (recommended)

```bash
pipx install qrtxtgen
qrTxtGen "https://github.com/007Style/qrTxtGen"
```

pipx gives qrTxtGen its own isolated environment and puts a `qrTxtGen` command on your `PATH`.
Upgrade with `pipx upgrade qrtxtgen`; remove with `pipx uninstall qrtxtgen`. If the command is not
found, run `pipx ensurepath` and open a new terminal.

### Run the script directly

```bash
# Terminal display
python3 qr_gen.py "https://github.com/007Style/qrTxtGen"

# Terminal display + save PNG
python3 qr_gen.py "https://github.com/007Style/qrTxtGen" --save qr.png

# Crank up error correction
python3 qr_gen.py "Hello, World!" --error H --save hello.png
```

---

## 🚀 Standalone Binaries — No Python Required

Grab a pre-built binary from [Releases](../../releases) and just run it:

| Platform        | Binary                              |
|-----------------|-------------------------------------|
| macOS arm64     | `qrTxtGen-1.0.0-macos-arm64.zip`    |
| Linux x86_64    | `qrTxtGen-1.0.0-linux-x86_64.zip`   |

```bash
unzip qrTxtGen-1.0.0-macos-arm64.zip
./qrTxtGen "https://ibm.com"
```

---

## 🛠 Build from Source

**Requirements**
```bash
pip3 install qrcode pillow
```

**Run**
```bash
python3 qr_gen.py "your text here"
```

**Build standalone binary (macOS)**
```bash
pip3 install pyinstaller
pyinstaller --onefile --name qrTxtGen --strip --clean qr_gen.py
./dist/qrTxtGen "your text here"
```

**Build standalone binary (Linux x86_64)** — requires Docker
```bash
./build-linux.sh
# → dist/qrTxtGen-1.0.0-linux-x86_64.zip
```

---

## 🎛 Options

| Flag              | Description                                              |
|-------------------|----------------------------------------------------------|
| `text`            | The text or URL to encode *(required)*                   |
| `--save FILE.png` | Also save the QR code as a PNG image                     |
| `--error L\|M\|Q\|H` | Error correction level — L (7%) · M (15%) · Q (25%) · H (30%) — default: **M** |

---

## 📁 Project Layout

```
qrTxtGen/
├── qr_gen.py               ← main script
├── Dockerfile.linux-build  ← Linux build recipe
├── build-linux.sh          ← one-command Linux builder
└── dist/                   ← compiled binaries land here
```

---

## 📜 License

MIT — see [LICENSE](LICENSE).

---

*Built with Python · qrcode · Pillow · PyInstaller*

> *From the minds of IBM Bob & Daneyand*
