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
UnprocessableVideoResponsemodel andVideoProcessingFailedExceptionexception:
The new model
UnprocessableVideoResponseprovides extra information about why a certain video did not successfully process.
This new information is returned inside the newVideoProcessingFailedExceptionexception, which gets throw from theget_resultsmethod.
Updates
- Refactor of
Qualitydataclass:
The following properties for the
Qualitymodel have been renamed:
message=>prompt
Deprecated features
How to Upgrade
- Ensure you are using the new property
promptfrom theQualitymodel - Ensure you catch the new
VideoProcessingFailedExceptionwhen calling theget_resultsmethod. Additionally you can read out theresponseproperty 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdfb8112d38ba6b189e828d455576085012bfcab8b7aa789d09dee65bb6b8312
|
|
| MD5 |
7b61fb01cc40db8b0c535ff8e86b7f51
|
|
| BLAKE2b-256 |
8a99b0c4a86f27beaf2d5e9393dc1a216af19a98cddd7365a04ee7b34aa6e20a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e30a1823e088141e927b15a72484b32d39a098d0d0a2c1c52761bd264d20e74
|
|
| MD5 |
268f2ae505936648b19f008ab6fc0ceb
|
|
| BLAKE2b-256 |
531a436e97f02bbfbe963df66b4f3bc92eca7607183523a315cfc74c03a25926
|