Skip to main content

The Python SDK for using IntelliProve.

Reason this release was yanked:

depracated

Project description

IntelliProve Python SDK

Requirements

  • Python ^3.9

Installation

pip install intelliprove

Documentation

You can find our SDK documentation here.

Release Notes

1.2

New features​

  • Added UnprocessableVideoResponse model and VideoProcessingFailedException exception:

The new model UnprocessableVideoResponse provides extra information about why a certain video did not successfully process.
This new information is returned inside the new VideoProcessingFailedException exception, which gets throw from the get_results method. ​

Updates

  • Refactor of Quality dataclass:

The following properties for the Quality model have been renamed:

  • message => prompt

Deprecated features

How to Upgrade

  1. Ensure you are using the new property prompt from the Quality model
  2. Ensure you catch the new VideoProcessingFailedException when calling the get_results method. Additionally you can read out the response property of this exception to provide feedback to the end-user.

Example usage

import os
from pathlib import Path

from intelliprove.api import IntelliproveApi, IntelliproveApiSettings, Biomarkers, Quality

# define api key and settings
apikey = os.environ.get('apikey')
settings = IntelliproveApiSettings(
    base_url=''
)

# init api
api = IntelliproveApi(apikey, settings)

# define the path of the video you want to upload
video_path = Path('./mydir/example.mp4')
image_path = Path('./mydir/example.png')

# manually check quality of a video of image
quality: Quality = api.check_conditions(video_path)
quality: Quality = api.check_conditions(image_path)

# Optional: define the performer and patient
performer: str = 'performer-a'
patient: str = 'patient-1'

# upload video to IntelliProve
# performer and patient are optional
uuid: str = api.upload(video_path)
# or
uuid: str = api.upload(video_path, performer=performer, patient=patient)

# get the results of the uploaded video
results: Biomarkers = api.get_results(uuid)

Dataclasses

  • Biomarkers
    • contains the results of an uploaded video
  • Quality
    • contains the quality parameters of a video or image

Exceptions

  • ImageQualityException
  • MediaException
  • InvalidUuidException
  • VideoProcessingFailedException
  • ApiException
    • ApiNotFoundException
    • ApiForbiddenException
    • ApiErrorException
    • ApiResultNotAvailable

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

intelliprove-1.2.0.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

intelliprove-1.2.0-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

Supported by

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