iris-pex-embedded-python 3.2.1b2__tar.gz → 3.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of iris-pex-embedded-python might be problematic. Click here for more details.

Files changed (152) hide show
  1. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/PKG-INFO +1 -1
  2. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/pyproject.toml +1 -1
  3. iris_pex_embedded_python-3.3.0/src/iop/_async_request.py +62 -0
  4. iris_pex_embedded_python-3.3.0/src/iop/_business_host.py +222 -0
  5. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_business_operation.py +6 -4
  6. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_business_process.py +12 -10
  7. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_business_service.py +3 -2
  8. iris_pex_embedded_python-3.3.0/src/iop/_cli.py +198 -0
  9. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_common.py +15 -80
  10. iris_pex_embedded_python-3.3.0/src/iop/_decorators.py +48 -0
  11. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_director.py +4 -3
  12. iris_pex_embedded_python-3.3.0/src/iop/_dispatch.py +219 -0
  13. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_log_manager.py +20 -12
  14. iris_pex_embedded_python-3.3.0/src/iop/_message_validator.py +41 -0
  15. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_private_session_duplex.py +11 -10
  16. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_private_session_process.py +7 -7
  17. iris_pex_embedded_python-3.3.0/src/iop/_serialization.py +196 -0
  18. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_utils.py +27 -19
  19. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/Common.cls +6 -1
  20. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/Message.cls +1 -0
  21. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iris_pex_embedded_python.egg-info/PKG-INFO +1 -1
  22. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iris_pex_embedded_python.egg-info/SOURCES.txt +5 -0
  23. iris_pex_embedded_python-3.2.1b2/src/iop/_business_host.py +0 -675
  24. iris_pex_embedded_python-3.2.1b2/src/iop/_cli.py +0 -141
  25. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/LICENSE +0 -0
  26. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/README.md +0 -0
  27. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/setup.cfg +0 -0
  28. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/setup.py +0 -0
  29. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/__init__.py +0 -0
  30. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/BusinessOperation.cls +0 -0
  31. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/BusinessProcess.cls +0 -0
  32. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/BusinessService.cls +0 -0
  33. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/Common.cls +0 -0
  34. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/Director.cls +0 -0
  35. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/Duplex/Operation.cls +0 -0
  36. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/Duplex/Process.cls +0 -0
  37. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/Duplex/Service.cls +0 -0
  38. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/InboundAdapter.cls +0 -0
  39. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/Message.cls +0 -0
  40. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/OutboundAdapter.cls +0 -0
  41. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/PickleMessage.cls +0 -0
  42. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/PrivateSession/Duplex.cls +0 -0
  43. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/PrivateSession/Message/Ack.cls +0 -0
  44. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/PrivateSession/Message/Poll.cls +0 -0
  45. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/PrivateSession/Message/Start.cls +0 -0
  46. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/PrivateSession/Message/Stop.cls +0 -0
  47. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/Test.cls +0 -0
  48. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/PEX/Utils.cls +0 -0
  49. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/cls/Grongier/Service/WSGI.cls +0 -0
  50. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/pex/__init__.py +0 -0
  51. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/pex/__main__.py +0 -0
  52. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/pex/_business_host.py +0 -0
  53. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/pex/_cli.py +0 -0
  54. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/pex/_common.py +0 -0
  55. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/pex/_director.py +0 -0
  56. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/pex/_utils.py +0 -0
  57. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/grongier/pex/wsgi/handlers.py +0 -0
  58. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_BufferReader.py +0 -0
  59. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_BufferWriter.py +0 -0
  60. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_ConnectionInformation.py +0 -0
  61. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_ConnectionParameters.py +0 -0
  62. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_Constant.py +0 -0
  63. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_DBList.py +0 -0
  64. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_Device.py +0 -0
  65. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_GatewayContext.py +0 -0
  66. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_GatewayException.py +0 -0
  67. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_GatewayUtility.py +0 -0
  68. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_IRIS.py +0 -0
  69. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_IRISConnection.py +0 -0
  70. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_IRISEmbedded.py +0 -0
  71. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_IRISGlobalNode.py +0 -0
  72. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_IRISGlobalNodeView.py +0 -0
  73. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_IRISIterator.py +0 -0
  74. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_IRISList.py +0 -0
  75. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_IRISNative.py +0 -0
  76. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_IRISOREF.py +0 -0
  77. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_IRISObject.py +0 -0
  78. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_IRISReference.py +0 -0
  79. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_InStream.py +0 -0
  80. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_LegacyIterator.py +0 -0
  81. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_ListItem.py +0 -0
  82. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_ListReader.py +0 -0
  83. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_ListWriter.py +0 -0
  84. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_LogFileStream.py +0 -0
  85. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_MessageHeader.py +0 -0
  86. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_OutStream.py +0 -0
  87. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_PrintStream.py +0 -0
  88. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_PythonGateway.py +0 -0
  89. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/_SharedMemorySocket.py +0 -0
  90. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/__init__.py +0 -0
  91. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/__main__.py +0 -0
  92. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/_Column.py +0 -0
  93. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/_DBAPI.py +0 -0
  94. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/_Descriptor.py +0 -0
  95. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/_IRISStream.py +0 -0
  96. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/_Message.py +0 -0
  97. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/_Parameter.py +0 -0
  98. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/_ParameterCollection.py +0 -0
  99. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/_ResultSetRow.py +0 -0
  100. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/_SQLType.py +0 -0
  101. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/__init__.py +0 -0
  102. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/preparser/_PreParser.py +0 -0
  103. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/preparser/_Scanner.py +0 -0
  104. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/preparser/_Token.py +0 -0
  105. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/preparser/_TokenList.py +0 -0
  106. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/dbapi/preparser/__init__.py +0 -0
  107. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_BusinessHost.py +0 -0
  108. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_BusinessOperation.py +0 -0
  109. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_BusinessProcess.py +0 -0
  110. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_BusinessService.py +0 -0
  111. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_Common.py +0 -0
  112. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_Director.py +0 -0
  113. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_IRISBusinessOperation.py +0 -0
  114. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_IRISBusinessService.py +0 -0
  115. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_IRISInboundAdapter.py +0 -0
  116. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_IRISOutboundAdapter.py +0 -0
  117. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_InboundAdapter.py +0 -0
  118. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_Message.py +0 -0
  119. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/_OutboundAdapter.py +0 -0
  120. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/intersystems_iris/pex/__init__.py +0 -0
  121. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/__init__.py +0 -0
  122. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/__main__.py +0 -0
  123. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_inbound_adapter.py +0 -0
  124. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_message.py +0 -0
  125. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_outbound_adapter.py +0 -0
  126. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/_pickle_message.py +0 -0
  127. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/BusinessOperation.cls +0 -0
  128. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/BusinessProcess.cls +0 -0
  129. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/BusinessService.cls +0 -0
  130. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/Director.cls +0 -0
  131. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/Duplex/Operation.cls +0 -0
  132. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/Duplex/Process.cls +0 -0
  133. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/Duplex/Service.cls +0 -0
  134. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/InboundAdapter.cls +0 -0
  135. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/Message/JSONSchema.cls +0 -0
  136. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/OutboundAdapter.cls +0 -0
  137. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/PickleMessage.cls +0 -0
  138. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/PrivateSession/Duplex.cls +0 -0
  139. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/PrivateSession/Message/Ack.cls +0 -0
  140. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/PrivateSession/Message/Poll.cls +0 -0
  141. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/PrivateSession/Message/Start.cls +0 -0
  142. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/PrivateSession/Message/Stop.cls +0 -0
  143. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/Service/WSGI.cls +0 -0
  144. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/Test.cls +0 -0
  145. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/cls/IOP/Utils.cls +0 -0
  146. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iop/wsgi/handlers.py +0 -0
  147. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iris_pex_embedded_python.egg-info/dependency_links.txt +0 -0
  148. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iris_pex_embedded_python.egg-info/entry_points.txt +0 -0
  149. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iris_pex_embedded_python.egg-info/requires.txt +0 -0
  150. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/iris_pex_embedded_python.egg-info/top_level.txt +0 -0
  151. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/irisnative/_IRISNative.py +0 -0
  152. {iris_pex_embedded_python-3.2.1b2 → iris_pex_embedded_python-3.3.0}/src/irisnative/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: iris_pex_embedded_python
3
- Version: 3.2.1b2
3
+ Version: 3.3.0
4
4
  Summary: Iris Interoperability based on Embedded Python
5
5
  Author-email: grongier <guillaume.rongier@intersystems.com>
6
6
  License: MIT License
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"]
3
3
 
4
4
  [project]
5
5
  name = "iris_pex_embedded_python"
6
- version = "3.2.1b2"
6
+ version = "3.3.0"
7
7
  description = "Iris Interoperability based on Embedded Python"
8
8
  readme = "README.md"
9
9
  authors = [
@@ -0,0 +1,62 @@
1
+ import asyncio
2
+ import iris
3
+ from typing import Any, Optional, Union
4
+ from iop._dispatch import dispatch_deserializer, dispatch_serializer
5
+ from iop._message import _Message as Message
6
+
7
+ class AsyncRequest(asyncio.Future):
8
+ _message_header_id: int = 0
9
+ _queue_name: str = ""
10
+ _end_time: int = 0
11
+ _response: Any = None
12
+ _done: bool = False
13
+
14
+ def __init__(self, target: str, request: Union[Message, Any],
15
+ timeout: int = -1, description: Optional[str] = None, host: Optional[Any] = None) -> None:
16
+ super().__init__()
17
+ self.target = target
18
+ self.request = request
19
+ self.timeout = timeout
20
+ self.description = description
21
+ self.host = host
22
+ self._iris_handle = host.iris_handle
23
+ asyncio.create_task(self.send())
24
+
25
+ async def send(self) -> None:
26
+ # init parameters
27
+ message_header_id = iris.ref()
28
+ queue_name = iris.ref()
29
+ end_time = iris.ref()
30
+ request = dispatch_serializer(self.request)
31
+
32
+ # send request
33
+ self._iris_handle.dispatchSendRequestAsyncNG(
34
+ self.target, request, self.timeout, self.description,
35
+ message_header_id, queue_name, end_time)
36
+
37
+ # get byref values
38
+ self._message_header_id = message_header_id.value
39
+ self._queue_name = queue_name.value
40
+ self._end_time = end_time.value
41
+
42
+ while not self._done:
43
+ await asyncio.sleep(0.1)
44
+ self.is_done()
45
+
46
+ self.set_result(self._response)
47
+
48
+ def is_done(self) -> None:
49
+ response = iris.ref()
50
+ status = self._iris_handle.dispatchIsRequestDone(self.timeout, self._end_time,
51
+ self._queue_name, self._message_header_id,
52
+ response)
53
+
54
+ self._response = dispatch_deserializer(response.value)
55
+
56
+ if status == 2: # message found
57
+ self._done = True
58
+ elif status == 1: # message not found
59
+ pass
60
+ else:
61
+ self._done = True
62
+ self.set_exception(RuntimeError(iris.system.Status.GetOneStatusText(status)))
@@ -0,0 +1,222 @@
1
+ from inspect import getsource
2
+ from typing import Any,List, Optional, Tuple, Union
3
+
4
+ import iris
5
+
6
+ from iop._common import _Common
7
+ from iop._message import _Message as Message
8
+ from iop._decorators import input_serializer_param, output_deserializer
9
+ from iop._dispatch import dispatch_serializer, dispatch_deserializer
10
+ from iop._async_request import AsyncRequest
11
+
12
+ class _BusinessHost(_Common):
13
+ """Base class for business components that defines common methods.
14
+
15
+ This is a superclass for BusinessService, BusinessProcess, and BusinessOperation that
16
+ defines common functionality like message serialization/deserialization and request handling.
17
+ """
18
+
19
+ buffer: int = 64000
20
+ DISPATCH: List[Tuple[str, str]] = []
21
+
22
+ @input_serializer_param(1, 'request')
23
+ @output_deserializer
24
+ def send_request_sync(self, target: str, request: Union[Message, Any],
25
+ timeout: int = -1, description: Optional[str] = None) -> Any:
26
+ """Send message synchronously to target component.
27
+
28
+ Args:
29
+ target: Name of target component
30
+ request: Message to send
31
+ timeout: Timeout in seconds, -1 means wait forever
32
+ description: Optional description for logging
33
+
34
+ Returns:
35
+ Response from target component
36
+
37
+ Raises:
38
+ TypeError: If request is invalid type
39
+ """
40
+ return self.iris_handle.dispatchSendRequestSync(target, request, timeout, description)
41
+
42
+ @input_serializer_param(1, 'request')
43
+ def send_request_async(self, target: str, request: Union[Message, Any],
44
+ description: Optional[str] = None) -> None:
45
+ """Send message asynchronously to target component.
46
+
47
+ Args:
48
+ target: Name of target component
49
+ request: Message to send
50
+ description: Optional description for logging
51
+
52
+ Raises:
53
+ TypeError: If request is invalid type
54
+ """
55
+ return self.iris_handle.dispatchSendRequestAsync(target, request, description)
56
+
57
+ async def send_request_async_ng(self, target: str, request: Union[Message, Any],
58
+ timeout: int = -1, description: Optional[str] = None) -> Any:
59
+ """Send message asynchronously to target component with asyncio.
60
+
61
+ Args:
62
+ target: Name of target component
63
+ request: Message to send
64
+ timeout: Timeout in seconds, -1 means wait forever
65
+ description: Optional description for logging
66
+
67
+ Returns:
68
+ Response from target component
69
+ """
70
+ return await AsyncRequest(target, request, timeout, description, self)
71
+
72
+ def send_multi_request_sync(self, target_request: List[Tuple[str, Union[Message, Any]]],
73
+ timeout: int = -1, description: Optional[str] = None) -> List[Tuple[str, Union[Message, Any], Any, int]]:
74
+ """Send multiple messages synchronously to target components.
75
+
76
+ Args:
77
+ target_request: List of tuples (target, request) to send
78
+ timeout: Timeout in seconds, -1 means wait forever
79
+ description: Optional description for logging
80
+
81
+ Returns:
82
+ List of tuples (target, request, response, status)
83
+
84
+ Raises:
85
+ TypeError: If target_request is not a list of tuples
86
+ ValueError: If target_request is empty
87
+ """
88
+ self._validate_target_request(target_request)
89
+
90
+ call_list = [self._create_call_structure(target, request)
91
+ for target, request in target_request]
92
+
93
+ response_list = self.iris_handle.dispatchSendRequestSyncMultiple(call_list, timeout)
94
+
95
+ return [(target_request[i][0],
96
+ target_request[i][1],
97
+ dispatch_deserializer(response_list[i].Response),
98
+ response_list[i].ResponseCode)
99
+ for i in range(len(target_request))]
100
+
101
+ def _validate_target_request(self, target_request: List[Tuple[str, Union[Message, Any]]]) -> None:
102
+ """Validate the target_request parameter structure."""
103
+ if not isinstance(target_request, list):
104
+ raise TypeError("target_request must be a list")
105
+ if not target_request:
106
+ raise ValueError("target_request must not be empty")
107
+ if not all(isinstance(item, tuple) and len(item) == 2 for item in target_request):
108
+ raise TypeError("target_request must contain tuples of (target, request)")
109
+
110
+ def _create_call_structure(self, target: str, request: Union[Message, Any]) -> Any:
111
+ """Create an Ens.CallStructure object for the request."""
112
+ call = iris.cls("Ens.CallStructure")._New()
113
+ call.TargetDispatchName = target
114
+ call.Request = dispatch_serializer(request)
115
+ return call
116
+
117
+ @staticmethod
118
+ def OnGetConnections() -> Optional[List[str]]:
119
+ """The OnGetConnections() method returns all of the targets of any SendRequestSync or SendRequestAsync
120
+ calls for the class. Implement this method to allow connections between components to show up in
121
+ the interoperability UI.
122
+
123
+ Returns:
124
+ An IRISList containing all targets for this class. Default is None.
125
+ """
126
+ return None
127
+
128
+ def SendRequestSync(self, target: str, request: Union[Message, Any],
129
+ timeout: int = -1, description: Optional[str] = None) -> Any:
130
+ """DEPRECATED: use send_request_sync.
131
+
132
+ Args:
133
+ target: The target of the request
134
+ request: The request to send
135
+ timeout: The timeout in seconds, -1 means wait forever
136
+ description: A string that describes the request
137
+
138
+ Returns:
139
+ The response from the target component
140
+ """
141
+ return self.send_request_sync(target, request, timeout, description)
142
+
143
+ def SendRequestAsync(self, target: str, request: Union[Message, Any],
144
+ description: Optional[str] = None) -> None:
145
+ """DEPRECATED: use send_request_async.
146
+
147
+ Args:
148
+ target: The target of the request
149
+ request: The request to send
150
+ description: A string that describes the request
151
+ """
152
+ return self.send_request_async(target, request, description)
153
+
154
+ @staticmethod
155
+ def getAdapterType() -> Optional[str]:
156
+ """DEPRECATED: use get_adapter_type.
157
+
158
+ Returns:
159
+ Name of the registered Adapter
160
+ """
161
+ return
162
+
163
+ @staticmethod
164
+ def get_adapter_type() -> Optional[str]:
165
+ """Returns the name of the registered Adapter.
166
+
167
+ Returns:
168
+ Name of the registered Adapter
169
+ """
170
+ return
171
+
172
+ def on_get_connections(self) -> List[str]:
173
+ """The OnGetConnections() method returns all of the targets of any SendRequestSync or SendRequestAsync
174
+ calls for the class. Implement this method to allow connections between components to show up in
175
+ the interoperability UI.
176
+
177
+ Returns:
178
+ A list containing all targets for this class.
179
+ """
180
+ ## Parse the class code to find all invocations of send_request_sync and send_request_async
181
+ ## and return the targets
182
+ targer_list = []
183
+ # get the source code of the class
184
+ source = getsource(self.__class__)
185
+ # find all invocations of send_request_sync and send_request_async
186
+ for method in ['send_request_sync', 'send_request_async', 'SendRequestSync', 'SendRequestAsync']:
187
+ i = source.find(method)
188
+ while i != -1:
189
+ j = source.find("(", i)
190
+ if j != -1:
191
+ k = source.find(",", j)
192
+ if k != -1:
193
+ target = source[j+1:k]
194
+ if target.find("=") != -1:
195
+ # it's a keyword argument, remove the keyword
196
+ target = target[target.find("=")+1:].strip()
197
+ if target not in targer_list:
198
+ targer_list.append(target)
199
+ i = source.find(method, i+1)
200
+
201
+ for target in targer_list:
202
+ # if target is a string, remove the quotes
203
+ if target[0] == "'" and target[-1] == "'":
204
+ targer_list[targer_list.index(target)] = target[1:-1]
205
+ elif target[0] == '"' and target[-1] == '"':
206
+ targer_list[targer_list.index(target)] = target[1:-1]
207
+ # if target is a variable, try to find the value of the variable
208
+ else:
209
+ self.on_init()
210
+ try:
211
+ if target.find("self.") != -1:
212
+ # it's a class variable
213
+ targer_list[targer_list.index(target)] = getattr(self, target[target.find(".")+1:])
214
+ elif target.find(".") != -1:
215
+ # it's a class variable
216
+ targer_list[targer_list.index(target)] = getattr(getattr(self, target[:target.find(".")]), target[target.find(".")+1:])
217
+ else:
218
+ targer_list[targer_list.index(target)] = getattr(self, target)
219
+ except Exception as e:
220
+ pass
221
+
222
+ return targer_list
@@ -1,6 +1,8 @@
1
1
  import importlib
2
2
  from typing import Any, List, Optional, Union, Tuple
3
3
  from iop._business_host import _BusinessHost
4
+ from iop._decorators import input_deserializer, output_serializer, input_serializer, output_deserializer
5
+ from iop._dispatch import create_dispatch, dispach_message
4
6
 
5
7
  class _BusinessOperation(_BusinessHost):
6
8
  """Business operation component that handles outbound communication.
@@ -45,15 +47,15 @@ class _BusinessOperation(_BusinessHost):
45
47
 
46
48
  def _dispatch_on_init(self, host_object: Any) -> None:
47
49
  """For internal use only."""
48
- self._create_dispatch()
50
+ create_dispatch(self)
49
51
  self.on_init()
50
52
  return
51
53
 
52
- @_BusinessHost.input_deserialzer
53
- @_BusinessHost.output_serialzer
54
+ @input_deserializer
55
+ @output_serializer
54
56
  def _dispatch_on_message(self, request: Any) -> Any:
55
57
  """For internal use only."""
56
- return self._dispach_message(request)
58
+ return dispach_message(self,request)
57
59
 
58
60
  def OnMessage(self, request: Any) -> Any:
59
61
  """DEPRECATED : use on_message
@@ -1,5 +1,7 @@
1
1
  from typing import Any, List, Optional, Union
2
2
  from iop._business_host import _BusinessHost
3
+ from iop._decorators import input_deserializer, input_serializer_param, output_serializer, input_serializer, output_deserializer
4
+ from iop._dispatch import create_dispatch, dispach_message
3
5
 
4
6
  class _BusinessProcess(_BusinessHost):
5
7
  """Business process component that contains routing and transformation logic.
@@ -60,7 +62,7 @@ class _BusinessProcess(_BusinessHost):
60
62
  """
61
63
  return self.OnComplete(request, response)
62
64
 
63
- @_BusinessHost.input_serialzer_param(0,'response')
65
+ @input_serializer_param(0,'response')
64
66
  def reply(self, response: Any) -> None:
65
67
  """Send the specified response to the production component that sent the initial request.
66
68
 
@@ -69,7 +71,7 @@ class _BusinessProcess(_BusinessHost):
69
71
  """
70
72
  return self.iris_handle.dispatchReply(response)
71
73
 
72
- @_BusinessHost.input_serialzer_param(1,'request')
74
+ @input_serializer_param(1,'request')
73
75
  def send_request_async(self, target: str, request: Any, response_required: bool=True, completion_key: Optional[str]=None, description: Optional[str]=None) -> None:
74
76
  """Send the specified message to the target business process or business operation asynchronously.
75
77
 
@@ -139,7 +141,7 @@ class _BusinessProcess(_BusinessHost):
139
141
  def _dispatch_on_init(self, host_object: Any) -> None:
140
142
  """For internal use only."""
141
143
  self._restore_persistent_properties(host_object)
142
- self._create_dispatch()
144
+ create_dispatch(self)
143
145
  self.on_init()
144
146
  self._save_persistent_properties(host_object)
145
147
  return
@@ -151,17 +153,17 @@ class _BusinessProcess(_BusinessHost):
151
153
  self._save_persistent_properties(host_object)
152
154
  return
153
155
 
154
- @_BusinessHost.input_deserialzer
155
- @_BusinessHost.output_serialzer
156
+ @input_deserializer
157
+ @output_serializer
156
158
  def _dispatch_on_request(self, host_object: Any, request: Any) -> Any:
157
159
  """For internal use only."""
158
160
  self._restore_persistent_properties(host_object)
159
- return_object = self._dispach_message(request)
161
+ return_object = dispach_message(self,request)
160
162
  self._save_persistent_properties(host_object)
161
163
  return return_object
162
164
 
163
- @_BusinessHost.input_deserialzer
164
- @_BusinessHost.output_serialzer
165
+ @input_deserializer
166
+ @output_serializer
165
167
  def _dispatch_on_response(self, host_object: Any, request: Any, response: Any, call_request: Any, call_response: Any, completion_key: str) -> Any:
166
168
  """For internal use only."""
167
169
  self._restore_persistent_properties(host_object)
@@ -169,8 +171,8 @@ class _BusinessProcess(_BusinessHost):
169
171
  self._save_persistent_properties(host_object)
170
172
  return return_object
171
173
 
172
- @_BusinessHost.input_deserialzer
173
- @_BusinessHost.output_serialzer
174
+ @input_deserializer
175
+ @output_serializer
174
176
  def _dispatch_on_complete(self, host_object: Any, request: Any, response: Any) -> Any:
175
177
  """For internal use only."""
176
178
  self._restore_persistent_properties(host_object)
@@ -1,5 +1,6 @@
1
1
  import importlib
2
2
  from iop._business_host import _BusinessHost
3
+ from iop._decorators import input_deserializer, output_serializer, input_serializer, output_deserializer
3
4
 
4
5
  class _BusinessService(_BusinessHost):
5
6
  """ This class is responsible for receiving the data from external system and sending it to business processes or business operations in the production.
@@ -36,8 +37,8 @@ class _BusinessService(_BusinessHost):
36
37
  self.Adapter = self.adapter = handle_partner
37
38
  return
38
39
 
39
- @_BusinessHost.input_deserialzer
40
- @_BusinessHost.output_serialzer
40
+ @input_deserializer
41
+ @output_serializer
41
42
  def _dispatch_on_process_input(self, request):
42
43
  """ For internal use only. """
43
44
  return self.on_process_input(request)
@@ -0,0 +1,198 @@
1
+ from __future__ import annotations
2
+ import argparse
3
+ import json
4
+ import os
5
+ from dataclasses import dataclass
6
+ from enum import Enum, auto
7
+ import sys
8
+ from typing import Optional, Callable
9
+ from importlib.metadata import version
10
+
11
+ from iop._director import _Director
12
+ from iop._utils import _Utils
13
+
14
+ class CommandType(Enum):
15
+ DEFAULT = auto()
16
+ LIST = auto()
17
+ START = auto()
18
+ STOP = auto()
19
+ KILL = auto()
20
+ RESTART = auto()
21
+ STATUS = auto()
22
+ TEST = auto()
23
+ VERSION = auto()
24
+ EXPORT = auto()
25
+ MIGRATE = auto()
26
+ LOG = auto()
27
+ INIT = auto()
28
+ HELP = auto()
29
+
30
+ @dataclass
31
+ class CommandArgs:
32
+ """Container for parsed command arguments"""
33
+ default: Optional[str] = None
34
+ list: bool = False
35
+ start: Optional[str] = None
36
+ detach: bool = False
37
+ stop: bool = False
38
+ kill: bool = False
39
+ restart: bool = False
40
+ status: bool = False
41
+ migrate: Optional[str] = None
42
+ export: Optional[str] = None
43
+ version: bool = False
44
+ log: Optional[str] = None
45
+ init: Optional[str] = None
46
+ test: Optional[str] = None
47
+ classname: Optional[str] = None
48
+ body: Optional[str] = None
49
+
50
+ class Command:
51
+ def __init__(self, args: CommandArgs):
52
+ self.args = args
53
+
54
+ def execute(self) -> None:
55
+ command_type = self._determine_command_type()
56
+ command_handlers = {
57
+ CommandType.DEFAULT: self._handle_default,
58
+ CommandType.LIST: self._handle_list,
59
+ CommandType.START: self._handle_start,
60
+ CommandType.STOP: self._handle_stop,
61
+ CommandType.KILL: self._handle_kill,
62
+ CommandType.RESTART: self._handle_restart,
63
+ CommandType.STATUS: self._handle_status,
64
+ CommandType.TEST: self._handle_test,
65
+ CommandType.VERSION: self._handle_version,
66
+ CommandType.EXPORT: self._handle_export,
67
+ CommandType.MIGRATE: self._handle_migrate,
68
+ CommandType.LOG: self._handle_log,
69
+ CommandType.INIT: self._handle_init,
70
+ CommandType.HELP: self._handle_help
71
+ }
72
+ handler = command_handlers.get(command_type)
73
+ if handler:
74
+ handler()
75
+
76
+ def _determine_command_type(self) -> CommandType:
77
+ if self.args.default: return CommandType.DEFAULT
78
+ if self.args.list: return CommandType.LIST
79
+ if self.args.start: return CommandType.START
80
+ if self.args.stop: return CommandType.STOP
81
+ if self.args.kill: return CommandType.KILL
82
+ if self.args.restart: return CommandType.RESTART
83
+ if self.args.status: return CommandType.STATUS
84
+ if self.args.test: return CommandType.TEST
85
+ if self.args.version: return CommandType.VERSION
86
+ if self.args.export: return CommandType.EXPORT
87
+ if self.args.migrate: return CommandType.MIGRATE
88
+ if self.args.log: return CommandType.LOG
89
+ if self.args.init: return CommandType.INIT
90
+ return CommandType.HELP
91
+
92
+ def _handle_default(self) -> None:
93
+ if self.args.default == 'not_set':
94
+ print(_Director.get_default_production())
95
+ else:
96
+ _Director.set_default_production(self.args.default)
97
+
98
+ def _handle_list(self) -> None:
99
+ dikt = _Director.list_productions()
100
+ print(json.dumps(dikt, indent=4))
101
+
102
+ def _handle_start(self) -> None:
103
+ production_name = self.args.start if self.args.start != 'not_set' else _Director.get_default_production()
104
+ if self.args.detach:
105
+ _Director.start_production(production_name)
106
+ print(f"Production {production_name} started")
107
+ else:
108
+ _Director.start_production_with_log(production_name)
109
+
110
+ def _handle_stop(self) -> None:
111
+ _Director.stop_production()
112
+ print(f"Production {_Director.get_default_production()} stopped")
113
+
114
+ def _handle_kill(self) -> None:
115
+ _Director.shutdown_production()
116
+
117
+ def _handle_restart(self) -> None:
118
+ _Director.restart_production()
119
+
120
+ def _handle_status(self) -> None:
121
+ print(json.dumps(_Director.status_production(), indent=4))
122
+
123
+ def _handle_test(self) -> None:
124
+ test_name = None if self.args.test == 'not_set' else self.args.test
125
+ response = _Director.test_component(
126
+ test_name,
127
+ classname=self.args.classname if self.args.classname != 'not_set' else None,
128
+ body=self.args.body if self.args.body != 'not_set' else None
129
+ )
130
+ print(response)
131
+
132
+ def _handle_version(self) -> None:
133
+ print(version('iris-pex-embedded-python'))
134
+
135
+ def _handle_export(self) -> None:
136
+ export_name = _Director.get_default_production() if self.args.export == 'not_set' else self.args.export
137
+ print(json.dumps(_Utils.export_production(export_name), indent=4))
138
+
139
+ def _handle_migrate(self) -> None:
140
+ migrate_path = self.args.migrate
141
+ if not os.path.isabs(migrate_path):
142
+ migrate_path = os.path.join(os.getcwd(), migrate_path)
143
+ _Utils.migrate(migrate_path)
144
+
145
+ def _handle_log(self) -> None:
146
+ if self.args.log == 'not_set':
147
+ print(_Director.log_production())
148
+ else:
149
+ print(_Director.log_production_top(self.args.log))
150
+
151
+ def _handle_init(self) -> None:
152
+ _Utils.setup(None)
153
+
154
+ def _handle_help(self) -> None:
155
+ create_parser().print_help()
156
+ print(f"\nDefault production: {_Director.get_default_production()}")
157
+
158
+ def create_parser() -> argparse.ArgumentParser:
159
+ """Create and configure argument parser"""
160
+ main_parser = argparse.ArgumentParser()
161
+ parser = main_parser.add_mutually_exclusive_group()
162
+
163
+ # Main commands
164
+ parser.add_argument('-d', '--default', help='set the default production', nargs='?', const='not_set')
165
+ parser.add_argument('-l', '--list', help='list productions', action='store_true')
166
+ parser.add_argument('-s', '--start', help='start a production', nargs='?', const='not_set')
167
+ parser.add_argument('-S', '--stop', help='stop a production', action='store_true')
168
+ parser.add_argument('-k', '--kill', help='kill a production', action='store_true')
169
+ parser.add_argument('-r', '--restart', help='restart a production', action='store_true')
170
+ parser.add_argument('-x', '--status', help='status a production', action='store_true')
171
+ parser.add_argument('-m', '-M', '--migrate', help='migrate production and classes with settings file')
172
+ parser.add_argument('-e', '--export', help='export a production', nargs='?', const='not_set')
173
+ parser.add_argument('-v', '--version', help='display version', action='store_true')
174
+ parser.add_argument('-L', '--log', help='display log', nargs='?', const='not_set')
175
+ parser.add_argument('-i', '--init', help='init the pex module in iris', nargs='?', const='not_set')
176
+ parser.add_argument('-t', '--test', help='test the pex module in iris', nargs='?', const='not_set')
177
+
178
+ # Command groups
179
+ start = main_parser.add_argument_group('start arguments')
180
+ start.add_argument('-D', '--detach', help='start a production in detach mode', action='store_true')
181
+
182
+ test = main_parser.add_argument_group('test arguments')
183
+ test.add_argument('-C', '--classname', help='test classname', nargs='?', const='not_set')
184
+ test.add_argument('-B', '--body', help='test body', nargs='?', const='not_set')
185
+
186
+ return main_parser
187
+
188
+ def main(argv=None) -> None:
189
+ parser = create_parser()
190
+ args = parser.parse_args(argv)
191
+ cmd_args = CommandArgs(**vars(args))
192
+
193
+ command = Command(cmd_args)
194
+ command.execute()
195
+ sys.exit(0)
196
+
197
+ if __name__ == '__main__':
198
+ main()