comparison Sphinx/source/plugins/python.rst @ 1000:2e103fb1fa11

Orthanc 1.12.2
author Alain Mazy <am@osimis.io>
date Tue, 19 Dec 2023 17:54:15 +0100
parents 05b106383b2a
children ab270400aae1
comparison
equal deleted inserted replaced
998:bd7fbe3042f7 1000:2e103fb1fa11
16 instead of the more complex C/C++ programming languages. 16 instead of the more complex C/C++ programming languages.
17 17
18 Python plugins have access to more features and a more consistent SDK 18 Python plugins have access to more features and a more consistent SDK
19 than :ref:`Lua scripts <lua>`. The largest part of the Python API is 19 than :ref:`Lua scripts <lua>`. The largest part of the Python API is
20 automatically generated from the `Orthanc plugin SDK in C 20 automatically generated from the `Orthanc plugin SDK in C
21 <https://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.1/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h>`__ 21 <https://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.2/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h>`__
22 using the `Clang <https://en.wikipedia.org/wiki/Clang>`__ compiler 22 using the `Clang <https://en.wikipedia.org/wiki/Clang>`__ compiler
23 front-end. 23 front-end.
24 24
25 As of release 3.2 of the plugin, the coverage of the C SDK is about 25 As of release 3.2 of the plugin, the coverage of the C SDK is about
26 87% (138 functions are automatically wrapped in Python out of a total 26 87% (138 functions are automatically wrapped in Python out of a total
851 851
852 As can be seen in this sample: 852 As can be seen in this sample:
853 853
854 * The call to ``orthanc.ExtendOrthancExplorer()`` installs the button 854 * The call to ``orthanc.ExtendOrthancExplorer()`` installs the button
855 with JavaScript code that uses the `jQuery Mobile framework 855 with JavaScript code that uses the `jQuery Mobile framework
856 <https://demos.jquerymobile.com/1.1.0/>`__ (as of Orthanc 1.12.1, 856 <https://demos.jquerymobile.com/1.1.0/>`__ (as of Orthanc 1.12.2,
857 version 1.1.0 of jQuery Mobile is used in Orthanc Explorer). 857 version 1.1.0 of jQuery Mobile is used in Orthanc Explorer).
858 858
859 * If clicking on the button, a GET call to the REST API is made to 859 * If clicking on the button, a GET call to the REST API is made to
860 ``../execute-python``. The prefix ``../`` stems from the fact that 860 ``../execute-python``. The prefix ``../`` stems from the fact that
861 Orthanc Explorer is branched inside the ``app/`` folder of the REST 861 Orthanc Explorer is branched inside the ``app/`` folder of the REST