Releases: gacou54/pyorthanc
PyOrthanc 1.13.1
Fix:
- orthanc_sdk
- Fix autocomplete in some editor/IDE (e.g. fix the pycharm autocomplete)
PyOrthanc 1.13.0
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
- When used in an Orthanc Python script, it acts the same as
PyOrthanc 1.12.3
Fix:
- Fix bug that occurs when
Orthanc(return_raw_response=True)
is used in functions/classes where returning ahttpx.Response
object is not possible.
PyOrthanc 1.12.2
Fix:
- Fix bug where an error is raised at
import pyorthanc
when using Python 3.8
PyOrthanc 1.12.1
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 allhttpx.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
andInstances
) now have aself.lock
attribute, that keeps the inner state of the resource after the first query. - Add Labels support to resources
Patient
,Study
,Series
andInstance
. - 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
toModality
(and create an aliasRemoteModality=Modality
) - Add
Patient/Study/Series.anonymize_as_job()
for long anonymization jobs. - Add modification methods
Patient/Study/Series/Instance.modify()
andPatient/Study/Series.modify_as_job()
for long modification jobs.
PyOrthanc 1.11.5
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
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
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
- New generated client from https://api.orthanc-server.com/.
- Old client is accessible at
from pyorthanc.deprecated.client import Orthanc
Patient
/Study
/Series
/Instance
- Improving method/attribute naming (e.g.
patient.get_name()
is nowpatient.name
) - More options when anonymizing
- Improving method/attribute naming (e.g.
find
- Adding
find()
function when searching data on Orthanc with filter.
- Adding
RemoteModality
- Fixing some bugs when
.move()
- Fixing some bugs when
- 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
v0.2.16 Pulling HEAD