Metadata-Version: 2.4
Name: nessyapi-sdk
Version: 0.2.0
Summary: Python SDK for NessyAPI — Clinical Decision Support API
Author-email: "HealthyNess.cz" <dev@healthyness.cz>
License: MIT
Project-URL: Homepage, https://healthyness.cz
Project-URL: Documentation, https://github.com/jachymvrtiskaHN/NessyAPI/tree/master/sdk
Project-URL: Repository, https://github.com/jachymvrtiskaHN/NessyAPI
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Healthcare Industry
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.27
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21; extra == "dev"

# NessyAPI Python SDK

Python SDK for [NessyAPI](https://healthyness.cz) — Clinical Decision Support API.

## Install

```bash
pip install nessyapi-sdk
```

## Quick Start

```python
from nessyapi_sdk import NessyClient

with NessyClient(api_key="nsy_live_...") as client:
    # Run a full assessment
    results = client.run_assessment("headache", age=35, sex="male")
    
    print(f"Triage: {results.triage_level}")
    for dx in results.differentials:
        print(f"  {dx.diagnosis}: {dx.probability:.0%}")
```

## Async

```python
from nessyapi_sdk import AsyncNessyClient

async with AsyncNessyClient(api_key="nsy_live_...") as client:
    session = await client.create_session("chest_pain", age=55, sex="male")
    result = await client.answer(session.session_id, "q1", raw_text="pressure pain")
    final = await client.finalize(session.session_id)
```

## Features

- Sync and async clients
- Typed response models (dataclasses)
- Automatic retry with exponential backoff (429, 5xx)
- Patient profile management
- Webhook signature verification

## Links

- [API Reference](https://github.com/jachymvrtiskaHN/NessyAPI/blob/master/docs/api-reference.md)
- [SDK Guide](https://github.com/jachymvrtiskaHN/NessyAPI/blob/master/docs/sdk-guide.md)
