Skip to content

Releases: gacou54/pyorthanc

PyOrthanc 1.13.1

07 Nov 20:58
Compare
Choose a tag to compare

Fix:

  • orthanc_sdk
    • Fix autocomplete in some editor/IDE (e.g. fix the pycharm autocomplete)

PyOrthanc 1.13.0

18 Oct 13:27
Compare
Choose a tag to compare

Features:

  • Add a new submodule orthanc_sdk.
    • When used in an Orthanc Python script, it acts the same as import orthanc
    • When used outside Orthanc (i.e. when developing a script), expose the same signature as import orthanc
      • This adds autocomplete and linting
      • All methods/functions are mock (i.e. do nothing), which is useful when developing
      • Use it with from pyorthanc import orthanc_sdk

PyOrthanc 1.12.3

16 Oct 18:52
Compare
Choose a tag to compare

Fix:

  • Fix bug that occurs when Orthanc(return_raw_response=True) is used in functions/classes where returning a httpx.Response object is not possible.

PyOrthanc 1.12.2

14 Sep 13:15
Compare
Choose a tag to compare

Fix:

  • Fix bug where an error is raised at import pyorthanc when using Python 3.8

PyOrthanc 1.12.1

06 Sep 03:34
Compare
Choose a tag to compare

PyOrthanc 1.12.1 follows Orthanc version 1.12.1.

This release adds many utility functions and improves all resource levels.

  • The Orthanc client now supports all httpx.Client parameters (e.g. timeout, headers).
  • Add functions query Orthanc on all levels. Allow to filter on DICOM tags and Labels.
    • find_patients(), find_studies(), find_series() and `find_instances().
    • query_orthanc() for lower level query.
  • All resources (Patient, Study, Series and Instances) now have a self.lock attribute, that keeps the inner state of the resource after the first query.
  • Add Labels support to resources Patient, Study, Series and Instance.
  • Add metadata attributes to all resources
    • Patient/Study/Series.is_stable, Patient/Study/Series.last_update, Patient/Study/Series.protected
  • Implement all MainDicomTags resources attribute
  • Rename RemoteModality to Modality (and create an alias RemoteModality=Modality)
  • Add Patient/Study/Series.anonymize_as_job() for long anonymization jobs.
  • Add modification methods Patient/Study/Series/Instance.modify() and Patient/Study/Series.modify_as_job() for long modification jobs.

PyOrthanc 1.11.5

05 Mar 03:21
Compare
Choose a tag to compare

PyOrthanc v1.11.5 follow Orthanc version 1.11.3.

This release mostly improves the find() function. It now takes an Orthanc object rather than an URL. This allows better control of the configuration for the connection to the Orthanc server.

For example:

from pyorthanc import Orthanc, find

orthanc = Orthanc(url='http://localhost:8042/', username='username', password='password')
patients = find(
    orthanc=orthanc,
    series_filter=lambda s: s.modality == 'RTDOSE'  # Optional: filter with pyorthanc.Series object
)

PyOrthanc 1.11.4

28 Dec 22:12
Compare
Choose a tag to compare

Adds a way to retrieve the pydicom.FileDataset from the Instance object or with the instance identifier in the Orthanc server.

from pyorthanc import Orthanc, util, Instance

INSTANCE_ID = 'the-orthanc-instance-id'

client = pyorthanc.Orthanc(url='my_url')

pydicom_ds = util.get_pydicom(client, INSTANCE_ID)
# or from an Instance object
instance = Instance(client=client, instance_id=INSTANCE_ID)
pydicom_ds = instance.get_pydicom()

Adds the possibility to provide a custom header to the Orthanc and AsyncOrthanc clients. The header will be used in every method call.

from pyorthanc import Orthanc

client = Orthanc(url='my_url', headers={'new_header_tag': 'header_content'})

PyOrthanc 1.11.1

14 Sep 15:42
Compare
Choose a tag to compare

PyOrthanc has been rewritten almost entirely from 0.2.16.

The new Orthanc client is now automatically generated from https://api.orthanc-server.com/. The version *.*. of PyOrthanc will follow Orthanc version (e.g. PyOrthanc 1.11.* is generated from the API specification of Orthanc 1.11.*).

This means that the method names of the Orthanc object from PyOrthanc 0.2.* are no longer the same.

Changes :

  • Orthanc
  • Patient/Study/Series/Instance
    • Improving method/attribute naming (e.g. patient.get_name() is now patient.name)
    • More options when anonymizing
  • find
    • Adding find() function when searching data on Orthanc with filter.
  • RemoteModality
    • Fixing some bugs when .move()
  • Beta : adding AsyncOrthanc
    • Async orthanc client support (needs more testing)
  • Adding automatic testing (with docker-compose) for a better dev/testing experience

PyOrthanc 0.2.16

14 Sep 15:22
Compare
Choose a tag to compare
v0.2.16

Pulling HEAD