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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file intelliprove-1.2.0.tar.gz.

File metadata

  • Download URL: intelliprove-1.2.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1015-azure

File hashes

Hashes for intelliprove-1.2.0.tar.gz
Algorithm Hash digest
SHA256 fdfb8112d38ba6b189e828d455576085012bfcab8b7aa789d09dee65bb6b8312
MD5 7b61fb01cc40db8b0c535ff8e86b7f51
BLAKE2b-256 8a99b0c4a86f27beaf2d5e9393dc1a216af19a98cddd7365a04ee7b34aa6e20a

See more details on using hashes here.

File details

Details for the file intelliprove-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: intelliprove-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1015-azure

File hashes

Hashes for intelliprove-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e30a1823e088141e927b15a72484b32d39a098d0d0a2c1c52761bd264d20e74
MD5 268f2ae505936648b19f008ab6fc0ceb
BLAKE2b-256 531a436e97f02bbfbe963df66b4f3bc92eca7607183523a315cfc74c03a25926

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