comparison Sphinx/source/plugins/python.rst @ 973:2d817288cad4

added python storage commitment
author Alain Mazy <am@osimis.io>
date Mon, 28 Aug 2023 18:45:57 +0200
parents a6bf749b3c04
children eb49a4ad8fbc
comparison
equal deleted inserted replaced
972:e72f8d52d94b 973:2d817288cad4
640 is especially useful to easily create a bridge between Orthanc, 640 is especially useful to easily create a bridge between Orthanc,
641 HL7/FHIR messages and RIS systems. Indeed, Python provides many tools 641 HL7/FHIR messages and RIS systems. Indeed, Python provides many tools
642 to handle HL7 such as `python-hl7 library 642 to handle HL7 such as `python-hl7 library
643 <https://python-hl7.readthedocs.io/en/latest/>`__. 643 <https://python-hl7.readthedocs.io/en/latest/>`__.
644 644
645 The following Python script reproduces features similar to the 645 The following Python script reproduces features similar to the
646 :ref:`sample modality worklists plugin <worklists-plugin>`: 646 :ref:`sample modality worklists plugin <worklists-plugin>`:
647 647
648 .. literalinclude:: python/worklist.py 648 .. literalinclude:: python/worklist.py
649 :language: python 649 :language: python
650 650
798 798
799 .. literalinclude:: python/incoming-cstore-filter.py 799 .. literalinclude:: python/incoming-cstore-filter.py
800 :language: python 800 :language: python
801 801
802 802
803 Storage Commitment SCP (new in 4.1)
804 ...................................
805
806 Starting with release 4.1 of the Python plugin, it is possible to
807 provide your own implementation of the :ref:`Storage Commitment <storage-commitment>`.
808
809 This can be used, e.g, to check that you have backup the orthanc data in a
810 long term storage.
811
812 .. literalinclude:: python/storage-commitment-default.py
813 :language: python
814
815
803 Performance and concurrency 816 Performance and concurrency
804 --------------------------- 817 ---------------------------
805 818
806 **Important:** This section only applies to UNIX-like systems. The 819 **Important:** This section only applies to UNIX-like systems. The
807 ``multiprocessing`` package will not work on Microsoft Windows as the 820 ``multiprocessing`` package will not work on Microsoft Windows as the