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.2.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.2.tar.gz.
File metadata
- Download URL: img2_info-0.2.2.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 |
c127fadb43a909681d2dfcf69aa45a76398858b1f341f72e6d0f4112bc38a6dc
|
|
| MD5 |
89310c2b9226149cc1d4ca2391285e99
|
|
| BLAKE2b-256 |
9c658f6f335db5b6b1fbe04a576d70d78799ea5607c72d5d80b1d0433e00f7f4
|
File details
Details for the file img2_info-0.2.2-py3-none-any.whl.
File metadata
- Download URL: img2_info-0.2.2-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 |
56acf6a013317de5370a8145bc6e941b0cb9df25e3e414d381b6d02b5bdbaef0
|
|
| MD5 |
099b46510b93d59625715580c7d377f5
|
|
| BLAKE2b-256 |
a596cd519705ed397d3e2b5082613b75722e3e7feecacd63f082a0d13f07a3c2
|