Ambrahealth python SDK
Project description
Ambra-SDK
Welcome to ambra-sdk library for intract with ambrahealth service and storage api.
Quickstart
pip install ambra-sdk
Running
from ambra_sdk.api import Api
from ambra_sdk.models import Study
from ambra_sdk.service.filtering import Filter, FilterCondition
from ambra_sdk.service.sorting import Sorter, SortingOrder
api = API.with_creds(url, username, password)
user_info = api.Session.user().get()
studies = api \
.Study \
.list() \
.filter_by(
Filter(
'phi_namespace',
FilterCondition.equals,
user_info.namespace_id,
),
) \
.only([Study.study_uid, Study.image_count]) \
.sort_by(
Sorter(
'created',
SortingOrder.ascending,
),
) \
.all()
for study in studies:
print(study.study_uid, study.image_count)
License
Ambra-SDK is licensed under the terms of the Apache-2.0 License (see the file LICENSE).
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
ambra-sdk-3.20.3.0.post3.tar.gz
(124.3 kB
view hashes)
Built Distribution
Close
Hashes for ambra_sdk-3.20.3.0.post3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebbcd7ed63749b977e41707171ba308df2af4e2054f4cd35c40c81db62fcf87e |
|
MD5 | f06c1718ab65064385e53c0391ae70b7 |
|
BLAKE2b-256 | 5fe1947a75782374d836b0bbd80d9b3ecfa883fc11bceeee18f9e18ca8a3337f |