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.

Source Distribution

orthanc_rest_client-0.3.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

orthanc_rest_client-0.3.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file orthanc_rest_client-0.3.0.tar.gz.

File metadata

  • Download URL: orthanc_rest_client-0.3.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for orthanc_rest_client-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ce1c3230d1fb490833fe593ac0aa7a5ccde40c9fb24436c75b447ecf3c189735
MD5 89611566e5b5837c9922ac7715a48a66
BLAKE2b-256 979038378f00374b7f151d805468f7f0cf4fd6f044bdf1d4f3b947cdb2e1916b

See more details on using hashes here.

File details

Details for the file orthanc_rest_client-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: orthanc_rest_client-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for orthanc_rest_client-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c2b34d8476018ab54e070d4e6b00ff9cff9ad31095397621fb929b1f89027af
MD5 89fde28f966b93ff3d70d46dbb7baa34
BLAKE2b-256 2db509ad1d12e1a3a10f6defd3b4c38615f254c510562ed682232a5b0da3e35c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page