Python Orthanc REST API client
Project description
python-orthanc-api-client
A python client to ease using the Orthanc Rest API.
Functionalities are very limited now ! Backward compat will break a lot in the near future !
Installation:
pip3 install orthanc-api-client
Examples:
from orthanc_api_client import OrthancApiClient
orthanc_a = OrthancApiClient('http://localhost:8042', user='orthanc', pwd='orthanc')
orthanc_b = OrthancApiClient('http://localhost:8043', user='orthanc', pwd='orthanc')
all_patients_ids = orthanc_a.patients.get_all_ids()
all_studies_ids = orthanc_a.studies.get_all_ids()
all_series_ids = orthanc_a.series.get_all_ids()
all_instances_ids = orthanc_a.instances.get_all_ids()
dicom_file = orthanc_a.instances.get_file(instance_id=all_instances_ids[0])
instances_ids = orthanc_b.upload(buffer=dicom_file)
upload a folder to Orthanc
from orthanc_api_client import OrthancApiClient
o = OrthancApiClient('http://localhost:8042', user='orthanc', pwd='orthanc')
o.upload_folder('/home/o/files', ignore_errors=True)
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
orthanc_api_client-0.1.0.tar.gz
(12.3 kB
view details)
Built Distribution
File details
Details for the file orthanc_api_client-0.1.0.tar.gz
.
File metadata
- Download URL: orthanc_api_client-0.1.0.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf8e96845d0d26d9fd9794a44f858cdd3bc5219e3c85d04eee46501e8e0424c8 |
|
MD5 | fa92802b7a35eb7e7b2a7077fe14b728 |
|
BLAKE2b-256 | 67ada5d61d5e7e616da84f7ffb9a694a4fafce5d2dcc6f26eff6f6953e62bbb5 |
File details
Details for the file orthanc_api_client-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: orthanc_api_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9389783798c71cab68d86b87f48bef6efd2a8a06ccb73244d48b9579e2f167e |
|
MD5 | bebf87d646e1fe60cf14ae10928ecc51 |
|
BLAKE2b-256 | 0731fe9f3e06bf3bf2e40a60f4d1efb6d081d2cf939d86ffc03b90a3a4d20787 |