Python SDK

Install and start using the Python SDK.

Intro

The NexHealth API SDK provides access to the NexHealth API REST APIs.

The NexHealth Synchronizer API gives read and write access to the practice management and EHR systems of dental and medical practices: patients, appointments, availability, providers, insurance, billing and more, through one REST API. v3.0.0 and v20240412 are two names for the same API version; send either in the Nex-Api-Version header.

Installation

Add the SDK to your project from its folder, with whichever package manager your project uses. Give each tool a path containing a slash, such as ../nex-health-api — a bare folder name is looked up on PyPI instead, and resolves to whatever project holds that name there:

Terminal
pip install <path-to-sdk>
Terminal
uv add <path-to-sdk>
Terminal
poetry add <path-to-sdk>

Quick Start

Synchronous client

Construct NexHealthApiClient with keyword arguments, and call close() when you are done. Every argument is optional.

Python
from nex_health_api import NexHealthApiClient

client = NexHealthApiClient(authorization="YOUR_API_KEY")

client.close()

Alternatively, scope it — with NexHealthApiClient(...) as client: closes the pool on exit.

Asynchronous client

AsyncNexHealthApiClient mirrors NexHealthApiClient with identical method names, and every endpoint method is a coroutine. It takes the same arguments, with some differences — for example, the transport argument is custom_async_http_client.

Python
from asyncio import run

from nex_health_api import AsyncNexHealthApiClient


async def main() -> None:
    client = AsyncNexHealthApiClient(authorization="YOUR_API_KEY")
    await client.aclose()


run(main())

Alternatively, scope it — async with AsyncNexHealthApiClient(...) as client: closes the pool on exit.

On this page