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 Request auth objects:
from requests.auth import HTTPBasicAuth orthanc.reset(auth=HTTPBasicAuth('orthanc', 'orthanc'))
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.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1486d5d819bf3c091713357628be8b3908fefce34b8cb0e6653719e97bc7617d |
|
MD5 | e5cb64240a1c9fd6a14d90d0b935f8b0 |
|
BLAKE2b-256 | 38ba7ab012b60f1ae457dc12684dbe04d61c8571bbae42c04b17545e5e971be2 |
Close
Hashes for orthanc_rest_client-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c7725e46dfb3d32587f57ae5e6a76f2ee011873908ef648ca6392f1fcb52277 |
|
MD5 | 7aa09b83aa5329dbdf9a32a4a927aba7 |
|
BLAKE2b-256 | 41fb774dd9885c41f6f90f333ed99304be978ff3ea459a99ceda4a2bdd5489c7 |