iris-pex-embedded-python 3.5.4b2__py3-none-any.whl → 3.5.4b3__py3-none-any.whl

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.
iop/_cli.py CHANGED
@@ -1,6 +1,7 @@
1
1
  from __future__ import annotations
2
2
  import argparse
3
3
  import json
4
+ import logging
4
5
  import os
5
6
  from dataclasses import dataclass
6
7
  from enum import Enum, auto
@@ -161,7 +162,10 @@ class Command:
161
162
 
162
163
  def _handle_help(self) -> None:
163
164
  create_parser().print_help()
164
- print(f"\nDefault production: {_Director.get_default_production()}")
165
+ try:
166
+ print(f"\nDefault production: {_Director.get_default_production()}")
167
+ except Exception:
168
+ logging.warning("Could not retrieve default production.")
165
169
 
166
170
  def create_parser() -> argparse.ArgumentParser:
167
171
  """Create and configure argument parser"""
iop/_director.py CHANGED
@@ -268,21 +268,22 @@ class _Director():
268
268
  classname: the name of the class to test
269
269
  body: the body of the message
270
270
  """
271
+ iris = _iris.get_iris()
271
272
  if not message:
272
- message = _iris.get_iris().cls('Ens.Request')._New()
273
+ message = iris.cls('Ens.Request')._New()
273
274
  if classname:
274
275
  # if classname start with 'iris.' then create an iris object
275
276
  if classname.startswith('iris.'):
276
277
  # strip the iris. prefix
277
278
  classname = classname[5:]
278
279
  if body:
279
- message = _iris.get_iris().cls(classname)._New(body)
280
+ message = iris.cls(classname)._New(body)
280
281
  else:
281
- message = _iris.get_iris().cls(classname)._New()
282
+ message = iris.cls(classname)._New()
282
283
  # else create a python object
283
284
  else:
284
285
  # python message are casted to Grongier.PEX.Message
285
- message = _iris.get_iris().cls("IOP.Message")._New()
286
+ message = iris.cls("IOP.Message")._New()
286
287
  message.classname = classname
287
288
  if body:
288
289
  message.json = body
@@ -290,7 +291,7 @@ class _Director():
290
291
  message.json = _Utils.string_to_stream("{}")
291
292
  # serialize the message
292
293
  serial_message = dispatch_serializer(message)
293
- response = _iris.get_iris().cls('IOP.Utils').dispatchTestComponent(target,serial_message)
294
+ response = iris.cls('IOP.Utils').dispatchTestComponent(target,serial_message)
294
295
  try:
295
296
  deserialized_response = dispatch_deserializer(response)
296
297
  except ImportError as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iris_pex_embedded_python
3
- Version: 3.5.4b2
3
+ Version: 3.5.4b3
4
4
  Summary: Iris Interoperability based on Embedded Python
5
5
  Author-email: grongier <guillaume.rongier@intersystems.com>
6
6
  License: MIT License
@@ -34,11 +34,11 @@ iop/_business_host.py,sha256=asX2z9Jfbwrs-B0TI2-JeXvSsYUMKUUlnJ4-kohZg8U,11280
34
34
  iop/_business_operation.py,sha256=1-jWTejFBlIPlV83KiIfU0n33IYc7QMpt0KFqTybWEI,3037
35
35
  iop/_business_process.py,sha256=2W4tA8kPGrKp2bP0RVkXR8JSiVnSKCUgN24mDmPkJEU,8548
36
36
  iop/_business_service.py,sha256=UGZ-bxbEzec9z6jf-pKIaLo8BL-V1D2aqJGZM9m37qo,3984
37
- iop/_cli.py,sha256=9IpoU9mDB_8q4D5NGRoS98GQ2jSZfFn_jo8NN5hbE2M,8326
37
+ iop/_cli.py,sha256=fNTt-pX0H46n_SpOTxhBnzQteCz7ti9Y63kQwa5OA88,8454
38
38
  iop/_common.py,sha256=W39gb-K7oh93YdxOIIud0TT64Z6dSogVT4Rpda7_IvU,13986
39
39
  iop/_debugpy.py,sha256=EJ3XK29cDQ1mBklEgUwG6HyHYJAmhVa3-8m_FvtbVOs,6008
40
40
  iop/_decorators.py,sha256=LpK0AK4GIzXbPFSIw_x6zzM3FwsHvFjgQUh-MnqtTE8,2322
41
- iop/_director.py,sha256=dJ4uLs5JxBS1wc0OtL25HuaDi3Jh8M9JC5Ra366ic1g,11489
41
+ iop/_director.py,sha256=MVTCLIhxp1bYbDW7K-LEJ7A9fhAAnOZtDNE9pWK3tgE,11462
42
42
  iop/_dispatch.py,sha256=eXElnLGLdc6ondZhTQtKfa7URMkT-QnmqOTwXBSXAsY,4650
43
43
  iop/_generator_request.py,sha256=I67JOjfsznN9JlS0bg_D05phcfSXqp6GJlCULJPXKvw,1284
44
44
  iop/_inbound_adapter.py,sha256=yG33VfJ2KxSDVxBTQTjFXqdX1fMEic1zxSAOhP5DqTk,1649
@@ -83,9 +83,9 @@ iop/cls/IOP/Service/WSGI.cls,sha256=VLNCXEwmHW9dBnE51uGE1nvGX6T4HjhqePT3LVhsjAE,
83
83
  iop/cls/IOP/Service/Remote/Handler.cls,sha256=JfsXse2jvoVvQfW8_rVEt2DCQJ9SVqReCcOUngOkpzE,938
84
84
  iop/cls/IOP/Service/Remote/Rest/v1.cls,sha256=-10HF30IfkFPngLo1uBEnXevUmqE_FM3hJvTjE2R3OE,3055
85
85
  iop/wsgi/handlers.py,sha256=NrFLo_YbAh-x_PlWhAiWkQnUUN2Ss9HoEm63dDWCBpQ,2947
86
- iris_pex_embedded_python-3.5.4b2.dist-info/licenses/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
87
- iris_pex_embedded_python-3.5.4b2.dist-info/METADATA,sha256=Ebq8hI1JOGqxWy2PskBZNx4tHmUpskcYe6rkfHwxx-I,4447
88
- iris_pex_embedded_python-3.5.4b2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
89
- iris_pex_embedded_python-3.5.4b2.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
90
- iris_pex_embedded_python-3.5.4b2.dist-info/top_level.txt,sha256=4p0q6hCATmYIVMVi3I8hOUcJE1kwzyBeHygWv_rGvrU,13
91
- iris_pex_embedded_python-3.5.4b2.dist-info/RECORD,,
86
+ iris_pex_embedded_python-3.5.4b3.dist-info/licenses/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
87
+ iris_pex_embedded_python-3.5.4b3.dist-info/METADATA,sha256=0XXYZBLzZxiczhDlhvnzsDEPPiLI3rfGDeGO8VnC_zU,4447
88
+ iris_pex_embedded_python-3.5.4b3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
89
+ iris_pex_embedded_python-3.5.4b3.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
90
+ iris_pex_embedded_python-3.5.4b3.dist-info/top_level.txt,sha256=4p0q6hCATmYIVMVi3I8hOUcJE1kwzyBeHygWv_rGvrU,13
91
+ iris_pex_embedded_python-3.5.4b3.dist-info/RECORD,,