Accessing and Retrieving dicom images from Orthanc using Python

Hi Everyone,
Can anyone give a suggestion how can i access and retrieve data from Orthanc using python . I have used Pynetdicom package but i am not able to access the Orthanc.

Regrads
V.Girish

Check out the sample Python scripts that are part of the Orthanc distribution:
https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/Python/

https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/ImportDicomFiles/ImportDicomFiles.py

Sébastien’s example scripts are indeed a very good starting place. I also eventually built a pythonic interface for orthanc that may be useful. It is shared as part of one of my github projects:

https://github.com/derekmerck/diana2/blob/master/package/diana/utils/gateways/requesters/orthanc.py

Of particular use to me at least is a Python implementation of the Orthanc “OID” generation algorithm, so you can figure out where Orthanc is going to store an object rather than searching for everything. And it also hides some of the complexity of running secondary queries to get answers to find requests.

Derek–