Overview
Python SDK
Install, configure, and use the Medera Python SDK
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Install, configure, and use the Medera Python SDK
pip install medera
``` Requires Python 3.10+.
## Quick start
```python
import asyncio
from medera import MederaAuth, MederaClient async def main: auth = MederaAuth(client_id=os.environ["MEDERA_CLIENT_ID"], client_secret=os.environ["MEDERA_CLIENT_SECRET"], audience="api.medera.info",) async with MederaClient(auth=auth) as client: session = await client.sessions.create(patient_id="pat_abc", provider_id="prv_xyz", visit_type="psychiatry_followup",) print(session.id) asyncio.run(main)