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.3.0.tar.gz (8.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.3.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: medrouter-0.3.0.tar.gz
  • Upload date:
  • Size: 8.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.3.0.tar.gz
Algorithm Hash digest
SHA256 e4ca5e5daefb0bcf8e549eda400105541047afb16082a13c0d7b5ea5cd456e19
MD5 1d3b1b9623c1d035a6301bee2251562b
BLAKE2b-256 a316d32eb504fc5aeb7c36404be9390a3eb05dc3466c49891c06d03cf9c247ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: medrouter-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd01e4c384a7da45118f27241058bfd59c8c0a4514969dd458994e28d0d6c068
MD5 bb626b00da522db5716abe1bfbbd1e50
BLAKE2b-256 89834b20527dde2386b1e02e5cf2dfc0ef0531ec17d758f6a9f8c6660db03f2e

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