Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
orthanc_rest_client-0.3.0-py3-none-any.whl (5.6 kB) Copy SHA256 hash SHA256 Wheel py3
orthanc_rest_client-0.3.0.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page