High-performance Python client for Industrial Readers Server
Project description
Industrial Readers Client
High-performance Python client for the Industrial Readers Server - a blazing-fast document processing service built in Rust.
Features
- Multiple Formats: Excel, Word, PowerPoint, PDF, Images, Text
- High Performance: Built for speed with connection pooling
- Simple API: Intuitive Python interface
- Type Hints: Full typing support
- Context Manager: Automatic resource cleanup
Installation
pip install industrial-readers-client
Quick Start
from industrial_readers_client import IndustrialReadersClient
# Using context manager (recommended)
with IndustrialReadersClient("http://localhost:9847") as client:
# Check server health
health = client.health()
print(health) # {"status": "ok", "version": "1.0.0"}
# Auto-detect and read any file
data = client.read("document.xlsx")
# Read specific formats
excel_data = client.read_excel("spreadsheet.xlsx", max_rows=1000)
word_data = client.read_word("document.docx")
pdf_text = client.read_pdf("document.pdf")
image_info = client.read_image("photo.jpg")
Server Setup
Run the Industrial Readers Server:
# Using Docker (recommended)
docker run -p 8080:8080 registry.gitlab.com/soberonlineemail/profilereaders:latest
# Or with docker-compose
curl -O https://gitlab.com/soberonlineemail/profilereaders/-/raw/main/docker-compose.yml
docker-compose up -d
API Reference
IndustrialReadersClient
Constructor
base_url(str): Server URL (default: "http://localhost:8080")timeout(int): Request timeout in seconds (default: 30)
Methods
health()→ Dict: Server health statusdetect(file_path)→ str: Detect file formatread(file_path, **params)→ Dict: Auto-detect and read fileread_format(file_path, format_type, **params)→ Dict: Read with specific formatread_excel(file_path, max_rows=None, max_cells=None)→ Dict: Read Excel filesread_word(file_path)→ Dict: Read Word documentsread_pdf(file_path)→ Dict: Read PDF filesread_image(file_path)→ Dict: Read image metadata
License
MIT License - see LICENSE file for details.
Links
- Source Code: https://gitlab.com/soberonlineemail/profilereaders
- Docker Image: registry.gitlab.com/soberonlineemail/profilereaders:latest
- Issues: https://gitlab.com/soberonlineemail/profilereaders/-/issues
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
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 industrial_readers_client-1.0.1.tar.gz.
File metadata
- Download URL: industrial_readers_client-1.0.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8a8b265a74fab3022897ae0ded25efca2e0fa3a4cb8a8cda0ab8fd7d1d5665b
|
|
| MD5 |
ef115a8b4eb933db5f1204011691c20a
|
|
| BLAKE2b-256 |
d465b72ad5a457f1b858852b14000a28aff1f3acad50bdd1112856a76f5a4d19
|
File details
Details for the file industrial_readers_client-1.0.1-py3-none-any.whl.
File metadata
- Download URL: industrial_readers_client-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b06ccc26adb58c10af19807fd89573e48001cdd6a94148140dd542a960f54a57
|
|
| MD5 |
68cc93bbdf9eebcf8f1bbef7499f7c0a
|
|
| BLAKE2b-256 |
8b53df9f12ec63d7ecf35b9dda0109e97435fbe3707969d9b500f591dc01f145
|