Metadata-Version: 2.5
Name: aisicario
Version: 1.0.0
Summary: Official Python client for the AiSicario deposition platform API.
Project-URL: Homepage, https://aisicario.me
Project-URL: Documentation, https://aisicario.me/developers
Author: AiSicario
License: MIT License
        
        Copyright (c) 2026 AiSicario
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: aisicario,api,depositions,legal,transcription
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# AiSicario for Python

Official client for the AiSicario deposition platform.

```bash
pip install aisicario
```

```python
import os
from aisicario import AiSicario

client = AiSicario(api_key=os.environ["AISICARIO_API_KEY"])

print(client.pricing())

for case in client.cases.list(limit=10)["data"]:
    print(case["name"])

proceeding = client.proceedings.create(case_id=case["id"], title="Witness deposition",
                                       witness_name="J. Doe", scheduled_at="2026-04-02T15:00:00Z")

lines = client.proceedings.transcript(proceeding["id"], limit=100)
client.proceedings.analyze(proceeding["id"])
client.translations.create(proceeding["id"], lang="es")

result = client.transcribe(audio_url="https://example.com/audio.m4a",
                           idempotency_key="session-1")
print(result["text"], result["billed_minutes"])
```

## Sandbox

Create a sandbox key in Settings → Developers. Sandbox keys return realistic
sample data and are never billed.

## Webhooks

```python
from aisicario import verify_webhook

ok = verify_webhook(
    secret=os.environ["AISICARIO_WEBHOOK_SECRET"],
    body=raw_request_body,
    timestamp=headers["X-AiSicario-Timestamp"],
    signature=headers["X-AiSicario-Signature"],
)
```

Events: `transcription.finished`, `analysis.finished`, `proceeding.ended`,
`exhibit.added`, `translation.ready`, `credits.low`. Failed deliveries retry
at 1, 5, 15, 60 and 180 minutes.

## Errors

`AiSicarioError` carries `status` and `message`. `401` invalid key, `403`
missing scope, `402` not enough credits, `429` rate limited (120 requests per
minute per key).

Full reference: https://aisicario.me/developers
