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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f85c01d8b8124102f8f41ba248f99dd834f1ed4e93f26d1a292a3ff6506fb7b7 |
|
MD5 | 0b7df7fbcc4dbbd585e832965145f3e6 |
|
BLAKE2b-256 | 56bf8e1e686b8e9a2cf06efbb1734faab46a48a07f2ae9dde1f558117967c8e8 |
Close
Hashes for orthanc_rest_client-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de30e278c79c41ad1d546b3d7903f549d1726417123060b37919ff9336a658b |
|
MD5 | 93142fcb7acff2412c9a1167d57f2238 |
|
BLAKE2b-256 | e546d914d451cbd2e561f4e8f20f4dda52fe35009f8e72899cffb0a78b5c381b |