Metadata-Version: 2.4
Name: img2-info
Version: 0.2.3
Summary: Im2  Python SDK (Upgraded): Clean client with auth, error handling, supports file/url/bytes/base64, includes examples and CLI, easy installation.
Author: Nguyen Truong Dat
Author-email: datgsk1 <datgsk1@gmail.com>
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.28

# OCR.Space Python SDK (Upgraded)

## Mô tả

SDK nâng cấp cho Im2 info:

- Client sạch với xác thực, xử lý lỗi
- Hỗ trợ input: file, url, bytes, base64
- Có ví dụ và CLI đơn giản
- Cài đặt dễ dàng: `pip install -e .`

## Hướng dẫn sử dụng

### 1. Cài đặt package

Nếu đã upload lên PyPI:

```powershell
pip install img2info==0.2.1
```

Hoặc cài từ source:

```powershell
pip install -e .
```

### 2. Cài đặt dependencies

```powershell
pip install requests
```

### 3. Thiết lập API key

Windows CMD:

```powershell
set OCRSPACE_API_KEY=your_key
```

PowerShell:

```powershell
$env:OCRSPACE_API_KEY="your_key"
```

Linux/macOS:

```sh
export OCRSPACE_API_KEY=your_key
```

### 4. Sử dụng trong code Python

```python
from img2info import OCRSpaceClient
client = OCRSpaceClient(api_key="your_key")
result = client.from_file("invoice.png")
print(result.text)
```
