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 # Usually, URL has a form: # url = https://ambrahealth_host/api/v3 # username and password - ambrahealth credentials. 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).
Read the docs
Documentation: https://dicomgrid.github.io/sdk-python/index.html
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.22.3.0.post1.tar.gz
(228.0 kB
view hashes)
Built Distribution
Close
Hashes for ambra_sdk-3.22.3.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 626c7782e06dd9a32c571d2ffb1938f1409f3c6f21e01ca58146490efbc18cb4 |
|
MD5 | 0950530f1d3ccff09fb89586985b45fa |
|
BLAKE2-256 | 6a5a97f5dd5663f7a6a7adc9eec2120cb09c9982b2f169e08f9e86863d91db31 |