Skip to main content

A library for calling different APIs for medical AI usecases.

Project description

MedRouter Banner

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.5.0.tar.gz (9.5 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.5.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for medrouter-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e761667c212cb883a12224452697e000ee21586e38813ce4d0ab477e421f1d5f
MD5 06c7a757e88321a712602727cade23c8
BLAKE2b-256 6edd48c367afac1290ee37ccc617674e48f640726f904afb9e62e50fcfd0a1b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: medrouter-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a130f8864f2aaf4719a963343b3e47d7edd385223044ae6badad23241cefa095
MD5 568d6f797c510209fd88881bbce5a943
BLAKE2b-256 d7d15151bbe50313442c85a2a67351ec2d90a55a2c364b98a6762f4cc6b1e066

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