Python SDK for NessyAPI — Clinical Decision Support API
Project description
NessyAPI Python SDK
Python SDK for NessyAPI — Clinical Decision Support API.
Install
pip install nessyapi-sdk
Quick Start
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
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nessyapi_sdk-0.2.1.tar.gz
(9.4 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 nessyapi_sdk-0.2.1.tar.gz.
File metadata
- Download URL: nessyapi_sdk-0.2.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1da0cc13608cd7be2d1dfcd538694de76e81f2717f5c0b89a04482f2d14f050
|
|
| MD5 |
197eeab327a60848c12091d583bfdf40
|
|
| BLAKE2b-256 |
e8fff1938e10e58ee41aa8b6b0c7d6e88f75153f502f17dfc5b812f2199283c6
|
File details
Details for the file nessyapi_sdk-0.2.1-py3-none-any.whl.
File metadata
- Download URL: nessyapi_sdk-0.2.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79d3fab18709fab8e94cb54a0a45e51b51eae738713fec441e0a1a67c45253fe
|
|
| MD5 |
77691f4aa5b288133c92a2e45c94e91c
|
|
| BLAKE2b-256 |
d3297053032b41cac4dac43b4a1e534c835bddf462ae42c17cadae2d403f5ed8
|