Im2 Python SDK (Upgraded): Clean client with auth, error handling, supports file/url/bytes/base64, includes examples and CLI, easy installation.
Project description
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:
pip install img2info==0.2.1
Hoặc cài từ source:
pip install -e .
2. Cài đặt dependencies
pip install requests
3. Thiết lập API key
Windows CMD:
set OCRSPACE_API_KEY=your_key
PowerShell:
$env:OCRSPACE_API_KEY="your_key"
Linux/macOS:
export OCRSPACE_API_KEY=your_key
4. Sử dụng trong code Python
from ocrspace import OCRSpaceClient
client = OCRSpaceClient(api_key="your_key")
result = client.from_file("invoice.png")
print(result.text)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
img2_info-0.2.1.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file img2_info-0.2.1.tar.gz.
File metadata
- Download URL: img2_info-0.2.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4cbc326a4f7ab2f55f6f9a858e55fa6d5ed14f1caa066d50b32398851404593
|
|
| MD5 |
58b4eff2188078413d2e856e3c10ff22
|
|
| BLAKE2b-256 |
dddd4b1056c858ac0a53d8a82617f4358a350f5824b2352ab36f427d5cb59434
|
File details
Details for the file img2_info-0.2.1-py3-none-any.whl.
File metadata
- Download URL: img2_info-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a3e4d6c0c7a423eaad4a4489519d1bbf220a6f3f37f2d7281aa2c1dbc0cb237
|
|
| MD5 |
b81c9e8b0a63561470dacff4340cb3a7
|
|
| BLAKE2b-256 |
f96b1b50d4e6b82de38eaceec0c33d6c2b79dbc3b21de01d43efba23f964b67c
|