PythonExtensionsCollection 0.15.1__tar.gz → 0.16.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.
Files changed (25) hide show
  1. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PKG-INFO +14 -21
  2. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection/Comparison/CComparison.py +2 -2
  3. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection/Comparison/__init__.py +1 -1
  4. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection/File/CFile.py +2 -2
  5. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection/File/__init__.py +1 -1
  6. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection/Folder/CFolder.py +2 -2
  7. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection/Folder/__init__.py +1 -1
  8. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection/PythonExtensionsCollection.pdf +0 -0
  9. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection/String/CString.py +2 -2
  10. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection/String/__init__.py +1 -1
  11. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection/Utils/CUtils.py +21 -5
  12. PythonExtensionsCollection-0.16.0/PythonExtensionsCollection/Utils/__init__.py +13 -0
  13. PythonExtensionsCollection-0.16.0/PythonExtensionsCollection/__init__.py +13 -0
  14. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection/version.py +3 -3
  15. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection.egg-info/PKG-INFO +14 -21
  16. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/README.rst +2 -2
  17. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/setup.py +2 -2
  18. PythonExtensionsCollection-0.15.1/PythonExtensionsCollection/Utils/__init__.py +0 -13
  19. PythonExtensionsCollection-0.15.1/PythonExtensionsCollection/__init__.py +0 -13
  20. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/LICENSE +0 -0
  21. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection.egg-info/SOURCES.txt +0 -0
  22. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection.egg-info/dependency_links.txt +0 -0
  23. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection.egg-info/requires.txt +0 -0
  24. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/PythonExtensionsCollection.egg-info/top_level.txt +0 -0
  25. {PythonExtensionsCollection-0.15.1 → PythonExtensionsCollection-0.16.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PythonExtensionsCollection
3
- Version: 0.15.1
3
+ Version: 0.16.0
4
4
  Summary: Additional Python functions
5
5
  Home-page: https://github.com/test-fullautomation/python-extensions-collection
6
6
  Author: Holger Queckenstedt
@@ -17,21 +17,19 @@ Requires-Python: >=3.0
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
 
20
- Package Description
21
- ===================
20
+ # Package Description
22
21
 
23
22
  The **PythonExtensionsCollection** extends the functionality of Python
24
23
  by some useful functions that are not available in Python immediately.
25
24
 
26
- How to install
27
- --------------
25
+ ## How to install
28
26
 
29
27
  The **PythonExtensionsCollection** can be installed in two different
30
28
  ways.
31
29
 
32
30
  1. Installation via PyPi (recommended for users)
33
31
 
34
- ``` {.}
32
+ ```
35
33
  pip install PythonExtensionsCollection
36
34
  ```
37
35
 
@@ -43,7 +41,7 @@ ways.
43
41
  - Clone the **python-extensions-collection** repository to your
44
42
  machine.
45
43
 
46
- ``` {.}
44
+ ```
47
45
  git clone https://github.com/test-fullautomation/python-extensions-collection.git
48
46
  ```
49
47
 
@@ -58,7 +56,7 @@ ways.
58
56
  related packages you can find in the file `requirements.txt` in
59
57
  the repository root folder. Use pip to install them:
60
58
 
61
- ``` {.}
59
+ ```
62
60
  pip install -r ./requirements.txt
63
61
  ```
64
62
 
@@ -77,7 +75,7 @@ ways.
77
75
  to find **LaTeX**. This is defined in the **GenPackageDoc**
78
76
  configuration file
79
77
 
80
- ``` {.}
78
+ ```
81
79
  packagedoc\packagedoc_config.json
82
80
  ```
83
81
 
@@ -90,19 +88,17 @@ ways.
90
88
  - Use the following command to install the
91
89
  **PythonExtensionsCollection**:
92
90
 
93
- ``` {.}
91
+ ```
94
92
  setup.py install
95
93
  ```
96
94
 
97
- Package Documentation
98
- ---------------------
95
+ ## Package Documentation
99
96
 
100
97
  A detailed documentation of the **PythonExtensionsCollection** can be
101
98
  found here:
102
99
  [PythonExtensionsCollection.pdf](https://github.com/test-fullautomation/python-extensions-collection/blob/develop/PythonExtensionsCollection/PythonExtensionsCollection.pdf)
103
100
 
104
- Feedback
105
- --------
101
+ ## Feedback
106
102
 
107
103
  To give us a feedback, you can send an email to [Thomas
108
104
  Pollerspöck](mailto:Thomas.Pollerspoeck@de.bosch.com)
@@ -110,24 +106,21 @@ Pollerspöck](mailto:Thomas.Pollerspoeck@de.bosch.com)
110
106
  In case you want to report a bug or request any interesting feature,
111
107
  please don\'t hesitate to raise a ticket.
112
108
 
113
- Maintainers
114
- -----------
109
+ ## Maintainers
115
110
 
116
111
  [Holger Queckenstedt](mailto:Holger.Queckenstedt@de.bosch.com)
117
112
 
118
113
  [Thomas Pollerspöck](mailto:Thomas.Pollerspoeck@de.bosch.com)
119
114
 
120
- Contributors
121
- ------------
115
+ ## Contributors
122
116
 
123
117
  [Holger Queckenstedt](mailto:Holger.Queckenstedt@de.bosch.com)
124
118
 
125
119
  [Thomas Pollerspöck](mailto:Thomas.Pollerspoeck@de.bosch.com)
126
120
 
127
- License
128
- -------
121
+ ## License
129
122
 
130
- Copyright 2020-2023 Robert Bosch GmbH
123
+ Copyright 2020-2024 Robert Bosch GmbH
131
124
 
132
125
  Licensed under the Apache License, Version 2.0 (the \"License\"); you
133
126
  may not use this file except in compliance with the License. You may
@@ -1,6 +1,6 @@
1
1
  # **************************************************************************************************************
2
2
  #
3
- # Copyright 2020-2023 Robert Bosch GmbH
3
+ # Copyright 2020-2024 Robert Bosch GmbH
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
18
18
  #
19
19
  # CComparison.py
20
20
  #
21
- # XC-CT/ECA3-Queckenstedt
21
+ # XC-HWP/ESW3-Queckenstedt
22
22
  #
23
23
  # 03.04.2023
24
24
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2020-2023 Robert Bosch GmbH
1
+ # Copyright 2020-2024 Robert Bosch GmbH
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # **************************************************************************************************************
2
2
  #
3
- # Copyright 2020-2023 Robert Bosch GmbH
3
+ # Copyright 2020-2024 Robert Bosch GmbH
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
18
18
  #
19
19
  # CFile.py
20
20
  #
21
- # XC-CT/ECA3-Queckenstedt
21
+ # XC-HWP/ESW3-Queckenstedt
22
22
  #
23
23
  # 15.11.2022
24
24
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2020-2023 Robert Bosch GmbH
1
+ # Copyright 2020-2024 Robert Bosch GmbH
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # **************************************************************************************************************
2
2
  #
3
- # Copyright 2020-2023 Robert Bosch GmbH
3
+ # Copyright 2020-2024 Robert Bosch GmbH
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
18
18
  #
19
19
  # CFolder.py
20
20
  #
21
- # XC-CT/ECA3-Queckenstedt
21
+ # XC-HWP/ESW3-Queckenstedt
22
22
  #
23
23
  # 28.06.2022
24
24
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2020-2023 Robert Bosch GmbH
1
+ # Copyright 2020-2024 Robert Bosch GmbH
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # **************************************************************************************************************
2
2
  #
3
- # Copyright 2020-2023 Robert Bosch GmbH
3
+ # Copyright 2020-2024 Robert Bosch GmbH
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
18
18
  #
19
19
  # CString.py
20
20
  #
21
- # XC-CT/ECA3-Queckenstedt
21
+ # XC-HWP/ESW3-Queckenstedt
22
22
  #
23
23
  # 19.10.2023
24
24
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2020-2023 Robert Bosch GmbH
1
+ # Copyright 2020-2024 Robert Bosch GmbH
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # **************************************************************************************************************
2
2
  #
3
- # Copyright 2020-2023 Robert Bosch GmbH
3
+ # Copyright 2020-2025 Robert Bosch GmbH
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -18,9 +18,9 @@
18
18
  #
19
19
  # CUtils.py
20
20
  #
21
- # XC-CT/ECA3-Queckenstedt
21
+ # XC-HWP/ESW3-Queckenstedt
22
22
  #
23
- # 30.05.2023
23
+ # 29.01.2025
24
24
  #
25
25
  # **************************************************************************************************************
26
26
 
@@ -30,6 +30,8 @@ from dotdict import dotdict
30
30
 
31
31
  from PythonExtensionsCollection.String.CString import CString
32
32
  from PythonExtensionsCollection.File.CFile import CFile
33
+ from PythonExtensionsCollection.version import VERSION
34
+ from PythonExtensionsCollection.version import VERSION_DATE
33
35
 
34
36
 
35
37
  # **************************************************************************************************************
@@ -293,7 +295,8 @@ The method ``TypePrint`` computes details about the input variable ``oData``.
293
295
  del self.listGlobalPrefixes[-1] # remove prefix count
294
296
  del self.listGlobalPrefixes[-1] # remove prefix name
295
297
 
296
- elif ( (type(oData) is dotdict) or (str(type(oData)) == "<class 'robot.utils.dotdict.DotDict'>") ):
298
+ # previous version # elif ( (type(oData) is dotdict) or (".DotDict'>" in str(type(oData))) ):
299
+ elif ( (type(oData) is dotdict) or (str(type(oData)).upper().find("DOTDICT") != -1) ):
297
300
  nNrOfElements = len(oData)
298
301
  if nNrOfElements == 0:
299
302
  # -- indicate empty dot dictionary
@@ -330,7 +333,6 @@ The method ``TypePrint`` computes details about the input variable ``oData``.
330
333
 
331
334
  # eof class CTypePrint():
332
335
 
333
-
334
336
  # --------------------------------------------------------------------------------------------------------------
335
337
  # TM***
336
338
 
@@ -437,12 +439,26 @@ It is also possible to let the method dump the list to a text file.
437
439
 
438
440
  # eof def GetInstalledPackages(sOutputFile=None):
439
441
 
442
+ def GetComponentName():
443
+ """**Returns:**
444
+
445
+ * ``ComponentName``
446
+
447
+ / *Type*: str /
448
+
449
+ Full name of the component including the version and the version date.
450
+ """
451
+ return f"PythonExtensionsCollection v. {VERSION}, {VERSION_DATE}"
452
+
453
+ #eof def GetComponentName():
454
+
440
455
  # --------------------------------------------------------------------------------------------------------------
441
456
  #TM***
442
457
 
443
458
  # - make the methods static
444
459
 
445
460
  GetInstalledPackages = staticmethod(GetInstalledPackages)
461
+ GetComponentName = staticmethod(GetComponentName)
446
462
 
447
463
  # eof class CUtils(object):
448
464
 
@@ -0,0 +1,13 @@
1
+ # Copyright 2020-2024 Robert Bosch GmbH
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
@@ -0,0 +1,13 @@
1
+ # Copyright 2020-2024 Robert Bosch GmbH
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
@@ -1,6 +1,6 @@
1
1
  # **************************************************************************************************************
2
2
  #
3
- # Copyright 2020-2023 Robert Bosch GmbH
3
+ # Copyright 2020-2024 Robert Bosch GmbH
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -18,6 +18,6 @@
18
18
  #
19
19
  # Version and date of PythonExtensionsCollection
20
20
  #
21
- VERSION = "0.15.1"
22
- VERSION_DATE = "19.10.2023"
21
+ VERSION = "0.16.0"
22
+ VERSION_DATE = "29.01.2025"
23
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PythonExtensionsCollection
3
- Version: 0.15.1
3
+ Version: 0.16.0
4
4
  Summary: Additional Python functions
5
5
  Home-page: https://github.com/test-fullautomation/python-extensions-collection
6
6
  Author: Holger Queckenstedt
@@ -17,21 +17,19 @@ Requires-Python: >=3.0
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
 
20
- Package Description
21
- ===================
20
+ # Package Description
22
21
 
23
22
  The **PythonExtensionsCollection** extends the functionality of Python
24
23
  by some useful functions that are not available in Python immediately.
25
24
 
26
- How to install
27
- --------------
25
+ ## How to install
28
26
 
29
27
  The **PythonExtensionsCollection** can be installed in two different
30
28
  ways.
31
29
 
32
30
  1. Installation via PyPi (recommended for users)
33
31
 
34
- ``` {.}
32
+ ```
35
33
  pip install PythonExtensionsCollection
36
34
  ```
37
35
 
@@ -43,7 +41,7 @@ ways.
43
41
  - Clone the **python-extensions-collection** repository to your
44
42
  machine.
45
43
 
46
- ``` {.}
44
+ ```
47
45
  git clone https://github.com/test-fullautomation/python-extensions-collection.git
48
46
  ```
49
47
 
@@ -58,7 +56,7 @@ ways.
58
56
  related packages you can find in the file `requirements.txt` in
59
57
  the repository root folder. Use pip to install them:
60
58
 
61
- ``` {.}
59
+ ```
62
60
  pip install -r ./requirements.txt
63
61
  ```
64
62
 
@@ -77,7 +75,7 @@ ways.
77
75
  to find **LaTeX**. This is defined in the **GenPackageDoc**
78
76
  configuration file
79
77
 
80
- ``` {.}
78
+ ```
81
79
  packagedoc\packagedoc_config.json
82
80
  ```
83
81
 
@@ -90,19 +88,17 @@ ways.
90
88
  - Use the following command to install the
91
89
  **PythonExtensionsCollection**:
92
90
 
93
- ``` {.}
91
+ ```
94
92
  setup.py install
95
93
  ```
96
94
 
97
- Package Documentation
98
- ---------------------
95
+ ## Package Documentation
99
96
 
100
97
  A detailed documentation of the **PythonExtensionsCollection** can be
101
98
  found here:
102
99
  [PythonExtensionsCollection.pdf](https://github.com/test-fullautomation/python-extensions-collection/blob/develop/PythonExtensionsCollection/PythonExtensionsCollection.pdf)
103
100
 
104
- Feedback
105
- --------
101
+ ## Feedback
106
102
 
107
103
  To give us a feedback, you can send an email to [Thomas
108
104
  Pollerspöck](mailto:Thomas.Pollerspoeck@de.bosch.com)
@@ -110,24 +106,21 @@ Pollerspöck](mailto:Thomas.Pollerspoeck@de.bosch.com)
110
106
  In case you want to report a bug or request any interesting feature,
111
107
  please don\'t hesitate to raise a ticket.
112
108
 
113
- Maintainers
114
- -----------
109
+ ## Maintainers
115
110
 
116
111
  [Holger Queckenstedt](mailto:Holger.Queckenstedt@de.bosch.com)
117
112
 
118
113
  [Thomas Pollerspöck](mailto:Thomas.Pollerspoeck@de.bosch.com)
119
114
 
120
- Contributors
121
- ------------
115
+ ## Contributors
122
116
 
123
117
  [Holger Queckenstedt](mailto:Holger.Queckenstedt@de.bosch.com)
124
118
 
125
119
  [Thomas Pollerspöck](mailto:Thomas.Pollerspoeck@de.bosch.com)
126
120
 
127
- License
128
- -------
121
+ ## License
129
122
 
130
- Copyright 2020-2023 Robert Bosch GmbH
123
+ Copyright 2020-2024 Robert Bosch GmbH
131
124
 
132
125
  Licensed under the Apache License, Version 2.0 (the \"License\"); you
133
126
  may not use this file except in compliance with the License. You may
@@ -1,4 +1,4 @@
1
- .. Copyright 2020-2023 Robert Bosch GmbH
1
+ .. Copyright 2020-2024 Robert Bosch GmbH
2
2
 
3
3
  .. Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
@@ -107,7 +107,7 @@ Contributors
107
107
  License
108
108
  -------
109
109
 
110
- Copyright 2020-2023 Robert Bosch GmbH
110
+ Copyright 2020-2024 Robert Bosch GmbH
111
111
 
112
112
  Licensed under the Apache License, Version 2.0 (the "License");
113
113
  you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # **************************************************************************************************************
2
2
  #
3
- # Copyright 2020-2023 Robert Bosch GmbH
3
+ # Copyright 2020-2024 Robert Bosch GmbH
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
18
18
  #
19
19
  # setup.py
20
20
  #
21
- # XC-CT/ECA3-Queckenstedt
21
+ # XC-HWP/ESW3-Queckenstedt
22
22
  #
23
23
  # Extends the standard setuptools installation by adding the documentation in PDF format
24
24
  # (requires installation mode) and tidying up some folders.
@@ -1,13 +0,0 @@
1
- # Copyright 2020-2023 Robert Bosch GmbH
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
@@ -1,13 +0,0 @@
1
- # Copyright 2020-2023 Robert Bosch GmbH
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.