pyxecm 1.5__py3-none-any.whl → 2.0.0__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.
- pyxecm/__init__.py +6 -2
- pyxecm/avts.py +1492 -0
- pyxecm/coreshare.py +1075 -960
- pyxecm/customizer/__init__.py +16 -4
- pyxecm/customizer/__main__.py +58 -0
- pyxecm/customizer/api/__init__.py +5 -0
- pyxecm/customizer/api/__main__.py +6 -0
- pyxecm/customizer/api/app.py +914 -0
- pyxecm/customizer/api/auth.py +154 -0
- pyxecm/customizer/api/metrics.py +92 -0
- pyxecm/customizer/api/models.py +13 -0
- pyxecm/customizer/api/payload_list.py +865 -0
- pyxecm/customizer/api/settings.py +103 -0
- pyxecm/customizer/browser_automation.py +332 -139
- pyxecm/customizer/customizer.py +1075 -1057
- pyxecm/customizer/exceptions.py +35 -0
- pyxecm/customizer/guidewire.py +322 -0
- pyxecm/customizer/k8s.py +787 -338
- pyxecm/customizer/log.py +107 -0
- pyxecm/customizer/m365.py +3424 -2270
- pyxecm/customizer/nhc.py +1169 -0
- pyxecm/customizer/openapi.py +258 -0
- pyxecm/customizer/payload.py +18201 -7030
- pyxecm/customizer/pht.py +1047 -210
- pyxecm/customizer/salesforce.py +836 -727
- pyxecm/customizer/sap.py +58 -41
- pyxecm/customizer/servicenow.py +851 -383
- pyxecm/customizer/settings.py +442 -0
- pyxecm/customizer/successfactors.py +408 -346
- pyxecm/customizer/translate.py +83 -48
- pyxecm/helper/__init__.py +5 -2
- pyxecm/helper/assoc.py +98 -38
- pyxecm/helper/data.py +2482 -742
- pyxecm/helper/logadapter.py +27 -0
- pyxecm/helper/web.py +229 -101
- pyxecm/helper/xml.py +528 -172
- pyxecm/maintenance_page/__init__.py +5 -0
- pyxecm/maintenance_page/__main__.py +6 -0
- pyxecm/maintenance_page/app.py +51 -0
- pyxecm/maintenance_page/settings.py +28 -0
- pyxecm/maintenance_page/static/favicon.avif +0 -0
- pyxecm/maintenance_page/templates/maintenance.html +165 -0
- pyxecm/otac.py +234 -140
- pyxecm/otawp.py +2689 -0
- pyxecm/otcs.py +12344 -7547
- pyxecm/otds.py +3166 -2219
- pyxecm/otiv.py +36 -21
- pyxecm/otmm.py +1363 -296
- pyxecm/otpd.py +231 -127
- pyxecm-2.0.0.dist-info/METADATA +145 -0
- pyxecm-2.0.0.dist-info/RECORD +54 -0
- {pyxecm-1.5.dist-info → pyxecm-2.0.0.dist-info}/WHEEL +1 -1
- pyxecm-1.5.dist-info/METADATA +0 -51
- pyxecm-1.5.dist-info/RECORD +0 -30
- {pyxecm-1.5.dist-info → pyxecm-2.0.0.dist-info/licenses}/LICENSE +0 -0
- {pyxecm-1.5.dist-info → pyxecm-2.0.0.dist-info}/top_level.txt +0 -0
pyxecm/customizer/__init__.py
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
"""PYXECM classes for Customizer"""
|
|
1
|
+
"""PYXECM classes for Customizer."""
|
|
2
2
|
|
|
3
3
|
from .browser_automation import BrowserAutomation
|
|
4
|
-
|
|
5
4
|
from .customizer import Customizer
|
|
6
5
|
from .k8s import K8s
|
|
7
6
|
from .m365 import M365
|
|
8
7
|
from .payload import Payload
|
|
9
|
-
from .sap import SAP
|
|
10
8
|
from .salesforce import Salesforce
|
|
11
|
-
from .
|
|
9
|
+
from .sap import SAP
|
|
12
10
|
from .servicenow import ServiceNow
|
|
11
|
+
from .successfactors import SuccessFactors
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
"M365",
|
|
15
|
+
"SAP",
|
|
16
|
+
"BrowserAutomation",
|
|
17
|
+
"Customizer",
|
|
18
|
+
"Guidewire",
|
|
19
|
+
"K8s",
|
|
20
|
+
"Payload",
|
|
21
|
+
"Salesforce",
|
|
22
|
+
"ServiceNow",
|
|
23
|
+
"SuccessFactors",
|
|
24
|
+
]
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""Start the Customizer to process a payload."""
|
|
2
|
+
|
|
3
|
+
__author__ = "Dr. Marc Diefenbruch"
|
|
4
|
+
__copyright__ = "Copyright (C) 2024-2025, OpenText"
|
|
5
|
+
__credits__ = ["Kai-Philip Gatzweiler"]
|
|
6
|
+
__maintainer__ = "Dr. Marc Diefenbruch"
|
|
7
|
+
__email__ = "mdiefenb@opentext.com"
|
|
8
|
+
|
|
9
|
+
import logging
|
|
10
|
+
import os
|
|
11
|
+
import sys
|
|
12
|
+
|
|
13
|
+
from pyxecm.customizer import Customizer
|
|
14
|
+
from pyxecm.customizer.payload import load_payload
|
|
15
|
+
|
|
16
|
+
logger = logging.getLogger("customizer")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def main(argv: list[str]) -> int:
|
|
20
|
+
"""Start the Customizer."""
|
|
21
|
+
|
|
22
|
+
if len(argv) < 2:
|
|
23
|
+
logger.error("No input file specified")
|
|
24
|
+
sys.exit(1)
|
|
25
|
+
|
|
26
|
+
payload_filename = argv[1]
|
|
27
|
+
|
|
28
|
+
if not os.path.isfile(payload_filename):
|
|
29
|
+
logger.error("Input file does not exist")
|
|
30
|
+
sys.exit(1)
|
|
31
|
+
|
|
32
|
+
payload = load_payload(payload_filename)
|
|
33
|
+
customizer_settings = payload.get("customizerSettings", {})
|
|
34
|
+
|
|
35
|
+
# Overwrite the customizer settings with the payload specific ones:
|
|
36
|
+
customizer_settings.update({"cust_payload": payload_filename})
|
|
37
|
+
|
|
38
|
+
my_customizer = Customizer(logger=logger, settings=customizer_settings)
|
|
39
|
+
|
|
40
|
+
my_customizer.customization_run()
|
|
41
|
+
|
|
42
|
+
return 0
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
if __name__ == "__main__":
|
|
46
|
+
logging.basicConfig(
|
|
47
|
+
format="%(asctime)s %(levelname)s [%(name)s] %(message)s",
|
|
48
|
+
datefmt="%d-%b-%Y %H:%M:%S",
|
|
49
|
+
level=logging.INFO,
|
|
50
|
+
handlers=[
|
|
51
|
+
logging.StreamHandler(sys.stdout),
|
|
52
|
+
],
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
try:
|
|
56
|
+
main(sys.argv)
|
|
57
|
+
except KeyboardInterrupt:
|
|
58
|
+
logger.warning("KeyboardInterrupt - exiting")
|