Skip to main content

Healthcare location intelligence: facility search, access scoring, emergency routing, specialist matching, risk analysis, and heatmaps.

Project description

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

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

mediloca-1.0.3.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mediloca-1.0.3-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file mediloca-1.0.3.tar.gz.

File metadata

  • Download URL: mediloca-1.0.3.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

Hashes for mediloca-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b9e6b25dec86920beb3c0b49be856109a388795f735179b66ba0b1cff874105d
MD5 017ad19e6aecd4f57132150b25ceea6a
BLAKE2b-256 58b1f3e1486011c25c032333930255ab766abab151530134719ec2b27977a37c

See more details on using hashes here.

File details

Details for the file mediloca-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: mediloca-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 39.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mediloca-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7894a61984db8a72dec19226c86f7cd10ea377a2a0bfc8d4589c717517b5859e
MD5 6901fc353f9e1dfb245b565fe34d9b53
BLAKE2b-256 c8e9e06fdd30e4f34e0cd3016becc9f209541c34ebb9d5512a8807b36659d916

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page