Skip to main content

Python Orthanc REST API client

Project description

python-orthanc-api-client

A python client to ease using the Orthanc Rest API.

Functionalities are very limited now ! Backward compat will break a lot in the near future !

Examples:

from orthanc_api_client import OrthancApiClient

orthanc_a = OrthancApiClient('http://localhost:8042', user='orthanc', pwd='orthanc')
orthanc_b = OrthancApiClient('http://localhost:8043', user='orthanc', pwd='orthanc')

all_patients_ids = orthanc_a.patients.get_all_ids()
all_studies_ids = orthanc_a.studies.get_all_ids()
all_series_ids = orthanc_a.series.get_all_ids()
all_instances_ids = orthanc_a.instances.get_all_ids()

dicom_file = orthanc_a.instances.get_file(instance_id=all_instances_ids[0])

response = orthanc_b.upload_dicom(dicom=dicom_file)

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

orthanc_api_client-0.0.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

orthanc_api_client-0.0.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file orthanc_api_client-0.0.1.tar.gz.

File metadata

  • Download URL: orthanc_api_client-0.0.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for orthanc_api_client-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1afcc65dbf85043013f8b1deabc5f60278f16cb5ae4cc864db0cb890ec28acb3
MD5 3b1d701b8fa1e8bb444223c1d7e8d20f
BLAKE2b-256 2bca76fdc6480dd35bb38eb883e92a096fb6a7ac9c92a99b3480b578e6ae276f

See more details on using hashes here.

File details

Details for the file orthanc_api_client-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: orthanc_api_client-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for orthanc_api_client-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1be64ad536e48ff113792dd44220e5990d2a63366e2d97bfc88cafdb99474124
MD5 9ef3d36a2b02b37fe5efb00094df0324
BLAKE2b-256 178cefdc555c675ca64a8505d8160e8b71a2497ca14f6f9808aef3558b6f2960

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