Simba Client (formerly simba_sdk)
A Python client for interacting with the Simba document processing API.
Installation
Using pip
pip install simba-client
Development Installation
# Clone the repository
git clone https://github.com/GitHamza0206/simba.git
cd simba
# Install dependencies with Poetry
poetry install
Quick Start
from simba_sdk import SimbaClient
# Initialize the client
client = SimbaClient(
api_url="https://your-api.example.com",
api_key="your-api-key"
)
# Upload a document
with open("document.pdf", "rb") as f:
result = client.documents.create_from_file(f, "document.pdf")
document_id = result["document_id"]
# Parse a document synchronously
parsing_result = client.parser.parse_sync(document_id)
# Parse a document asynchronously
task = client.parser.parse(document_id)
task_id = task["task_id"]
# Check the status of a parsing task
task_status = client.parser.get_task(task_id)
# Generate an embedding for semantic search
embedding_result = client.embedding.embed_document(document_id)
# Perform a similarity search
search_results = client.embedding.get_similarity_search(
document_id,
"financial projections for next quarter",
limit=3
)
Features
- Document Management: Upload, download, list, and delete documents
- Document Parsing: Extract structured data from documents, including tables, forms, and entities
- Document Embeddings: Generate vector embeddings for documents to enable semantic search
- Authentication: Secure API access with API keys
- Error Handling: Robust error handling for API requests
Documentation
For more detailed information, check out the documentation:
- SimbaClient API Reference
- DocumentManager API Reference
- ParserManager API Reference
- EmbeddingManager API Reference
Development
Setup Development Environment
# Clone the repository
git clone https://github.com/yourusername/simba-client.git
cd simba-client
# Install dependencies with Poetry
poetry install
Run Tests
poetry run pytest
Build Documentation
poetry run sphinx-build docs/source docs/build
License
This project is licensed under the MIT License.
Metadata
Release files for simba-client 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| simba_client-0.3.0.tar.gz | 8.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simba_client-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.2 kB
Release files / simba_client-0.3.0.tar.gz
| Download URL | simba_client-0.3.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d94b28adf380b5b323e2e065d9665e3811737bcca761f201d7d23ebdad09046b
|
|
BLAKE2b-256 checksum How to use checksums |
3eade61eefb1e29c5f9dae0f9946c1fc45859cad8f978a881b5e183fbb75ce00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.11.5 Darwin/24.3.0
|
Release files / simba_client-0.3.0-py3-none-any.whl
| Download URL | simba_client-0.3.0-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c031216422d8ff9f181124352312634958398fe97d0ff257b0ce56ef5d836ed2
|
|
BLAKE2b-256 checksum How to use checksums |
39bf053b8a23a9fa542b894681b624d9d2fce763558c5c908dc4ccf14cea3b11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.11.5 Darwin/24.3.0
|
Security for simba-client 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.