comparison Sphinx/source/plugins/python.rst @ 991:1316bc62b5d5

migration to UCLouvain servers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 21 Nov 2023 21:09:02 +0100
parents 46e2941b57dd
children 05b106383b2a
comparison
equal deleted inserted replaced
990:27b75c653a8b 991:1316bc62b5d5
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://hg.orthanc-server.com/orthanc/file/Orthanc-1.12.1/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h>`__ 21 <https://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.1/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
32 32
33 * Link to the `official releases of this plugin 33 * Link to the `official releases of this plugin
34 <https://www.orthanc-server.com/browse.php?path=/plugin-python>`__. 34 <https://www.orthanc-server.com/browse.php?path=/plugin-python>`__.
35 35
36 * Link to the `code repository 36 * Link to the `code repository
37 <https://hg.orthanc-server.com/orthanc-python/>`__. 37 <https://orthanc.uclouvain.be/hg/orthanc-python/>`__.
38 38
39 39
40 Licensing 40 Licensing
41 --------- 41 ---------
42 42
294 294
295 .. warning:: 295 .. warning::
296 In releases <= 3.0 of the Python plugin, deadlocks might emerge if 296 In releases <= 3.0 of the Python plugin, deadlocks might emerge if
297 you call other core primitives of Orthanc (such as the REST API) in 297 you call other core primitives of Orthanc (such as the REST API) in
298 your callback function. This issue has been `fixed in release 3.1 298 your callback function. This issue has been `fixed in release 3.1
299 <https://hg.orthanc-server.com/orthanc-python/rev/46fe70776d61>`__. 299 <https://orthanc.uclouvain.be/hg/orthanc-python/rev/46fe70776d61>`__.
300 300
301 As a **temporary workaround** against such deadlocks in releases <= 301 As a **temporary workaround** against such deadlocks in releases <=
302 3.0, if you have to call other primitives of Orthanc, you should make 302 3.0, if you have to call other primitives of Orthanc, you should make
303 these calls in a separate thread, passing the pending events to be 303 these calls in a separate thread, passing the pending events to be
304 processed through a message queue. Here is the template of a possible 304 processed through a message queue. Here is the template of a possible