Skip to main content

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

Project description

MedilocaSdk Python SDK 1.0.0

Welcome to the MedilocaSdk SDK documentation. This guide will help you get started with integrating and using the MedilocaSdk SDK in your project.

This SDK was generated by liblab

Versions

  • API version: 1.0.0
  • SDK version: 1.0.0

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


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.1.tar.gz (24.6 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.1-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mediloca-1.0.1.tar.gz
  • Upload date:
  • Size: 24.6 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.1.tar.gz
Algorithm Hash digest
SHA256 3a1731f36ec2343c97ee159dac7a6a39656993c15924fd56706512c7bc0fe23a
MD5 bd31f078284851fe15ae90b9dcb2ab01
BLAKE2b-256 a56e9e9a2b3cc23d3d60001965c13197727c546d6cbd6f80992dc6589e8f2faa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mediloca-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 40.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 238b319cc36bcc09f954f1ee90c72dda3addf0956b428a07c3f1fd72c44427a2
MD5 d5cbce6c6bebbf944197e28a89de733b
BLAKE2b-256 8326e28419b8db9bb61c44518cba06e7b1bde7a4c3c9ad52ae33dbe543b3629d

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