REST client for Orthanc DICOM servers
Project description
Provides a REST client targeted at Orthanc REST API endpoints.
Based on the excellent apiron library.
Install
pip install orthanc-rest-client
How to use
Import the pre-defined client and pass the server details
from orthanc_rest_client import Orthanc orthanc = Orthanc('http://localhost:8042') # Patient endpoints orthanc.get_patients() orthanc.get_patient(id) ...and so on # Study endpoints orthanc.get_studies() orthanc.get_study(id) ...and so on # Series endpoints orthanc.get_series() orthanc.get_one_series(id) ...and so on # Instance endpoints orthanc.get_instances() orthanc.get_instance(id) ...and so on # Get changes orthanc.get_changes() # Find objects by query orthanc.find(query) # Get previous queries orthanc.get_queries()
There are other preconfigured endpoints.
Authenticated Endpoints
Pass valid auth object:
from requests.auth import HTTPBasicAuth auth = HTTPBasicAuth('orthanc', 'orthanc') orthanc = Orthanc('https://test.server.com', auth=auth)
Then call functions normally (the auth object is passed automatically).
For further help: - apiron - Orthanc documentation and Orthanc REST API
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
Built Distribution
Close
Hashes for orthanc_rest_client-0.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b325eff023053346da3c677ef89432bb34254f5895ef415118bcc15b8d22d8a |
|
MD5 | 26f3d14c786cbfbeadd6a6ebba80fb86 |
|
BLAKE2b-256 | 0aa5291ee98aa7e45deccd0dc2a5c5711c94411021d7abbdaf015995f4ee0cd4 |
Close
Hashes for orthanc_rest_client-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36732792b3f0ad2384fe678c7ade48c01453482d175786aa62d2e9d1f67de34f |
|
MD5 | bb528a3ec9ea6d063799e908e6149de5 |
|
BLAKE2b-256 | 41e6b6711ad29d23cfca4125798105057517a97d4ccb889fdad97c79ad98376f |