Mediloca Python SDK 1.0.3
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.3 - SDK version:
1.0.3
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 Mediloca Sdk 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 |
Metadata
Release files for mediloca 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mediloca-1.0.3.tar.gz | 24.5 kB | Without provenance | Details for mediloca-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mediloca-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for mediloca-1.0.3-py3-none-any.whl |
Total release size: 64.3 kB
Release files / mediloca-1.0.3.tar.gz
| Download URL | mediloca-1.0.3.tar.gz |
|---|---|
| Size | 24.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9e6b25dec86920beb3c0b49be856109a388795f735179b66ba0b1cff874105d
|
|
BLAKE2b-256 checksum How to use checksums |
58b1f3e1486011c25c032333930255ab766abab151530134719ec2b27977a37c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / mediloca-1.0.3-py3-none-any.whl
| Download URL | mediloca-1.0.3-py3-none-any.whl |
|---|---|
| Size | 39.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7894a61984db8a72dec19226c86f7cd10ea377a2a0bfc8d4589c717517b5859e
|
|
BLAKE2b-256 checksum How to use checksums |
c8e9e06fdd30e4f34e0cd3016becc9f209541c34ebb9d5512a8807b36659d916
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for mediloca 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.