Skip to main content

A library for calling different APIs for medical AI usecases.

Project description

MedRouter

MedRouter is a Python library designed to facilitate the interaction with various APIs for medical AI applications. Currently, it supports segmentation models, with plans to expand into other domains soon. This project is powered by PYCAD.

Features

  • Easy API Integration: Simplifies the process of calling different APIs hosted on external servers.
  • Segmentation Models: Supports segmentation models with more models and domains to be added in the future.
  • Error Handling: Provides robust error handling to ensure smooth operation.

Installation

You can install MedRouter using pip:

pip install medrouter

Usage

Here's a quick example of how to use the MedRouter library:

from medrouter import MedRouter

# Initialize the client with your API key
client = MedRouter(api_key="your_api_key")

# Run a segmentation model
predictions = client.segmentation.create(
    source="path_to_file",
    model="total-segmentator"
)

print(predictions)

Available Models

  • total-segmentator: A model for comprehensive segmentation tasks.

Error Handling

MedRouter provides specific exceptions to handle common errors:

  • ModelNotFoundError: Raised when the specified model is not found.
  • InferenceError: Raised when there is an error during the inference process.
  • APIKeyError: Raised when there is an issue with the API key, such as it being missing or incorrect.

Contributing

We welcome contributions to expand the capabilities of MedRouter. Please feel free to submit issues or pull requests.

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for more details.

Contact

For more information, please contact us at contact@pycad.co.


MedRouter is a project by PYCAD, dedicated to advancing medical AI technologies.

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

medrouter-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

medrouter-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file medrouter-0.1.0.tar.gz.

File metadata

  • Download URL: medrouter-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.14

File hashes

Hashes for medrouter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 baab125630502dd55e3a815bd119319648826d36ff8530d593d72f04d44c0531
MD5 ddba653158d9ac493aa2b769bfe431c8
BLAKE2b-256 0a15a80f9a8a2b00fa4c35f1a89fbd272e1c5d4d5d63e687709073725cc13d25

See more details on using hashes here.

File details

Details for the file medrouter-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: medrouter-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.14

File hashes

Hashes for medrouter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7fe0d6a59cbd5dff3ce33998f78ec0aab229b5f467ee179b93cc95b61728be9
MD5 dd8cc41000e92219921616a246d13582
BLAKE2b-256 35d57a62fbb61376199af1186145597d407c9ae01c357d220f8c499da629efe8

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