Metadata-Version: 2.1
Name: orthanc_api_client
Version: 0.0.6
Summary: Python Orthanc REST API client
Home-page: https://github.com/amazy/python-orthanc-api-client
Author: Alain Mazy
Author-email: alain@mazy.be
License: UNKNOWN
Project-URL: Bug Reports, https://github.com/amazy/python-orthanc-api-client/issues
Project-URL: Funding, https://mazy.be/orthanc
Project-URL: Source, https://github.com/amazy/python-orthanc-api-client/
Keywords: orthanc,dicom,rest api
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.8, <4
Description-Content-Type: text/markdown
Provides-Extra: dev
Provides-Extra: test
License-File: LICENSE.txt

# 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(buffer=dicom_file)

```

