ambra-sdk-3.22.4.0.post1
توضیحات
Ambrahealth python SDK
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ambra-sdk-3.22.4.0.post1 |
| نام | ambra-sdk |
| نسخه کتابخانه | 3.22.4.0.post1 |
| نگهدارنده | ['Alexander Kapustin'] |
| ایمیل نگهدارنده | ['akapustin@ambrahealth.com'] |
| نویسنده | Ambrahealth AI team |
| ایمیل نویسنده | python-sdk@ambrahealth.com |
| آدرس صفحه اصلی | https://github.com/dicomgrid/sdk-python |
| آدرس اینترنتی | https://pypi.org/project/ambra-sdk/ |
| مجوز | Apache-2.0 |
# Ambra-SDK
[](https://opensource.org/licenses/Apache-2.0)
[](https://badge.fury.io/py/ambra-sdk)
---
Welcome to ambra-sdk library for intract with ambrahealth service and storage api.
## Quickstart
```bash
pip install ambra-sdk
```
## Running
```python
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
نیازمندی
| مقدار | نام |
|---|---|
| >=2.24.0,<3.0.0 | requests |
| >=3.6.2,<4.0.0 | aiohttp |
| >=5.1.1,<6.0.0 | python-box |
| >=2.0.0,<3.0.0 | pydicom |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl ambra-sdk-3.22.4.0.post1:
pip install ambra-sdk-3.22.4.0.post1.whl
نصب پکیج tar.gz ambra-sdk-3.22.4.0.post1:
pip install ambra-sdk-3.22.4.0.post1.tar.gz