Metadata-Version: 2.4
Name: sooeasyqr
Version: 0.1.0b1
Summary: This qr lib is soo easy bruh
Author: eykturkishyapimcisi
License-Expression: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: qrcode[pil]>=7.0
Requires-Dist: opencv-python>=4.5.0
Requires-Dist: printpro
Dynamic: license-file


# sooeasyqr 

> "This qr lib is soo easy bruh"

`sooeasyqr` is a highly simplified, intuitive, and professional Python QR code library designed to eliminate boilerplate code. It provides advanced features like binary data support, custom error correction, automated file reading, terminal ASCII rendering, and robust scanning utilities—all wrapped in a clean, developer-friendly API.

---

## 📦 Installation

Install the library directly from PyPI along with its core dependencies:

```bash
pip install sooeasyqr
```


---

## 🛠️ Usage Guide

### 1. Generating & Saving QR Codes (`core.py`)

```python
import sooeasyqr

# Initialize the QR object (Supports "auto" or specific versions, and error correction levels)
qr = sooeasyqr.QR(errorcorrectionlevel="H", version="auto")

# Load data (You can use text, raw bytes, or read directly from a file!)
qr.text("Hello, welcome to sooeasyqr! 🎯")
# qr.binary(b"\x00\xff\x55")
# qr.file("config.json")

# Optimize padding and whitespace for standard smartphone cameras
qr.scannable()

# Save in various image formats (automatically checks for Pillow)
qr.save("my_qr.png")
qr.save("my_qr.jpg")
qr.save("my_qr.bmp")

# Instantly view it in your system's default image viewer
qr.show()

# Print ASCII art directly to your terminal
print(qr.ascii())

# Safely destroy data from memory when finished
qr.destroy()

```

### 2. Scanning & Reading QR Codes (`read.py`)

```python
import sooeasyqr

# Check if an image contains a valid QR code
if sooeasyqr.isvalidqrcode("my_qr.png"):
    print("✅ Valid QR code detected!")

# Read standard text or data
data = sooeasyqr.read("my_qr.png")
print(f"Decoded Data: {data}")

# Smart auto-detection (Automatically parses JSON if applicable, or returns text/bytes)
result = sooeasyqr.readauto("my_qr.png")
print(f"Auto-parsed Result: {result}")

# Get detailed scanning information (data, detection bounding box, success status)
details = sooeasyqr.read_detailed("my_qr.png")
print(details)

```

---

## 📋 Features

* **Zero Boilerplate**: Hide all the complex underlying configurations behind a clean OOP interface.
* **Multi-Format Saving**: Seamlessly export to `.png`, `.jpg`, and `.bmp` with built-in safety checks.
* **Advanced Reader**: Built-in scanning tools (`read`, `readbinary`, `readauto`, `isvalidqrcode`, `read_detailed`) powered by OpenCV.
* **Memory Safe**: Explicit `.destroy()` method to wipe data securely from RAM.

---

## 📜 License

This project is licensed under the MIT License. See the `LICENSE` file for details.
