pyxecm 1.6__py3-none-any.whl → 2.0.1__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.

Potentially problematic release.


This version of pyxecm might be problematic. Click here for more details.

Files changed (78) hide show
  1. pyxecm/__init__.py +7 -4
  2. pyxecm/avts.py +727 -254
  3. pyxecm/coreshare.py +686 -467
  4. pyxecm/customizer/__init__.py +16 -4
  5. pyxecm/customizer/__main__.py +58 -0
  6. pyxecm/customizer/api/__init__.py +5 -0
  7. pyxecm/customizer/api/__main__.py +6 -0
  8. pyxecm/customizer/api/app.py +163 -0
  9. pyxecm/customizer/api/auth/__init__.py +1 -0
  10. pyxecm/customizer/api/auth/functions.py +92 -0
  11. pyxecm/customizer/api/auth/models.py +13 -0
  12. pyxecm/customizer/api/auth/router.py +78 -0
  13. pyxecm/customizer/api/common/__init__.py +1 -0
  14. pyxecm/customizer/api/common/functions.py +47 -0
  15. pyxecm/customizer/api/common/metrics.py +92 -0
  16. pyxecm/customizer/api/common/models.py +21 -0
  17. pyxecm/customizer/api/common/payload_list.py +870 -0
  18. pyxecm/customizer/api/common/router.py +72 -0
  19. pyxecm/customizer/api/settings.py +128 -0
  20. pyxecm/customizer/api/terminal/__init__.py +1 -0
  21. pyxecm/customizer/api/terminal/router.py +87 -0
  22. pyxecm/customizer/api/v1_csai/__init__.py +1 -0
  23. pyxecm/customizer/api/v1_csai/router.py +87 -0
  24. pyxecm/customizer/api/v1_maintenance/__init__.py +1 -0
  25. pyxecm/customizer/api/v1_maintenance/functions.py +100 -0
  26. pyxecm/customizer/api/v1_maintenance/models.py +12 -0
  27. pyxecm/customizer/api/v1_maintenance/router.py +76 -0
  28. pyxecm/customizer/api/v1_otcs/__init__.py +1 -0
  29. pyxecm/customizer/api/v1_otcs/functions.py +61 -0
  30. pyxecm/customizer/api/v1_otcs/router.py +179 -0
  31. pyxecm/customizer/api/v1_payload/__init__.py +1 -0
  32. pyxecm/customizer/api/v1_payload/functions.py +179 -0
  33. pyxecm/customizer/api/v1_payload/models.py +51 -0
  34. pyxecm/customizer/api/v1_payload/router.py +499 -0
  35. pyxecm/customizer/browser_automation.py +721 -286
  36. pyxecm/customizer/customizer.py +1076 -1425
  37. pyxecm/customizer/exceptions.py +35 -0
  38. pyxecm/customizer/guidewire.py +1186 -0
  39. pyxecm/customizer/k8s.py +901 -379
  40. pyxecm/customizer/log.py +107 -0
  41. pyxecm/customizer/m365.py +2967 -920
  42. pyxecm/customizer/nhc.py +1169 -0
  43. pyxecm/customizer/openapi.py +258 -0
  44. pyxecm/customizer/payload.py +18228 -7820
  45. pyxecm/customizer/pht.py +717 -286
  46. pyxecm/customizer/salesforce.py +516 -342
  47. pyxecm/customizer/sap.py +58 -41
  48. pyxecm/customizer/servicenow.py +611 -372
  49. pyxecm/customizer/settings.py +445 -0
  50. pyxecm/customizer/successfactors.py +408 -346
  51. pyxecm/customizer/translate.py +83 -48
  52. pyxecm/helper/__init__.py +5 -2
  53. pyxecm/helper/assoc.py +83 -43
  54. pyxecm/helper/data.py +2406 -870
  55. pyxecm/helper/logadapter.py +27 -0
  56. pyxecm/helper/web.py +229 -101
  57. pyxecm/helper/xml.py +596 -171
  58. pyxecm/maintenance_page/__init__.py +5 -0
  59. pyxecm/maintenance_page/__main__.py +6 -0
  60. pyxecm/maintenance_page/app.py +51 -0
  61. pyxecm/maintenance_page/settings.py +28 -0
  62. pyxecm/maintenance_page/static/favicon.avif +0 -0
  63. pyxecm/maintenance_page/templates/maintenance.html +165 -0
  64. pyxecm/otac.py +235 -141
  65. pyxecm/otawp.py +2668 -1220
  66. pyxecm/otca.py +569 -0
  67. pyxecm/otcs.py +7956 -3237
  68. pyxecm/otds.py +2178 -925
  69. pyxecm/otiv.py +36 -21
  70. pyxecm/otmm.py +1272 -325
  71. pyxecm/otpd.py +231 -127
  72. pyxecm-2.0.1.dist-info/METADATA +122 -0
  73. pyxecm-2.0.1.dist-info/RECORD +76 -0
  74. {pyxecm-1.6.dist-info → pyxecm-2.0.1.dist-info}/WHEEL +1 -1
  75. pyxecm-1.6.dist-info/METADATA +0 -53
  76. pyxecm-1.6.dist-info/RECORD +0 -32
  77. {pyxecm-1.6.dist-info → pyxecm-2.0.1.dist-info/licenses}/LICENSE +0 -0
  78. {pyxecm-1.6.dist-info → pyxecm-2.0.1.dist-info}/top_level.txt +0 -0
pyxecm/otiv.py CHANGED
@@ -1,27 +1,25 @@
1
- """
2
- OTIV Module to keep Intelligent Viewing specific data
3
- such as connection parameters, license information ...
4
-
5
- Class: OTIV
6
- Methods:
7
-
8
- __init__ : class initializer
9
- config : returns config data set
10
- """
1
+ """OTIV Module to keep Intelligent Viewing specific data."""
11
2
 
12
3
  __author__ = "Dr. Marc Diefenbruch"
13
- __copyright__ = "Copyright 2024, OpenText"
4
+ __copyright__ = "Copyright (C) 2024-2025, OpenText"
14
5
  __credits__ = ["Kai-Philip Gatzweiler"]
15
6
  __maintainer__ = "Dr. Marc Diefenbruch"
16
7
  __email__ = "mdiefenb@opentext.com"
17
8
 
18
9
  import logging
10
+ from importlib.metadata import version
19
11
 
20
- logger = logging.getLogger("pyxecm.otiv")
12
+ APP_NAME = "pyxecm"
13
+ APP_VERSION = version("pyxecm")
14
+ MODULE_NAME = APP_NAME + ".otiv"
15
+
16
+ default_logger = logging.getLogger(MODULE_NAME)
21
17
 
22
18
 
23
19
  class OTIV:
24
- """Used to manage stettings for OpenText Intelligent Viewing."""
20
+ """Class OTIV is used to manage stettings for OpenText Intelligent Viewing."""
21
+
22
+ logger: logging.Logger = default_logger
25
23
 
26
24
  _config: dict
27
25
 
@@ -32,16 +30,31 @@ class OTIV:
32
30
  product_description: str,
33
31
  license_file: str,
34
32
  default_license: str = "FULLTIME_USERS_REGULAR",
35
- ):
36
- """Initialize the OTIV class for Intelligent Viewing
33
+ logger: logging.Logger = default_logger,
34
+ ) -> None:
35
+ """Initialize the OTIV class for Intelligent Viewing.
37
36
 
38
37
  Args:
39
- resource_name (str): OTDS resource name
40
- product_name (str): OTDS product name for licensing
41
- license_file (str): path to license file
42
- default_license (str, optional): Defaults to "FULLTIME_USERS_REGULAR".
38
+ resource_name (str):
39
+ The OTDS resource name.
40
+ product_name (str):
41
+ The OTDS product name for licensing.
42
+ product_description (str):
43
+ The OTDS product description for licensing.
44
+ license_file (str):
45
+ The path to license file.
46
+ default_license (str, optional):
47
+ Defaults to "FULLTIME_USERS_REGULAR".
48
+ logger (logging.Logger, optional):
49
+ The logging object to use for all log messages. Defaults to default_logger.
50
+
43
51
  """
44
52
 
53
+ if logger != default_logger:
54
+ self.logger = logger.getChild("otiv")
55
+ for logfilter in logger.filters:
56
+ self.logger.addFilter(logfilter)
57
+
45
58
  # Initialize otiv_config as an empty dictionary
46
59
  otiv_config = {}
47
60
 
@@ -56,10 +69,12 @@ class OTIV:
56
69
  # end method definition
57
70
 
58
71
  def config(self) -> dict:
59
- """Returns the configuration dictionary
72
+ """Return the configuration dictionary.
60
73
 
61
74
  Returns:
62
- dict: Configuration dictionary
75
+ dict:
76
+ The configuration dictionary.
77
+
63
78
  """
64
79
  return self._config
65
80