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).
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.20.6.0.post2.tar.gz
(132.8 kB
view details)
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 ambra-sdk-3.20.6.0.post2.tar.gz.
File metadata
- Download URL: ambra-sdk-3.20.6.0.post2.tar.gz
- Upload date:
- Size: 132.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/2.7.5 Linux/3.10.0-957.1.3.el7.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f00f9bba73d13fdc3ef3479635988ac15abb959e86918df22171d0f602c9c542
|
|
| MD5 |
390acf13e4c86d3588445380b35cc8a3
|
|
| BLAKE2b-256 |
13a4dce3e3c74e2cb5aa16bbe97c63ade77c6812b218a25d18c5f903d4a1fb50
|
File details
Details for the file ambra_sdk-3.20.6.0.post2-py3-none-any.whl.
File metadata
- Download URL: ambra_sdk-3.20.6.0.post2-py3-none-any.whl
- Upload date:
- Size: 186.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/2.7.5 Linux/3.10.0-957.1.3.el7.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc8cb1207b72840b34b5f89de81c9c5c805b12b27d0ca2cf57a49a3a62c884c1
|
|
| MD5 |
a0b4692c19cd65409a45c1c9c1d66dad
|
|
| BLAKE2b-256 |
add8cdcb0178e57d323eeb96aec2ed3f14f4e7fbcc0e27526e2b6953c35b5f91
|