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_studies() orthanc.get_study() ...and so on # Instances endpoints orthanc.get_instances() orthanc.get_instance(id) ...and so on # Get changes orthanc.changes() # Find objects by query orthanc.find(query) # Get previous queries orthanc.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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce1c3230d1fb490833fe593ac0aa7a5ccde40c9fb24436c75b447ecf3c189735 |
|
MD5 | 89611566e5b5837c9922ac7715a48a66 |
|
BLAKE2b-256 | 979038378f00374b7f151d805468f7f0cf4fd6f044bdf1d4f3b947cdb2e1916b |
Close
Hashes for orthanc_rest_client-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c2b34d8476018ab54e070d4e6b00ff9cff9ad31095397621fb929b1f89027af |
|
MD5 | 89fde28f966b93ff3d70d46dbb7baa34 |
|
BLAKE2b-256 | 2db509ad1d12e1a3a10f6defd3b4c38615f254c510562ed682232a5b0da3e35c |