ka-uts-com 1.0.0.240823__py3-none-any.whl → 1.0.1.250131__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.
Files changed (61) hide show
  1. build/lib/dist/ka_uts_com-1.0.1.250131-py3-none-any.whl +0 -0
  2. build/lib/dist/ka_uts_com-1.0.1.250131.tar.gz +0 -0
  3. build/lib/ka_uts_com/__version__.py +1 -1
  4. build/lib/ka_uts_com/base/app_.py +51 -0
  5. build/lib/ka_uts_com/base/cfg_.py +27 -0
  6. build/lib/ka_uts_com/base/exit_.py +37 -0
  7. build/lib/ka_uts_com/base/log_.py +115 -0
  8. build/lib/ka_uts_com/com.py +42 -192
  9. build/lib/ka_uts_com/data/{log.standard.yml → log.std.yml} +3 -3
  10. build/lib/ka_uts_com/data/{log.personal.yml → log.usr.yml} +34 -42
  11. build/lib/ka_uts_com/decorators/dec.py +13 -0
  12. build/lib/ka_uts_com/fnc.py +29 -24
  13. build/lib/ka_uts_com/ioc/jinja2_.py +42 -0
  14. build/lib/ka_uts_com/ioc/yaml_.py +30 -0
  15. build/lib/ka_uts_com/log.py +32 -20
  16. build/lib/ka_uts_com/timer.py +17 -24
  17. build/lib/ka_uts_com/utils/aoeqstmt.py +39 -0
  18. build/lib/ka_uts_com/{date.py → utils/date.py} +4 -4
  19. build/lib/ka_uts_com/utils/doeq.py +99 -0
  20. {ka_uts_com → build/lib/ka_uts_com/utils}/pacmod.py +30 -34
  21. build/lib/ka_uts_com/utils/py.typed +0 -0
  22. build/lib/ka_uts_com/{str.py → utils/str.py} +36 -39
  23. dist/ka_uts_com-1.0.1.250131-py3-none-any.whl +0 -0
  24. dist/ka_uts_com-1.0.1.250131.tar.gz +0 -0
  25. ka_uts_com/__version__.py +1 -1
  26. ka_uts_com/base/app_.py +51 -0
  27. ka_uts_com/base/cfg_.py +27 -0
  28. ka_uts_com/base/exit_.py +37 -0
  29. ka_uts_com/base/log_.py +115 -0
  30. ka_uts_com/com.py +42 -192
  31. ka_uts_com/data/{log.standard.yml → log.std.yml} +3 -3
  32. ka_uts_com/data/{log.personal.yml → log.usr.yml} +34 -42
  33. ka_uts_com/decorators/dec.py +13 -0
  34. ka_uts_com/fnc.py +29 -24
  35. ka_uts_com/ioc/jinja2_.py +42 -0
  36. ka_uts_com/ioc/yaml_.py +30 -0
  37. ka_uts_com/log.py +32 -20
  38. ka_uts_com/timer.py +17 -24
  39. ka_uts_com/utils/aoeqstmt.py +39 -0
  40. ka_uts_com/{date.py → utils/date.py} +4 -4
  41. ka_uts_com/utils/doeq.py +99 -0
  42. {build/lib/ka_uts_com → ka_uts_com/utils}/pacmod.py +30 -34
  43. ka_uts_com/utils/py.typed +0 -0
  44. ka_uts_com/{str.py → utils/str.py} +36 -39
  45. ka_uts_com-1.0.1.250131.dist-info/METADATA +1628 -0
  46. ka_uts_com-1.0.1.250131.dist-info/RECORD +55 -0
  47. {ka_uts_com-1.0.0.240823.dist-info → ka_uts_com-1.0.1.250131.dist-info}/WHEEL +1 -1
  48. build/lib/dist/ka_uts_com-1.0.0.240823-py3-none-any.whl +0 -0
  49. build/lib/dist/ka_uts_com-1.0.0.240823.tar.gz +0 -0
  50. build/lib/ka_uts_com/aeq.py +0 -87
  51. build/lib/ka_uts_com/argv.py +0 -49
  52. build/lib/ka_uts_com/ioc.py +0 -57
  53. dist/ka_uts_com-1.0.0.240823-py3-none-any.whl +0 -0
  54. dist/ka_uts_com-1.0.0.240823.tar.gz +0 -0
  55. ka_uts_com/aeq.py +0 -87
  56. ka_uts_com/argv.py +0 -49
  57. ka_uts_com/ioc.py +0 -57
  58. ka_uts_com-1.0.0.240823.dist-info/METADATA +0 -943
  59. ka_uts_com-1.0.0.240823.dist-info/RECORD +0 -41
  60. {ka_uts_com-1.0.0.240823.dist-info → ka_uts_com-1.0.1.250131.dist-info/licenses}/LICENSE.txt +0 -0
  61. {ka_uts_com-1.0.0.240823.dist-info → ka_uts_com-1.0.1.250131.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1628 @@
1
+ Metadata-Version: 2.4
2
+ Name: ka_uts_com
3
+ Version: 1.0.1.250131
4
+ Summary: Communication Class Utilities
5
+ Author-email: Bernd Stroehle <bernd.stroehle@bs29.com>
6
+ Maintainer-email: Bernd Stroehle <bernd.stroehle@bs29.com>
7
+ Project-URL: Source Code, https://github.com/bs29/ka_uts_com/tree/master
8
+ Project-URL: Homepage, https://kosakya.de/
9
+ Project-URL: Documentation, https://ka-com.readthedocs.io/en/latest
10
+ Project-URL: Apache-2.0 License, https://apache.org/licenses/LICENSE-2.0
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Natural Language :: English
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Requires-Python: >=3.10
19
+ Description-Content-Type: text/x-rst
20
+ License-File: LICENSE.txt
21
+ Requires-Dist: Jinja2>=3.1.6
22
+ Requires-Dist: orjson>=3.10.16
23
+ Requires-Dist: psutil>=7.0.0
24
+ Requires-Dist: PyYAML>=6.0.2
25
+ Requires-Dist: PyYAML>=6.0.2
26
+ Requires-Dist: setuptools>=76.1.0
27
+ Requires-Dist: simplejson>=3.20.1
28
+ Dynamic: license-file
29
+
30
+ ##########
31
+ ka_uts_com
32
+ ##########
33
+
34
+ Overview
35
+ ********
36
+
37
+ .. start short_desc
38
+
39
+ **Communication Utilities**
40
+
41
+ .. end short_desc
42
+
43
+ Installation
44
+ ************
45
+
46
+ .. start installation
47
+
48
+ The package ``ka_uts_com`` can be installed from PyPI or Anaconda.
49
+
50
+ To install with ``pip``:
51
+
52
+ .. code-block:: shell
53
+
54
+ $ python -m pip install ka_uts_com
55
+
56
+ To install with ``conda``:
57
+
58
+ .. code-block:: shell
59
+
60
+ $ conda install -c conda-forge ka_uts_com
61
+
62
+ .. end installation
63
+
64
+ This requires that the ``readme`` extra is installed:
65
+
66
+ .. code-block:: bash
67
+
68
+ $ python -m pip install ka_uts_com[readme]
69
+
70
+ Package logging
71
+ ***************
72
+
73
+ Standard or user specific Package logging of application package is defined
74
+ in the static logging class **Log_** of Base module log\_.py of the Communication
75
+ Package **ka_uts_com**.
76
+ The default Logging configuration is defined by the yaml files **log.std.yml**
77
+ for standard Logging or **log.user.yml** for user Logging in the data directory
78
+ **/ka_uts_com/data** of the Communication package.
79
+ The Logging configuration could be overriden by yaml files with the same names in the
80
+ data directory **<application>/data** of the application packages.
81
+
82
+ Logging defines log file paths for the following log message types: .
83
+
84
+ #. *debug*
85
+ #. *error*
86
+ #. *info*
87
+ #. *log*
88
+
89
+ .. Naming-conventions-for-logging-files-label:
90
+ .. table:: *Naming conventions for logging file*
91
+
92
+ +-----+--------------------------------------------+-------------------+
93
+ |Type |Directory |File |
94
+ +=====+============================================+===================+
95
+ |debug|/data/<tenant>/RUN/<package>/<function>/debs|debs_<pid>_<ts>.log|
96
+ +-----+--------------------------------------------+-------------------+
97
+ |error|/data/<tenant>/RUN/<package>/<function>/errs|errs_<pid>_<ts>.log|
98
+ +-----+--------------------------------------------+-------------------+
99
+ |info |/data/<tenant>/RUN/<package>/<function>/logs|info_<pid>_<ts>.log|
100
+ +-----+--------------------------------------------+-------------------+
101
+ |log |/data/<tenant>/RUN/<package>/<function>/logs|logs_<pid>_<ts>.log|
102
+ +-----+--------------------------------------------+-------------------+
103
+
104
+ .. Naming examples-of-logging-files-label:
105
+ .. table:: *Naming examples of logging file*
106
+
107
+ +-----+-------------------------------+------------------------+
108
+ |Type |Directory |File |
109
+ +=====+===============================+========================+
110
+ |debug|/data/umh/RUN/umh_otec/srr/debs|debs_9470_1737118199.log|
111
+ +-----+-------------------------------+------------------------+
112
+ |error|/data/umh/RUN/umh_otec/srr/errs|errs_9470_1737118199.log|
113
+ +-----+-------------------------------+------------------------+
114
+ |info |/data/umh/RUN/umh_otec/srr/logs|info_9470_1737118199.log|
115
+ +-----+-------------------------------+------------------------+
116
+ |log |/data/umh/RUN/umh_otec/srr/logs|logs_9470_1737118199.log|
117
+ +-----+-------------------------------+------------------------+
118
+
119
+ Package files
120
+ *************
121
+
122
+ Classification
123
+ ==============
124
+
125
+ The Files of Package ``ka_uts_com`` could be classified into the follwing file types:
126
+
127
+ #. *Special files*
128
+ #. *Dunder modules*
129
+ #. *Decorator modules*
130
+ #. *Data files*
131
+ #. *Package modules*
132
+
133
+ Special files
134
+ *************
135
+
136
+ .. Special-file-label:
137
+ .. table:: *Special-file*
138
+
139
+ +--------+--------+---------------------------------------------------+
140
+ |Name |Type |Description |
141
+ +========+========+===================================================+
142
+ |py.typed|Type |The py.typed file is a marker file used in Python |
143
+ | |checking|packages to indicate that the package supports type|
144
+ | |marker |checking. This file is a part of the PEP 561 |
145
+ | |file |standard, which provides a standardized way to |
146
+ | | |package and distribute type information in Python. |
147
+ +--------+--------+---------------------------------------------------+
148
+
149
+ Dunder Modules
150
+ **************
151
+
152
+ .. Dunder-modules-label:
153
+ .. table:: *Dunder-Modules*
154
+
155
+ +--------------+---------+----------------------------------------------------+
156
+ |Name |Type |Description |
157
+ +==============+=========+====================================================+
158
+ |__init__.py |Package |The module is used to execute initialisation code or|
159
+ | |directory|mark the directory it contains as a package. The |
160
+ | |marker |Module enforces explicit imports and thus clear |
161
+ | |file |namespace use and call them with the dot notation. |
162
+ +--------------+---------+----------------------------------------------------+
163
+ |__version__.py|Version |The module consist of Assignment Statements for |
164
+ | |file |system Variables used in Versioning. |
165
+ +--------------+---------+----------------------------------------------------+
166
+
167
+ Decorator Modules
168
+ *****************
169
+
170
+ Overview
171
+ ========
172
+
173
+ .. Decorator Modules-label:
174
+ .. table:: **Decorator Modules**
175
+
176
+ +------+-----------------+
177
+ |Name |Decription |
178
+ +======+=================+
179
+ |dec.py|Decorators module|
180
+ +------+-----------------+
181
+
182
+ Data Files
183
+ **********
184
+
185
+ .. Data-Files-label:
186
+ .. table:: **Data Files**
187
+
188
+ +-----------+-----------------------------------------+
189
+ |Name |Description |
190
+ +===========+=========================================+
191
+ |log.std.yml|Yaml definition file for standard logging|
192
+ +-----------+-----------------------------------------+
193
+ |log.usr.yml|Yaml definition file for user logging |
194
+ +-----------+-----------------------------------------+
195
+
196
+ Package Modules
197
+ ***************
198
+
199
+ Classification
200
+ ==============
201
+
202
+ The Modules of Package ``ka_uts_com`` could be classified into the following module types:
203
+
204
+ #. **Communication Modules**
205
+ #. **Base Modules**
206
+ #. **Utility Modules**
207
+ #. **I/O Control Modules**
208
+
209
+ Communication Modules
210
+ =====================
211
+
212
+ Overview
213
+ --------
214
+
215
+ .. Communication Modules-label:
216
+ .. table:: **Communication Modules**
217
+
218
+ +--------+-----------------------------+
219
+ |Name |Decription |
220
+ +========+=============================+
221
+ |com.py |Communication handling module|
222
+ +--------+-----------------------------+
223
+ |fnc.py |Function Management module |
224
+ +--------+-----------------------------+
225
+ |log.py |Logging management module |
226
+ +--------+-----------------------------+
227
+ |timer.py|Timer management module |
228
+ +--------+-----------------------------+
229
+
230
+ Communication module: com.py
231
+ ============================
232
+
233
+ The Communication handling Module ``com.py`` contains the single static class ``Com``.
234
+
235
+ Com (static class of com.py)
236
+ ----------------------------
237
+
238
+ The static Class ``Com`` contains the subsequent variables and methods.
239
+
240
+ Com Variables
241
+ ^^^^^^^^^^^^^
242
+
243
+ .. Variables-of-class-Com-label:
244
+ .. table:: **Variables of class Com**
245
+
246
+ +--------+-----------+-------+-----------------------------------+
247
+ |Name |Type |Default|Description |
248
+ +========+===========+=======+===================================+
249
+ |cfg |TyDic |None |Configuration dictionary |
250
+ +--------+-----------+-------+-----------------------------------+
251
+ |d_pacmod|TyDic |{} |pacmod dictionary |
252
+ +--------+-----------+-------+-----------------------------------+
253
+ |pid |TyInt |None |Process id |
254
+ +--------+-----------+-------+-----------------------------------+
255
+ |sw_init |TyBool |None |Initialisation switch |
256
+ +--------+-----------+-------+-----------------------------------+
257
+ |ts |TnTimeStamp|None |Timestamp |
258
+ +--------+-----------+-------+-----------------------------------+
259
+ |ts_start|TnDateTime |None |start timestamp in date time format|
260
+ +--------+-----------+-------+-----------------------------------+
261
+ |ts_end |TnDateTime |None |end timestamp in date time format |
262
+ +--------+-----------+-------+-----------------------------------+
263
+ |ts_etime|TnDateTime |None |elapse Time |
264
+ +--------+-----------+-------+-----------------------------------+
265
+ |d_timer |TyDic |False |Timer dictionary |
266
+ +--------+-----------+-------+-----------------------------------+
267
+ |Log |TyLogger |False |Log class |
268
+ +--------+-----------+-------+-----------------------------------+
269
+ |App |TyAny |False |Application class |
270
+ +--------+-----------+-------+-----------------------------------+
271
+ |Exit |TyAny |False |Exit class |
272
+ +--------+-----------+-------+-----------------------------------+
273
+
274
+ Com Methods
275
+ ^^^^^^^^^^^
276
+
277
+ .. Methods-of-class-Com-label:
278
+ .. table:: **Methods of class Com**
279
+
280
+ +---------+-------------------------------------------------------+
281
+ |Name |Description |
282
+ +=========+=======================================================+
283
+ |init |initialise static variables if they are not initialized|
284
+ +---------+-------------------------------------------------------+
285
+ |sh_kwargs|show keyword arguments |
286
+ +---------+-------------------------------------------------------+
287
+
288
+ Com Method: init
289
+ ^^^^^^^^^^^^^^^^
290
+
291
+ Parameter
292
+ """""""""
293
+
294
+ .. Parameter-of-Com-method-init-label:
295
+ .. table:: **Parameter of Com method init**
296
+
297
+ +---------+-----+-----------------+
298
+ |Name |Type |Description |
299
+ +=========+=====+=================+
300
+ |cls |class|current class |
301
+ +---------+-----+-----------------+
302
+ |\**kwargs|TyAny|keyword arguments|
303
+ +---------+-----+-----------------+
304
+
305
+ Com Method: sh_kwargs
306
+ ^^^^^^^^^^^^^^^^^^^^^
307
+
308
+ Parameter
309
+ """""""""
310
+
311
+ .. Paramter-of-Com-method-sh_kwargs-label:
312
+ .. table:: **Parameter of Com method sh_kwargs**
313
+
314
+ +--------+-----+--------------------+
315
+ |Name |Type |Description |
316
+ +========+=====+====================+
317
+ |cls |class|current class |
318
+ +--------+-----+--------------------+
319
+ |root_cls|class|root lass |
320
+ +--------+-----+--------------------+
321
+ |d_parms |TyDic|parameter dictionary|
322
+ +--------+-----+--------------------+
323
+ |\*args |list |arguments array |
324
+ +--------+-----+--------------------+
325
+
326
+ Function Module: fnc.py
327
+ =======================
328
+
329
+ The Module ``fnc.py`` contains one static class ``Fnc`` with I/O Control methods for log files;
330
+
331
+ fnc.py Class: Fnc
332
+ -----------------
333
+
334
+ The static Class ``Fnc`` contains the subsequent methods
335
+
336
+ Fnc Methods
337
+ ^^^^^^^^^^^
338
+
339
+ .. Methods-of-Fnc-class-label:
340
+ .. table:: Methods of Fnc class*
341
+
342
+ +--------+------+------------------------------------------------------------+
343
+ |Name |Type |Description |
344
+ +========+======+============================================================+
345
+ |identity|static|Identity function for objects |
346
+ +--------+------+------------------------------------------------------------+
347
+ |sh |static|Show function localised in the given dictionary of functions|
348
+ | | |by the given key |
349
+ +--------+------+------------------------------------------------------------+
350
+ |ex |class |Execute the function localised by the show function of class|
351
+ | | |Fnc using the given key and dictionary of functions |
352
+ +--------+------+------------------------------------------------------------+
353
+
354
+ Fnc Method: identity
355
+ ^^^^^^^^^^^^^^^^^^^^
356
+
357
+ Parameter
358
+ """""""""
359
+
360
+ .. Parameter-of-identity-method-label:
361
+ .. table:: Parameter of identity method*
362
+
363
+ +----+-----+-----------+
364
+ |Name|Type |Description|
365
+ +====+=====+===========+
366
+ |obj |TyAny|object |
367
+ +----+-----+-----------+
368
+
369
+ Return Value
370
+ """"""""""""
371
+
372
+ .. Return values-of-identity-method-label:
373
+ .. table:: **Return values of identity-method**
374
+
375
+ +----+-----+-----------+
376
+ |Name|Type |Description|
377
+ +====+=====+===========+
378
+ |obj |TyAny|object |
379
+ +----+-----+-----------+
380
+
381
+ Fnc Method: ex
382
+ ^^^^^^^^^^^^^^
383
+
384
+ Parameter
385
+ """""""""
386
+
387
+ .. Parameter-of-ex-method-label:
388
+ .. table:: Parameter of ex method*
389
+
390
+ +-----------+--------+------------------------------+
391
+ |Name |Type |Description |
392
+ +===========+========+==============================+
393
+ |cls |class |current class |
394
+ +-----------+--------+------------------------------+
395
+ |doc |TnDoC |Dictionary of Callables |
396
+ +-----------+--------+------------------------------+
397
+ |key |TnDoc |key |
398
+ +-----------+--------+------------------------------+
399
+ |args_kwargs|TnArrDoc|arguments or keyword arguments|
400
+ +-----------+--------+------------------------------+
401
+
402
+ Return Value
403
+ """"""""""""
404
+
405
+ .. Return value-of-ex-method-label:
406
+ .. table:: *Return value of ex method*
407
+
408
+ +----+----------+------------------------------------------+
409
+ |Name|Type |Description |
410
+ +====+==========+==========================================+
411
+ | |TyCallable|Value of Function for argument args_kwargs|
412
+ +----+----------+------------------------------------------+
413
+
414
+ Fnc Method: sh
415
+ ^^^^^^^^^^^^^^
416
+
417
+ Parameter
418
+ """""""""
419
+
420
+ .. Parameter-of-sh-method-label:
421
+ .. table:: Parameter of sh method*
422
+
423
+ +----+-----+------------------------------+
424
+ |Name|Type |Description |
425
+ +====+=====+==============================+
426
+ |cls |class|current class |
427
+ +----+-----+------------------------------+
428
+ |doc |TnDoC|Dictionary of Callables |
429
+ +----+-----+------------------------------+
430
+ |key |TnDoc|key |
431
+ +----+-----+------------------------------+
432
+
433
+ Return Value
434
+ """"""""""""
435
+
436
+ .. Return value-of-sh-method-label:
437
+ .. table:: *Return value of sh method*
438
+
439
+ +----+----------+-----------+
440
+ |Name|Type |Description|
441
+ +====+==========+===========+
442
+ |fnc |TyCallable|Function |
443
+ +----+----------+-----------+
444
+
445
+ Communicstion Module: log.py
446
+ ============================
447
+
448
+ The Module ``log.py`` contains one static class ``Log`` with I/O Control methods for log files;
449
+
450
+ log.py Class: Log
451
+ -----------------
452
+
453
+ The static Class ``Log`` contains the subsequent sub classes and methods
454
+
455
+ Sub-Classes
456
+ ^^^^^^^^^^^
457
+
458
+ The Class ``Log`` contains the following static sub-classes.
459
+
460
+ .. Static-Log-sub-classes-label:
461
+ .. table:: *Static Log sub classes*
462
+
463
+ +----+----------------------------------------------------+
464
+ |Name|Description |
465
+ +====+====================================================+
466
+ |Eq |Log generated Equate messages |
467
+ +----+----------------------------------------------------+
468
+ |Dic |Log generated Equate messages for dictionary entries|
469
+ +----+----------------------------------------------------+
470
+
471
+ Log Sub-Class: Eq
472
+ ^^^^^^^^^^^^^^^^^
473
+
474
+ Log-Eq Methods
475
+ """"""""""""""
476
+
477
+ .. Methods-of-Log-Eq-subclass-label:
478
+ .. table:: *Methods of Log.Eq subclass*
479
+
480
+ +-----+----------------------------------------------+
481
+ |Name |Description |
482
+ +=====+==============================================+
483
+ |debug|Log generated equate message "<key> = <value>"|
484
+ | |to the debug destination |
485
+ +-----+----------------------------------------------+
486
+ |error|Log generated equate message "<key> = <value>"|
487
+ | |to the error destination |
488
+ +-----+----------------------------------------------+
489
+ |info |Log generated equate message "<key> = <value>"|
490
+ | |to the info destination |
491
+ +-----+----------------------------------------------+
492
+ |debug|Log generated equate message "<key> = <value>"|
493
+ | |to the warning destination |
494
+ +-----+----------------------------------------------+
495
+
496
+ All Methods use the following Parameter:
497
+
498
+ Parameter
499
+ """""""""
500
+
501
+ .. Parameter-of-Log-Eq-methods-label:
502
+ .. table:: *Parameter of Log.Eq methods*
503
+
504
+ +-----+-----+-------------+
505
+ |Name |Type |Description |
506
+ +=====+=====+=============+
507
+ |cls |class|current class|
508
+ +-----+-----+-------------+
509
+ |key |TyAny|Key |
510
+ +-----+-----+-------------+
511
+ |value|TyAny|Value |
512
+ +-----+-----+-------------+
513
+
514
+ Log Sub-Class: Dic
515
+ ^^^^^^^^^^^^^^^^^^
516
+
517
+ Log-Dic Methods
518
+ """""""""""""""
519
+
520
+ .. Methods-of-Log-Dic-methods-label:
521
+ .. table:: *Methods of Log.Dic methods*
522
+
523
+ +-------+------------------------------------------------+
524
+ |Name |Description |
525
+ +=======+================================================+
526
+ |debug |Log generated equate messages for all dictionary|
527
+ | |entries to the debug destination |
528
+ +-------+------------------------------------------------+
529
+ |error |Log generated equate messages for all dictionary|
530
+ | |entries to the error destination |
531
+ +-------+------------------------------------------------+
532
+ |info |Log generated equate messages for all dictionary|
533
+ | |entries to the info destination |
534
+ +-------+------------------------------------------------+
535
+ |warning|Log generated equate messages for all dictionary|
536
+ | |entries to the warning destination |
537
+ +-------+------------------------------------------------+
538
+
539
+ All Log-Dic Methods use the following Parameters:
540
+
541
+ Parameter
542
+ """""""""
543
+
544
+ .. Parameter-of-Com-Eq-methods-label:
545
+ .. table:: *Parameter of Com.Eq methods*
546
+
547
+ +----+-----+-------------+
548
+ |Name|Type |Description |
549
+ +====+=====+=============+
550
+ |cls |class|current class|
551
+ +----+-----+-------------+
552
+ |dic |TyDic|Dictionary |
553
+ +----+-----+-------------+
554
+
555
+ Methods
556
+ ^^^^^^^
557
+
558
+ .. Methods-of-Log-class-label:
559
+ .. table:: *Methods of Log class*
560
+
561
+ +-------+-----------------------------------------------------------+
562
+ |Name |Description |
563
+ +=======+===========================================================+
564
+ |debug |Setup stacklevel and log message to the debug destination |
565
+ +-------+-----------------------------------------------------------+
566
+ |error |Setup stacklevel and log message to the error destination |
567
+ +-------+-----------------------------------------------------------+
568
+ |info |Setup stacklevel and log message to the info destination |
569
+ +-------+-----------------------------------------------------------+
570
+ |warning|Setup stacklevel and log message to the warning destination|
571
+ +-------+-----------------------------------------------------------+
572
+
573
+ Parameter
574
+ """""""""
575
+
576
+ .. Parameter-of-Com-methods-label:
577
+ .. table:: *Parameter of Com methods*
578
+
579
+ +----+-----+-------------+
580
+ |Name|Type |Description |
581
+ +====+=====+=============+
582
+ |cls |class|current class|
583
+ +----+-----+-------------+
584
+ |dic |TyDic|Dictionary |
585
+ +----+-----+-------------+
586
+
587
+ timer.py
588
+ ========
589
+
590
+ Static classes
591
+ --------------
592
+
593
+ The Module ``timer.py`` contains the following classes
594
+
595
+
596
+ .. Static-classes-of-module-timer-label:
597
+ .. table:: *Static classes of module timer.py*
598
+
599
+ +---------+---------------+
600
+ |Name |Description |
601
+ +=========+===============+
602
+ |Timestamp|Timestamp class|
603
+ +---------+---------------+
604
+ |Timer |Timer class |
605
+ +---------+---------------+
606
+
607
+
608
+ timer.py Class: Timer
609
+ ---------------------
610
+
611
+ Timer Methods
612
+ ^^^^^^^^^^^^^
613
+
614
+ .. Methods-of-Timer-label:
615
+ .. table:: *Methods of Timer*
616
+
617
+ +----------+-------------------------------------------+
618
+ |Name |Description |
619
+ +==========+======+====================================+
620
+ |sh_task_id|static|Show task id |
621
+ +----------+------+------------------------------------+
622
+ |start |class |Start Timer |
623
+ +----------+------+------------------------------------+
624
+ |end |class |End Timer and Log Timer info message|
625
+ +----------+------+------------------------------------+
626
+
627
+ Timer Method: sh_task_id
628
+ ^^^^^^^^^^^^^^^^^^^^^^^^
629
+
630
+ Parameter
631
+ """""""""
632
+
633
+ .. Parameter-of-Timer-sh_task_id-method-label:
634
+ .. table:: *Parameter of Timer sh_task_id method*
635
+
636
+ +--------+-----+-----------------+
637
+ |Name |Type |Description |
638
+ +========+=====+=================+
639
+ |d_pacmod|TyDic|pacmod dictionary|
640
+ +--------+-----+-----------------+
641
+ |class_id|TyAny|Class Id |
642
+ +--------+-----+-----------------+
643
+ |parms |TnAny|Parameter |
644
+ +--------+-----+-----------------+
645
+ |sep |TyStr|Separator |
646
+ +--------+-----+-----------------+
647
+
648
+ Return Value
649
+ """"""""""""
650
+
651
+ .. Return values-of-Timer-sh_task_id-method-label:
652
+ .. table:: *Return values of Timer sh_task_id method*
653
+
654
+ +----+-----+-----------+
655
+ |Name|Type |Description|
656
+ +====+=====+===========+
657
+ | |TyStr|Task Id |
658
+ +----+-----+-----------+
659
+
660
+ Timer Method: start
661
+ ^^^^^^^^^^^^^^^^^^^
662
+
663
+ Parameter
664
+ """""""""
665
+
666
+ .. Parameter-of-start-method-label:
667
+ .. table:: *Parameter of start method*
668
+
669
+ +--------+-----+-------------+
670
+ |Name |Type |Description |
671
+ +========+=====+=============+
672
+ |cls |class|current class|
673
+ +--------+-----+-------------+
674
+ |class_id|TyAny|Class Id |
675
+ +--------+-----+-------------+
676
+ |parms |TnAny|Parameter |
677
+ +--------+-----+-------------+
678
+ |sep |TyStr|Separator |
679
+ +--------+-----+-------------+
680
+
681
+ Timer Method: end
682
+ ^^^^^^^^^^^^^^^^^
683
+
684
+ Parameter
685
+ """""""""
686
+
687
+ .. Parameter-of-end-method-label:
688
+ .. table:: *Parameter of end method*
689
+
690
+ +--------+-----+-------------+
691
+ |Name |Type |Description |
692
+ +========+=====+=============+
693
+ |cls |class|current class|
694
+ +--------+-----+-------------+
695
+ |class_id|TyAny|Class Id |
696
+ +--------+-----+-------------+
697
+ |parms |TnAny|Parameter |
698
+ +--------+-----+-------------+
699
+ |sep |TyStr|Separator |
700
+ +--------+-----+-------------+
701
+
702
+ Base Modules
703
+ ************
704
+
705
+ Overview
706
+ ========
707
+
708
+ .. Base Modules-label:
709
+ .. table:: *Base Modules*
710
+
711
+ +---------+----------------------------+
712
+ |Name |Decription |
713
+ +=========+============================+
714
+ |app\_.py |Application setup module |
715
+ +---------+----------------------------+
716
+ |cfg\_.py |Configuration setup module |
717
+ +---------+----------------------------+
718
+ |exit\_.py|Exit Manafement setup module|
719
+ +---------+----------------------------+
720
+ |log\_.py |Log management setup module |
721
+ +---------+----------------------------+
722
+
723
+ Application setup module: app\_.py
724
+ ==================================
725
+
726
+ The Module ``app.py`` contains a single static class ``App_``.
727
+
728
+ appl\_.py Class: App\_
729
+ ----------------------
730
+
731
+ The static class ``App_`` contains the subsequent static variables and methods
732
+
733
+ Appl\_ Static Variables
734
+ ^^^^^^^^^^^^^^^^^^^^^^^
735
+
736
+ .. Static-variables-of-App_-label:
737
+ .. table:: *Static Variables of App_*
738
+
739
+ +---------------+-------+-------+---------------------+
740
+ |Name |Type |Default|Description |
741
+ +===============+=======+=======+=====================+
742
+ |sw_init |TyBool |False |initialisation switch|
743
+ +---------------+-------+-------+---------------------+
744
+ |httpmod |TyDic |None |http modus |
745
+ +---------------+-------+-------+---------------------+
746
+ |sw_replace_keys|TnBool |False |replace keys switch |
747
+ +---------------+-------+-------+---------------------+
748
+ |keys |TnArr |None |Keys array |
749
+ +---------------+-------+-------+---------------------+
750
+ |reqs |TyDic |None |Requests dictionary |
751
+ +---------------+-------+-------+---------------------+
752
+ |app |TyDic |None |Appliction dictionary|
753
+ +---------------+-------+-------+---------------------+
754
+
755
+ Appl\_ Methods
756
+ ^^^^^^^^^^^^^^
757
+
758
+ .. Methods-of-App_-label:
759
+ .. table:: *Methods of App_*
760
+
761
+ +----+------+------------------------------------+
762
+ |Name|Method|Description |
763
+ +====+======+====================================+
764
+ |init|class |initialise static variables of class|
765
+ | | |if they are not allready initialized|
766
+ +----+------+------------------------------------+
767
+ |sh |class |show (return) class |
768
+ +----+------+------------------------------------+
769
+
770
+ Appl\_ Method: init
771
+ ^^^^^^^^^^^^^^^^^^^
772
+
773
+ Parameter
774
+ """""""""
775
+
776
+ .. Parameter-of-init-label:
777
+ .. table:: *Parameter of init*
778
+
779
+ +---------+-----+-----------------+
780
+ |Name |Type |Description |
781
+ +=========+=====+=================+
782
+ |cls |class|Current class |
783
+ +---------+-----+-----------------+
784
+ |\**kwargs|TyAny|Keyword arguments|
785
+ +---------+-----+-----------------+
786
+
787
+ Appl\_ Method: sh
788
+ ^^^^^^^^^^^^^^^^^
789
+
790
+ .. Parameter-of-sh-label:
791
+ .. table:: *Parameter of sh*
792
+
793
+ +---------+-----+-----------------+
794
+ |Name |Type |Description |
795
+ +=========+=====+=================+
796
+ |cls |class|Current class |
797
+ +---------+-----+-----------------+
798
+ |\**kwargs|TyAny|Keyword arguments|
799
+ +---------+-----+-----------------+
800
+
801
+ Return Value
802
+ """"""""""""
803
+
804
+ .. Return-values-of_sh-label:
805
+ .. table:: *Return values of sh*
806
+
807
+ +----+--------+-----------+
808
+ |Name|Type |Description|
809
+ +====+========+===========+
810
+ |log |TyLogger|Logger |
811
+ +----+--------+-----------+
812
+
813
+ cfg\_.py
814
+ ========
815
+
816
+ The Base module cfg\_.py contains a single static class ``Cfg_``.
817
+
818
+ Cfg\_ (Static class of Base Module cfg\_.py)
819
+ --------------------------------------------
820
+
821
+ The static class ``Cfg_`` contains the subsequent static variables and methods
822
+
823
+ Static Variables
824
+ ^^^^^^^^^^^^^^^^
825
+
826
+ .. Static-variables-of-Cfg_-label:
827
+ .. table:: *Static Variables of Cfg_*
828
+
829
+ +----+-----+-------+--------------------+
830
+ |Name|Type |Default|Description |
831
+ +====+=====+=======+====================+
832
+ |cfg |TyDic|None |Configuration object|
833
+ +----+-----+-------+--------------------+
834
+
835
+ Cfg\_ Methods
836
+ ^^^^^^^^^^^^^
837
+
838
+ .. Methods-of-Cfg_-label:
839
+ .. table:: *Methods of Cfg_*
840
+
841
+ +----+------+-----------------------------------+
842
+ |Name|Method|Description |
843
+ +====+======+===================================+
844
+ |sh |class |read pacmod yaml file into class |
845
+ | | |variable cls.dic and return cls.cfg|
846
+ +----+------+-----------------------------------+
847
+
848
+ Cfg\_ Method: sh
849
+ ^^^^^^^^^^^^^^^^
850
+
851
+ Parameter
852
+ """""""""
853
+
854
+ .. Parameter-of-init-label:
855
+ .. table:: *Parameter of sh*
856
+
857
+ +--------+--------+-----------------+
858
+ |Name |Type |Description |
859
+ +========+========+=================+
860
+ |cls |class |Current class |
861
+ +--------+--------+-----------------+
862
+ |log |TyLogger|Logger |
863
+ +--------+--------+-----------------+
864
+ |d_pacmod|TyDic |pacmod dictionary|
865
+ +--------+--------+-----------------+
866
+
867
+ Return Value
868
+ """"""""""""
869
+
870
+ .. Return-values-of-sh-label:
871
+ .. table:: *Return values of sh*
872
+
873
+ +-------+-----+-----------+
874
+ |Name |Type |Description|
875
+ +=======+=====+===========+
876
+ |cls.cfg|TyDic| |
877
+ +-------+-----+-----------+
878
+
879
+ exit\_.py
880
+ =========
881
+
882
+ The Base module exit\_.py contains a single static class ``Exit_``.
883
+
884
+ Exit\_ (Static class of Base module exit\_.py)
885
+ ----------------------------------------------
886
+
887
+ The static Class ``Exit_`` contains the subsequent static variables and methods.
888
+
889
+ Exit\_ Static Variables
890
+ ^^^^^^^^^^^^^^^^^^^^^^^
891
+
892
+ .. Exit_-Static variables-label:
893
+ .. table:: *Exit_ Static variables*
894
+
895
+ +--------------+------+-------+---------------------+
896
+ |Name |Type |Default|Description |
897
+ +==============+======+=======+=====================+
898
+ |sw_init |TyBool|False |initialisation switch|
899
+ +--------------+------+-------+---------------------+
900
+ |sw_critical |TyBool|False |critical switch |
901
+ +--------------+------+-------+---------------------+
902
+ |sw_stop |TyBool|False |stop switch |
903
+ +--------------+------+-------+---------------------+
904
+ |sw_interactive|TyBool|False |interactive switch |
905
+ +--------------+------+-------+---------------------+
906
+
907
+ Exit\_ Methods
908
+ ^^^^^^^^^^^^^^
909
+
910
+ .. Exit_-Methods-label:
911
+ .. table:: *Exit_ Methods*
912
+
913
+ +----+------+------------------------------------+
914
+ |Name|Method|Description |
915
+ +====+======+====================================+
916
+ |init|class |initialise static variables of class|
917
+ | | |if they are not allready initialized|
918
+ +----+------+------------------------------------+
919
+ |sh |class |show (return) class |
920
+ +----+------+------------------------------------+
921
+
922
+ Exit\_ Method: init
923
+ ^^^^^^^^^^^^^^^^^^^
924
+
925
+ Parameter
926
+ """""""""
927
+
928
+ .. Parameter-of-init-label:
929
+ .. table:: *Parameter of init*
930
+
931
+ +---------+-----+-----------------+
932
+ |Name |Type |Description |
933
+ +=========+=====+=================+
934
+ |cls |class|Current class |
935
+ +---------+-----+-----------------+
936
+ |\**kwargs|TyAny|Keyword arguments|
937
+ +---------+-----+-----------------+
938
+
939
+ Exit\_ Method: sh
940
+ ^^^^^^^^^^^^^^^^^
941
+
942
+ Parameter
943
+ """""""""
944
+
945
+ .. Parameter-of-sh-label:
946
+ .. table:: *Parameter of sh*
947
+
948
+ +---------+-----+-----------------+
949
+ |Name |Type |Description |
950
+ +=========+=====+=================+
951
+ |cls |class|Current class |
952
+ +---------+-----+-----------------+
953
+ |\**kwargs|TyAny|Keyword arguments|
954
+ +---------+-----+-----------------+
955
+
956
+ Return Value
957
+ """"""""""""
958
+
959
+ .. Return-values-of-sh-label:
960
+ .. table:: *Return values of sh*
961
+
962
+ +----+-----+-------------+
963
+ |Name|Type |Description |
964
+ +====+=====+=============+
965
+ |cls |class|Current class|
966
+ +----+-----+-------------+
967
+
968
+ log\_.py
969
+ ========
970
+
971
+ The Base module log\_.py contains a single static class ``Log_``.
972
+
973
+ Log\_ (Static class of Base module log\_.py)
974
+ --------------------------------------------
975
+
976
+ The static Class ``Log_`` contains the subsequent static variables and methods.
977
+
978
+ Log\_ Static Variables
979
+ ^^^^^^^^^^^^^^^^^^^^^^
980
+
981
+ .. Static variables-of-Log_-label:
982
+ .. table:: *Static variables of Log_*
983
+
984
+ +--------+--------+---------------------------------+---------------------+
985
+ |Name |Type |Default |Description |
986
+ +========+========+=================================+=====================+
987
+ |sw_init |TyBool |False |initialisation switch|
988
+ +--------+--------+---------------------------------+---------------------+
989
+ |log |TyLogger|logging.getLogger('dummy_logger')|Logger |
990
+ +--------+--------+---------------------------------+---------------------+
991
+ |username|TyStr |psutil.Process().username() |current username |
992
+ +--------+--------+---------------------------------+---------------------+
993
+
994
+ Log\_ Methods
995
+ ^^^^^^^^^^^^^
996
+
997
+ .. Methods-of-class-Log_-label:
998
+ .. table:: *Methods of class Log_*
999
+
1000
+ +------+------+-------------------------------------+
1001
+ |Name |Method|Description |
1002
+ +======+======+=====================================+
1003
+ |init |class |initialise static variables of class |
1004
+ | | |if they are not allready initialized.|
1005
+ +------+------+-------------------------------------+
1006
+ |sh_cfg|class |Read configuration template into |
1007
+ | | |configuration dictionary and return |
1008
+ | | |changed configuration dictionary. |
1009
+ +------+------+-------------------------------------+
1010
+ |sh |class |show (return) current class |
1011
+ +------+------+-------------------------------------+
1012
+
1013
+ Log\_ Method: init
1014
+ ^^^^^^^^^^^^^^^^^^
1015
+
1016
+ Parameter
1017
+ """""""""
1018
+
1019
+ .. Parameter-of-init-label:
1020
+ .. table:: *Parameter of init*
1021
+
1022
+ +---------+-----+-------------------+
1023
+ |Name |Type |Description |
1024
+ +=========+=====+===================+
1025
+ |cls |class|Current class |
1026
+ +---------+-----+-------------------+
1027
+ |com |class|Communication class|
1028
+ +---------+-----+-------------------+
1029
+ |\**kwargs|TyAny|Keyword arguments |
1030
+ +---------+-----+-------------------+
1031
+
1032
+ Log\_ Method: sh_cfg
1033
+ ^^^^^^^^^^^^^^^^^^^^
1034
+
1035
+ Parameter
1036
+ """""""""
1037
+
1038
+ .. Parameter-of-sh_cfg-label:
1039
+ .. table:: *Parameter of sh_cfg*
1040
+
1041
+ +---------+-----+-------------------+
1042
+ |Name |Type |Description |
1043
+ +=========+=====+===================+
1044
+ |cls |class|Current class |
1045
+ +---------+-----+-------------------+
1046
+ |com |class|Communication class|
1047
+ +---------+-----+-------------------+
1048
+ |\**kwargs|TyAny|Keyword arguments |
1049
+ +---------+-----+-------------------+
1050
+
1051
+ Return Value
1052
+ """"""""""""
1053
+
1054
+ .. Return-values-of-sh-label:
1055
+ .. table:: *Return values of sh*
1056
+
1057
+ +----+-----+-------------+
1058
+ |Name|Type |Description |
1059
+ +====+=====+=============+
1060
+ |cls |class|Current class|
1061
+ +----+-----+-------------+
1062
+
1063
+ sh (Method of class Log\_)
1064
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
1065
+
1066
+ Parameter
1067
+ """""""""
1068
+
1069
+ .. Parameter-of-sh-label:
1070
+ .. table:: *Parameter of sh*
1071
+
1072
+ +---------+-----+-----------------+
1073
+ |Name |Type |Description |
1074
+ +=========+=====+=================+
1075
+ |cls |class|Current class |
1076
+ +---------+-----+-----------------+
1077
+ |\**kwargs|TyAny|Keyword arguments|
1078
+ +---------+-----+-----------------+
1079
+
1080
+ Return Value
1081
+ """"""""""""
1082
+
1083
+ .. Return-values-of-sh-label:
1084
+ .. table:: *Return values of sh*
1085
+
1086
+ +----+-----+-------------+
1087
+ |Name|Type |Description |
1088
+ +====+=====+=============+
1089
+ |cls |class|Current class|
1090
+ +----+-----+-------------+
1091
+
1092
+ Utility Modules
1093
+ ***************
1094
+
1095
+ Overview
1096
+ ========
1097
+
1098
+ .. Utility-Modules-label:
1099
+ .. table:: *Utility Modules*
1100
+
1101
+ +-----------+--------------------------------+
1102
+ |Name |Functionality |
1103
+ +===========+================================+
1104
+ |aoeqstmt.py|Manage array of equate statement|
1105
+ +-----------+--------------------------------+
1106
+ |date.py |Manage dates |
1107
+ +-----------+--------------------------------+
1108
+ |doeq.py |Manage dictionary of equates |
1109
+ +-----------+--------------------------------+
1110
+ |fnc.py |Manage functions |
1111
+ +-----------+--------------------------------+
1112
+ |pacmod.py |Manage Packages and Modules |
1113
+ +-----------+--------------------------------+
1114
+ |str.py |Manage strings |
1115
+ +-----------+--------------------------------+
1116
+
1117
+ aoeqstmt.py
1118
+ ===========
1119
+
1120
+ Static classes
1121
+ --------------
1122
+
1123
+ .. Static-clasess-of-module-aoeqstmt-label:
1124
+ .. table:: *Static classes of Module aoeqstmt*
1125
+
1126
+ +-------------------------------------------------------+
1127
+ |Static Class |
1128
+ +---------+---------------------------------------------+
1129
+ |Name |Description |
1130
+ +=========+=============================================+
1131
+ |AoEqStmt |Manage Commandline Arguments as Equate String|
1132
+ +---------+---------------------------------------------+
1133
+
1134
+ aoeqtmt.py Class: AoEqStmt
1135
+ --------------------------
1136
+
1137
+ The static Class ``AoEqStmt`` contains the subsequent variables and methods
1138
+
1139
+ AoEqStmt Variables
1140
+ ^^^^^^^^^^^^^^^^^^^
1141
+
1142
+ .. Variables-of-AoEqStmt-class-label:
1143
+ .. table:: *Variables of AoEqStmt class*
1144
+
1145
+ +----------------------------------------------------+
1146
+ |Static Variables |
1147
+ +---------------+------+-------+---------------------+
1148
+ |Name |Type |Default|Description |
1149
+ +===============+======+=======+=====================+
1150
+ |sw_init |TyBool|False |initialisation switch|
1151
+ +---------------+------+-------+---------------------+
1152
+ |httpmod |TyDic |None |http modus |
1153
+ +---------------+------+-------+---------------------+
1154
+ |sw_replace_keys|TnBool|False |replace keys switch |
1155
+ +---------------+------+-------+---------------------+
1156
+ |keys |TnArr |None |Keys array |
1157
+ +---------------+------+-------+---------------------+
1158
+ |reqs |TyDic |None |Requests dictionary |
1159
+ +---------------+------+-------+---------------------+
1160
+ |app |TyDic |None |Appliction dictionary|
1161
+ +---------------+------+-------+---------------------+
1162
+
1163
+ AoEqStmt Methods
1164
+ ^^^^^^^^^^^^^^^^
1165
+
1166
+ .. Methods-of-AoEqStmt-class-label:
1167
+ .. table:: *Methods of AoEqStmt class*
1168
+
1169
+ +--------------+---------------------------------------------------------+
1170
+ |Name |Description |
1171
+ +==============+=========================================================+
1172
+ |_set_by_pacmod|set item "current pacmod dictionary" of equate dictionary|
1173
+ +--------------+---------------------------------------------------------+
1174
+ |_set_by_prof |set item "show profile" of equate dictionary |
1175
+ +--------------+---------------------------------------------------------+
1176
+ |sh |set and show (return) equate dictionary |
1177
+ +--------------+---------------------------------------------------------+
1178
+
1179
+ AoEqStmt Method: _set_pacmod_curr
1180
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1181
+
1182
+ Description
1183
+ """""""""""
1184
+
1185
+ Set item "pacmod_curr" of equate dictionary using item "tenant".
1186
+
1187
+ Parameter
1188
+ """""""""
1189
+
1190
+ .. Parameter-of-AoEqStmt-Method-set_pacmod_curr-label:
1191
+ .. table:: *Parameter Value of AoEqStmt method set_pacmod_curr*
1192
+
1193
+ +--------+-----+---------------------+
1194
+ |Name |Type |Description |
1195
+ +========+=====+=====================+
1196
+ |d_eq |TyDic|Dictionary of Equates|
1197
+ +--------+-----+---------------------+
1198
+ |root_cls|class|Root Class |
1199
+ +--------+-----+---------------------+
1200
+
1201
+ AoEqStmt Method: _set_sh_prof
1202
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1203
+
1204
+ Description
1205
+ """""""""""
1206
+
1207
+ Set item "sh_prof" of equate dictionary using profile initialiation function.
1208
+
1209
+ Parameter
1210
+ """""""""
1211
+
1212
+ .. Parameter-of-Argv-Method-set_sh_prof-label:
1213
+ .. table:: *Parameter Value of Argv method set_sh_prof*
1214
+
1215
+ +-------+------+-------------------------------+
1216
+ |Name |Type |Description |
1217
+ +=======+======+===============================+
1218
+ |d_eq |TyDic |Dictionary of Equates |
1219
+ +-------+------+-------------------------------+
1220
+ |sh_prof|TyCall|Profile initialisation function|
1221
+ +-------+------+-------------------------------+
1222
+
1223
+ AoEqStmt Method: sh
1224
+ ^^^^^^^^^^^^^^^^^^^
1225
+
1226
+ Description
1227
+ """""""""""
1228
+
1229
+ Set and show (return) equate dictionary
1230
+
1231
+ Parameter
1232
+ """""""""
1233
+
1234
+ .. Parameter-of-Argv-method-sh-label:
1235
+ .. table:: *Parameter Value of Argv method sh*
1236
+
1237
+ +-------+------+-------------------------------+
1238
+ |Name |Type |Description |
1239
+ +=======+======+===============================+
1240
+ |a_s_eq |TyDic |Dictionary of Equates |
1241
+ +-------+------+-------------------------------+
1242
+ |sh_prof|TyCall|Profile initialisation function|
1243
+ +-------+------+-------------------------------+
1244
+
1245
+ doeq.py
1246
+ =======
1247
+
1248
+ The Module ``doeq.py`` contains a single static class ``DoEq``.
1249
+
1250
+ Modul doeq.py Class: DoEq
1251
+ -------------------------
1252
+
1253
+ The static class ``DoEq`` is used to manage Commandline Arguments of Equate Strings.
1254
+
1255
+ DoEq Methods
1256
+ ^^^^^^^^^^^^
1257
+
1258
+ .. Methods-of-static-class-DoEq-label:
1259
+ .. table:: *Methods of static class DoEq*
1260
+
1261
+ +--------+--------------------------------------------------+
1262
+ |Name |Description |
1263
+ +========+==================================================+
1264
+ |sh_value|Show value of equate string provided by single |
1265
+ | |command line argument |
1266
+ +--------+--------------------------------------------------+
1267
+ |sh_d_eq |Show Dictionary created by parsing array of equate|
1268
+ | |strings provided by commandline arguments |
1269
+ +--------+--------------------------------------------------+
1270
+
1271
+ DoEq Method: sh_value
1272
+ ^^^^^^^^^^^^^^^^^^^^^
1273
+
1274
+ Parameter
1275
+ """""""""
1276
+
1277
+ .. Parameter-of-sh_value-method-label:
1278
+ .. table:: *Parameter of sh_value method*
1279
+
1280
+ +-------------+-----+-------------------------------------+
1281
+ |Name |Type |Description |
1282
+ +=============+=====+=====================================+
1283
+ |cls |class|current class |
1284
+ +-------------+-----+-------------------------------------+
1285
+ |key |TyStr|Key of equate string |
1286
+ +-------------+-----+-------------------------------------+
1287
+ |value |TyAny|Value of equate string |
1288
+ +-------------+-----+-------------------------------------+
1289
+ |d_valid_parms|TnDic|Dictionary of valid keys (parameters)|
1290
+ +-------------+-----+-------------------------------------+
1291
+ |cls |class|current class |
1292
+ +-------------+-----+-------------------------------------+
1293
+ |a_s_eq |TyArr|array of equate strings |
1294
+ +-------------+-----+-------------------------------------+
1295
+ |d_valid_parms|TnDic|Dictionary of valid parameter-keys |
1296
+ +-------------+-----+-------------------------------------+
1297
+
1298
+ Return Values
1299
+ """""""""""""
1300
+
1301
+ .. Return-values-of-sh_value-method-label:
1302
+ .. table:: *Return values of sh_value method*
1303
+
1304
+ +-----+-----+----------------------+
1305
+ |Name |Type |Description |
1306
+ +=====+=====+======================+
1307
+ |value|Any |converted Value of the|
1308
+ | | |equate-string |
1309
+ | | |according Value type |
1310
+ | | |d_valid_parms |
1311
+ +-----+-----+----------------------+
1312
+ |d_eq |TnDic|Dictiony of parameter |
1313
+ | | |key, values |
1314
+ +-----+-----+----------------------+
1315
+
1316
+ Utility Module: pacmod.py
1317
+ =========================
1318
+
1319
+ The Utility module pacmod.py contains a single static class ``PacMod``.
1320
+
1321
+ pacmod.py Class: PaMmod
1322
+ -----------------------
1323
+
1324
+ PacMod Methods
1325
+ ^^^^^^^^^^^^^^
1326
+
1327
+ .. PacMod-Methods-label:
1328
+ .. table:: *PacMod Methods*
1329
+
1330
+ +-----------------+-------------------------------------------------+
1331
+ |Name |Description |
1332
+ +=================+=================================================+
1333
+ |sh_d_pacmod |create and show (return) pacmod dictionary |
1334
+ +-----------------+-------------------------------------------------+
1335
+ |sh_path_cfg_yaml |show pacmod file path of the yaml file |
1336
+ | |<pacmod module>.yaml in the data directory of the|
1337
+ | |current module of the current package |
1338
+ +-----------------+-------------------------------------------------+
1339
+ |sh_path_keys_yaml|show pacmod file path type for the yaml file |
1340
+ | |keys.yml in the data directory of the current |
1341
+ | |module of the current pacḱage |
1342
+ +-----------------+-------------------------------------------------+
1343
+ |sh_pacmod_type |show pacmod type directory path |
1344
+ +-----------------+-------------------------------------------------+
1345
+ |sh_file_path |show pacmod file path |
1346
+ +-----------------+-------------------------------------------------+
1347
+ |sh_pattern |show pacmod file path pattern |
1348
+ +-----------------+-------------------------------------------------+
1349
+ |sh_path_cfg_log |show file path of log configuration file |
1350
+ +-----------------+-------------------------------------------------+
1351
+ |sh_d_pacmod |show pacmod dictionary |
1352
+ +-----------------+-------------------------------------------------+
1353
+
1354
+ PacMod Method: sh_d_pacmod
1355
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
1356
+
1357
+ Parameter
1358
+ """""""""
1359
+
1360
+ .. Parameter-of-module-sh_d_pacmod-label:
1361
+ .. table:: *Parameter of method sh_d_pacmod*
1362
+
1363
+ +--------+-----+-----------------+
1364
+ |Name |Type |Description |
1365
+ +========+=====+=================+
1366
+ |root_cls|class|root class |
1367
+ +--------+-----+-----------------+
1368
+ |tenant |Any | |
1369
+ +--------+-----+-----------------+
1370
+
1371
+ PacMod Method: sh_path_cfg_yaml
1372
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1373
+
1374
+ Parameter
1375
+ """""""""
1376
+
1377
+ .. Parameter-of-module-sh_path_cfg_yaml-label:
1378
+ .. table:: *Parameter of method sh_path_cfg_yaml*
1379
+
1380
+ +------+-----+-----------------+
1381
+ |Name |Type |Description |
1382
+ +======+=====+=================+
1383
+ |pacmod|TyDic| |
1384
+ +------+-----+-----------------+
1385
+
1386
+ PacMod Method: sh_path_cfg_yaml
1387
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1388
+
1389
+ Parameter
1390
+ """""""""
1391
+
1392
+ .. Parameter-of-module-sh_path_cfg_yaml-label:
1393
+ .. table:: *Parameter of method sh_path_cfg_yaml*
1394
+
1395
+ +------+-----+-----------------+
1396
+ |Name |Type |Description |
1397
+ +======+=====+=================+
1398
+ |pacmod|TyDic| |
1399
+ +------+-----+-----------------+
1400
+ |type\_|Tystr| |
1401
+ +------+-----+-----------------+
1402
+
1403
+ PacMod Method: sh_path_cfg_yaml
1404
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1405
+
1406
+ Parameter
1407
+ """""""""
1408
+
1409
+ .. Parameter-of-module-sh_path_cfg_yaml-label:
1410
+ .. table:: *Parameter of method sh_path_cfg_yaml*
1411
+
1412
+ +------+-----+-----------------+
1413
+ |Name |Type |Description |
1414
+ +======+=====+=================+
1415
+ |pacmod|TyDic| |
1416
+ +------+-----+-----------------+
1417
+ |type\_|str | |
1418
+ +------+-----+-----------------+
1419
+
1420
+ PacMod Method: sh_path_cfg_yaml
1421
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1422
+
1423
+ Parameter
1424
+ """""""""
1425
+
1426
+ .. Parameter-of-module-sh_path_cfg_yaml-label:
1427
+ .. table:: *Parameter of method sh_path_cfg_yaml*
1428
+
1429
+ +---------+-----+-----------------+
1430
+ |Name |Type |Description |
1431
+ +=========+=====+=================+
1432
+ |cls |class|current class |
1433
+ +---------+-----+-----------------+
1434
+ |pacmod |TyDic| |
1435
+ +---------+-----+-----------------+
1436
+ |type\_ |TyStr| |
1437
+ +---------+-----+-----------------+
1438
+ |suffix |TyStr| |
1439
+ +---------+-----+-----------------+
1440
+ |pid |TyStr| |
1441
+ +---------+-----+-----------------+
1442
+ |ts |TyAny| |
1443
+ +---------+-----+-----------------+
1444
+ |\**kwargs|TyAny|keyword arguments|
1445
+ +---------+-----+-----------------+
1446
+
1447
+ PacMod Method: sh_path_cfg_yaml
1448
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1449
+
1450
+ Parameter
1451
+ """""""""
1452
+
1453
+ .. Parameter-of-method-sh_path_cfg_yaml-label:
1454
+ .. table:: *Parameter of method sh_path_cfg_yaml*
1455
+
1456
+ +---------+-----+-----------------+
1457
+ |Name |Type |Description |
1458
+ +=========+=====+=================+
1459
+ |pacmod |TyDic| |
1460
+ +---------+-----+-----------------+
1461
+ |type\_ |TyStr| |
1462
+ +---------+-----+-----------------+
1463
+ |suffix |TyStr| |
1464
+ +---------+-----+-----------------+
1465
+ |\**kwargs|TyAny|keyword arguments|
1466
+ +---------+-----+-----------------+
1467
+
1468
+ PacMod Method: sh_path_cfg_yaml
1469
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1470
+
1471
+ Parameter
1472
+ """""""""
1473
+
1474
+ .. Parameter-of-method-sh_path_cfg_yaml-label:
1475
+ .. table:: *Parameter of method sh_path_cfg_yaml*
1476
+
1477
+ +--------+-----+-----------------+
1478
+ |Name |Type |Description |
1479
+ +========+=====+=================+
1480
+ |pacmod |TnDic| |
1481
+ +--------+-----+-----------------+
1482
+ |filename|TyStr| |
1483
+ +--------+-----+-----------------+
1484
+
1485
+ PacMod Method: sh_d_pacmod
1486
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
1487
+
1488
+ Parameter
1489
+ """""""""
1490
+
1491
+ .. Parameter-of-method-sh_d_pacmod-label:
1492
+ .. table:: *Parameter of method sh_d_pacmod*
1493
+
1494
+ +---------+-----+-----------------+
1495
+ |Name |Type |Description |
1496
+ +=========+=====+=================+
1497
+ |cls |class|current class |
1498
+ +---------+-----+-----------------+
1499
+ |\**kwargs|TyAny|keyword arguments|
1500
+ +---------+-----+-----------------+
1501
+
1502
+ I/O Control Modules
1503
+ *******************
1504
+
1505
+ jinja2\_.py
1506
+ ===========
1507
+
1508
+ The Module ``jinja2_.py`` contains the single static class Jinja2
1509
+
1510
+ jinja2\_.py Class: Jinja2
1511
+ -------------------------
1512
+
1513
+ The static Class ``Jinja2`` provides I/O Control methods for Jinja2 files;
1514
+ it contains the subsequent methods.
1515
+
1516
+ Jinja2 Methods
1517
+ ^^^^^^^^^^^^^^
1518
+
1519
+ .. Methods-of-static-class-Jinja2-label:
1520
+ .. table:: *Methods of static class Jinja2*
1521
+
1522
+ +-------------+------------------------------+
1523
+ |Name |Description |
1524
+ +=============+==============================+
1525
+ |read |Read log file path with jinja |
1526
+ +-------------+------------------------------+
1527
+ |read_template|Read log file path with jinja2|
1528
+ +-------------+------------------------------+
1529
+
1530
+ Jinja2 Method: read
1531
+ ^^^^^^^^^^^^^^^^^^^
1532
+
1533
+ Parameter
1534
+ """""""""
1535
+
1536
+ .. Parameter-of-Jinja2-method-read-label:
1537
+ .. table:: *Parameter Value of Jinja2 method read*
1538
+
1539
+ +--------+-----+---------------+
1540
+ |Name |Type |Description |
1541
+ +========+=====+===============+
1542
+ |pacmod |TnDic| |
1543
+ +--------+-----+---------------+
1544
+ |filename|str | |
1545
+ +--------+-----+---------------+
1546
+
1547
+ Jinja2 Method: read_template
1548
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1549
+
1550
+ Parameter
1551
+ """""""""
1552
+
1553
+ .. Parameter-of-Jinja2-method-read-template-label:
1554
+ .. table:: *Parameter Value of Jinja2 method read template*
1555
+
1556
+ +--------+-----+---------------+
1557
+ |Name |Type |Description |
1558
+ +========+=====+===============+
1559
+ |pacmod |TnDic| |
1560
+ +--------+-----+---------------+
1561
+ |filename|TnAny| |
1562
+ +--------+-----+---------------+
1563
+
1564
+ yaml\_.py
1565
+ =========
1566
+
1567
+ The Module ``yaml_.py`` contains one static class ``Yaml``
1568
+
1569
+ Module yaml.py Class: Yaml
1570
+ --------------------------
1571
+
1572
+ The static Class ``Yaml`` provides I/O Control functions for Yaml files;
1573
+ it contains the subsequent methods
1574
+
1575
+ Yaml Methods
1576
+ ^^^^^^^^^^^^
1577
+
1578
+ .. Yaml-Methods-label:
1579
+ .. table:: *Yaml Methods*
1580
+
1581
+ +----+------------------------------------------------------+
1582
+ |Name|Description |
1583
+ +====+======================================================+
1584
+ |load|Load yaml string into any object using yaml loader. |
1585
+ | |Default is yaml.safeloader |
1586
+ +----+------------------------------------------------------+
1587
+ |read|Read yaml file path into any object using yaml loader.|
1588
+ | |Default loader is yaml.safeloader |
1589
+ +----+------------------------------------------------------+
1590
+
1591
+ Yaml Method: load
1592
+ ^^^^^^^^^^^^^^^^^
1593
+
1594
+ Parameter
1595
+ """""""""
1596
+
1597
+ .. Parameter-of-Yaml-method-load-label:
1598
+ .. table:: *Parameter Value of Yaml method load*
1599
+
1600
+ +------+-----+--------------+
1601
+ |Name |Type |Description |
1602
+ +======+=====+==============+
1603
+ |string|TyStr| |
1604
+ +------+-----+--------------+
1605
+ |loader|TyStr| |
1606
+ +------+-----+--------------+
1607
+
1608
+ Yaml Method: read
1609
+ ^^^^^^^^^^^^^^^^^
1610
+
1611
+ Parameter
1612
+ """""""""
1613
+
1614
+ .. Parameter-of-Yaml-method-read-label:
1615
+ .. table:: *Parameter Value of Yaml method read*
1616
+
1617
+ +------+-----+--------------+
1618
+ |Name |Type |Description |
1619
+ +======+=====+==============+
1620
+ |path |TyStr| |
1621
+ +------+-----+--------------+
1622
+ |loader|TyStr| |
1623
+ +------+-----+--------------+
1624
+
1625
+ Appendix
1626
+ ********
1627
+
1628
+ .. contents:: **Table of Content**