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.0.tar.gz
(8.7 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.0.tar.gz.
File metadata
- Download URL: nessyapi_sdk-0.2.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcca38ccece81a293aff2e287cb5ef8f76641150125304368b6094b73f82fa12
|
|
| MD5 |
cc2bf1f14604e17f5dcf8a8621cfca7c
|
|
| BLAKE2b-256 |
0ffb72a91a1c829dd12cff411a88697fb82e05155e56dbb5655dbffd1714b104
|
File details
Details for the file nessyapi_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: nessyapi_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.8 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 |
f71a66c8eaacef1af337c45d98e1aca8c4a126ee6bcec071a80743c866eadff9
|
|
| MD5 |
cb49f7453164875610d5b36f704f872e
|
|
| BLAKE2b-256 |
b2efc6a5b90323b7f846d2132b57511a0dd4c21f6ec7a6da11a6074831fd5651
|