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.4.0.post1.tar.gz
(233.8 kB
view details)
Built Distribution
File details
Details for the file ambra-sdk-3.22.4.0.post1.tar.gz
.
File metadata
- Download URL: ambra-sdk-3.22.4.0.post1.tar.gz
- Upload date:
- Size: 233.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.6.8 Linux/3.10.0-1062.12.1.el7.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7bc7aeb2346b113cc135fe175373ca169674c394dbb4eea409a6a56138de534 |
|
MD5 | c7c821a954d358cbc72249d8e3c0651b |
|
BLAKE2b-256 | 5553cc2546f696e1df1fc13826123609fc419a2d1af52eb1685f9b05660e172d |
File details
Details for the file ambra_sdk-3.22.4.0.post1-py3-none-any.whl
.
File metadata
- Download URL: ambra_sdk-3.22.4.0.post1-py3-none-any.whl
- Upload date:
- Size: 312.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.6.8 Linux/3.10.0-1062.12.1.el7.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e96a7155f8352745ebe3f1aed4fabf5ed0da3284b9d7375fd8d1d72fe493aec0 |
|
MD5 | 95ce4177e40462bdc8ec585bfe3e53eb |
|
BLAKE2b-256 | f7d6d18657dcc29fb2daeaaa80059e9870c61fc8f8f25d9c434a622eda2292a9 |