Healthcare location intelligence: facility search, access scoring, emergency routing, specialist matching, risk analysis, and heatmaps.
Project description
MedilocaSdk Python SDK 1.0.2
Welcome to the Mediloca SDK documentation. This guide will help you get started with integrating and using the Mediloca SDK in your project.
Versions
- API version:
1.0.2 - SDK version:
1.0.2
About the API
Healthcare location intelligence: facility search, access scoring, emergency routing, specialist matching, risk analysis, and heatmaps.
Table of Contents
Setup & Configuration
Supported Language Versions
This SDK is compatible with the following versions: Python >= 3.7
Installation
To get started with the SDK, we recommend installing using pip:
pip install mediloca
If you are using Python 3, you can use pip3 instead:
pip3 install mediloca
Authentication
Access Token Authentication
The MedilocaSdk API uses an Access Token for authentication.
This token must be provided to authenticate your requests to the API.
Setting the Access Token
When you initialize the SDK, you can set the access token as follows:
MedilocaSdk(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
If you need to set or update the access token after initializing the SDK, you can use:
sdk.set_access_token("YOUR_ACCESS_TOKEN")
Setting a Custom Timeout
You can set a custom timeout for the SDK's HTTP requests as follows:
from mediloca_sdk import MedilocaSdk
sdk = MedilocaSdk(timeout=10000)
Sample Usage
Below is a comprehensive example demonstrating how to authenticate and call a simple endpoint:
from mediloca_sdk import MedilocaSdk
sdk = MedilocaSdk(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
result = sdk.health_check.health()
print(result)
Async Usage
The SDK includes an Async Client for making asynchronous API requests. This is useful for applications that need non-blocking operations, like web servers or apps with a graphical user interface.
import asyncio
from mediloca_sdk import MedilocaSdkAsync
sdk = MedilocaSdkAsync(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)
async def main():
result = await sdk.health_check.health()
print(result)
asyncio.run(main())
Services
The SDK provides various services to interact with the API.
Below is a list of all available services:
| Name |
|---|
| mediloca_ml |
| health_check |
Models
The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.
Below is a list of all available models:
| Name | Description |
|---|---|
| SpecialistTreatmentRequestDto | |
| LoccodeRequestDto | |
| FacilitySearchRequestDto |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 mediloca-1.0.2.tar.gz.
File metadata
- Download URL: mediloca-1.0.2.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e0ad87f277f0542448fb0df0b26a7e53ac28b57504a76cfc75dc7b9e092550a
|
|
| MD5 |
565f43a48067b78168ed8938caea8f18
|
|
| BLAKE2b-256 |
6f208104546f0cf99fc26c3b26e998b734645b2f9c3473617b3e60610d2c313a
|
File details
Details for the file mediloca-1.0.2-py3-none-any.whl.
File metadata
- Download URL: mediloca-1.0.2-py3-none-any.whl
- Upload date:
- Size: 39.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3cc96fa8f17ef74f91908aadc02e4753b3b2c54074e1571e8e87473d6dcc42b
|
|
| MD5 |
da530eb477fb6e78168424d1efbe9c85
|
|
| BLAKE2b-256 |
7b0f41bb2cd84c2236b4cdc4c7bbf5765fde5451a7703e7c0cae5d19d80ec1f0
|