PythonExtensionsCollection 0.15.0__tar.gz → 0.15.1__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.
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PKG-INFO +2 -2
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection/Comparison/CComparison.py +1 -1
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection/Comparison/__init__.py +1 -1
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection/File/CFile.py +1 -1
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection/File/__init__.py +1 -1
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection/Folder/CFolder.py +1 -1
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection/Folder/__init__.py +1 -1
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection/PythonExtensionsCollection.pdf +0 -0
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection/String/CString.py +20 -9
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection/String/__init__.py +1 -1
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection/Utils/CUtils.py +1 -1
- PythonExtensionsCollection-0.15.1/PythonExtensionsCollection/Utils/__init__.py +13 -0
- PythonExtensionsCollection-0.15.1/PythonExtensionsCollection/__init__.py +13 -0
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection/version.py +3 -3
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection.egg-info/PKG-INFO +2 -2
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/README.rst +3 -3
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/setup.py +1 -1
- PythonExtensionsCollection-0.15.0/PythonExtensionsCollection/Utils/__init__.py +0 -13
- PythonExtensionsCollection-0.15.0/PythonExtensionsCollection/__init__.py +0 -13
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/LICENSE +0 -0
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection.egg-info/SOURCES.txt +0 -0
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection.egg-info/dependency_links.txt +0 -0
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection.egg-info/requires.txt +0 -0
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/PythonExtensionsCollection.egg-info/top_level.txt +0 -0
- {PythonExtensionsCollection-0.15.0 → PythonExtensionsCollection-0.15.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PythonExtensionsCollection
|
|
3
|
-
Version: 0.15.
|
|
3
|
+
Version: 0.15.1
|
|
4
4
|
Summary: Additional Python functions
|
|
5
5
|
Home-page: https://github.com/test-fullautomation/python-extensions-collection
|
|
6
6
|
Author: Holger Queckenstedt
|
|
@@ -127,7 +127,7 @@ Contributors
|
|
|
127
127
|
License
|
|
128
128
|
-------
|
|
129
129
|
|
|
130
|
-
Copyright 2020-
|
|
130
|
+
Copyright 2020-2023 Robert Bosch GmbH
|
|
131
131
|
|
|
132
132
|
Licensed under the Apache License, Version 2.0 (the \"License\"); you
|
|
133
133
|
may not use this file except in compliance with the License. You may
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# **************************************************************************************************************
|
|
2
2
|
#
|
|
3
|
-
# Copyright 2020-
|
|
3
|
+
# Copyright 2020-2023 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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# **************************************************************************************************************
|
|
2
2
|
#
|
|
3
|
-
# Copyright 2020-
|
|
3
|
+
# Copyright 2020-2023 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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# **************************************************************************************************************
|
|
2
2
|
#
|
|
3
|
-
# Copyright 2020-
|
|
3
|
+
# Copyright 2020-2023 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.
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# **************************************************************************************************************
|
|
2
2
|
#
|
|
3
|
-
# Copyright 2020-
|
|
3
|
+
# Copyright 2020-2023 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.
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
#
|
|
21
21
|
# XC-CT/ECA3-Queckenstedt
|
|
22
22
|
#
|
|
23
|
-
#
|
|
23
|
+
# 19.10.2023
|
|
24
24
|
#
|
|
25
25
|
# **************************************************************************************************************
|
|
26
26
|
|
|
27
27
|
# -- import standard Python modules
|
|
28
|
-
import os, ntpath, re
|
|
28
|
+
import os, ntpath, platform, re
|
|
29
29
|
|
|
30
30
|
# **************************************************************************************************************
|
|
31
31
|
|
|
@@ -47,7 +47,8 @@ Normalizes local paths, paths to local network resources and internet addresses
|
|
|
47
47
|
|
|
48
48
|
/ *Condition*: required / *Type*: str /
|
|
49
49
|
|
|
50
|
-
The path to be normalized
|
|
50
|
+
The path to be normalized. Paths can start with environment variables. Accepted are notations for both Windows
|
|
51
|
+
(``%ENVVAR%``) and Linux (``${ENVVAR}``). Under Windows also the Linux notation will be resolved.
|
|
51
52
|
|
|
52
53
|
* ``bWin``
|
|
53
54
|
|
|
@@ -94,10 +95,6 @@ Normalizes local paths, paths to local network resources and internet addresses
|
|
|
94
95
|
|
|
95
96
|
if sPath is not None:
|
|
96
97
|
|
|
97
|
-
# -- expand Windows environment variables
|
|
98
|
-
if bExpandEnvVars is True:
|
|
99
|
-
sPath = os.path.expandvars(sPath)
|
|
100
|
-
|
|
101
98
|
# - remove leading and trailing horizontal space
|
|
102
99
|
sPath = sPath.strip(" \t\r\n")
|
|
103
100
|
|
|
@@ -115,6 +112,20 @@ Normalizes local paths, paths to local network resources and internet addresses
|
|
|
115
112
|
# - remove trailing slash or backslash (maybe at end of path to folder)
|
|
116
113
|
sPath = sPath.rstrip("/\\")
|
|
117
114
|
|
|
115
|
+
# -- expand environment variables
|
|
116
|
+
if bExpandEnvVars is True:
|
|
117
|
+
sPattern_envvar = r"^\$\{(\w+?)\}" # check for Linux notation (shall be usable also under Windows)
|
|
118
|
+
regex_envvar = re.compile(sPattern_envvar)
|
|
119
|
+
sPlatformSystem = platform.system()
|
|
120
|
+
sPathModified = sPath
|
|
121
|
+
for sEnvVar in regex_envvar.findall(sPath):
|
|
122
|
+
sSearch = "${" + sEnvVar + "}"
|
|
123
|
+
if sPlatformSystem == "Windows":
|
|
124
|
+
sReplace = "%" + sEnvVar + "%"
|
|
125
|
+
sPathModified = sPathModified.replace(sSearch, sReplace)
|
|
126
|
+
# eof for sEnvVar in regex_envvar.findall(sPath):
|
|
127
|
+
sPath = os.path.expandvars(sPathModified)
|
|
128
|
+
|
|
118
129
|
# --------------------------------------------------------------------------------------------------------------
|
|
119
130
|
# consider internet addresses and local network resources
|
|
120
131
|
# --------------------------------------------------------------------------------------------------------------
|
|
@@ -480,7 +491,7 @@ while walking through the file system.
|
|
|
480
491
|
|
|
481
492
|
/ *Condition*: required / *Type*: str /
|
|
482
493
|
|
|
483
|
-
The input string that has to be investigated.
|
|
494
|
+
The input string that has to be investigated.
|
|
484
495
|
|
|
485
496
|
* ``bCaseSensitive``
|
|
486
497
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# **************************************************************************************************************
|
|
2
2
|
#
|
|
3
|
-
# Copyright 2020-
|
|
3
|
+
# Copyright 2020-2023 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.
|
|
@@ -0,0 +1,13 @@
|
|
|
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.
|
|
@@ -0,0 +1,13 @@
|
|
|
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,6 +1,6 @@
|
|
|
1
1
|
# **************************************************************************************************************
|
|
2
2
|
#
|
|
3
|
-
# Copyright 2020-
|
|
3
|
+
# Copyright 2020-2023 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.
|
|
22
|
-
VERSION_DATE = "
|
|
21
|
+
VERSION = "0.15.1"
|
|
22
|
+
VERSION_DATE = "19.10.2023"
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PythonExtensionsCollection
|
|
3
|
-
Version: 0.15.
|
|
3
|
+
Version: 0.15.1
|
|
4
4
|
Summary: Additional Python functions
|
|
5
5
|
Home-page: https://github.com/test-fullautomation/python-extensions-collection
|
|
6
6
|
Author: Holger Queckenstedt
|
|
@@ -127,7 +127,7 @@ Contributors
|
|
|
127
127
|
License
|
|
128
128
|
-------
|
|
129
129
|
|
|
130
|
-
Copyright 2020-
|
|
130
|
+
Copyright 2020-2023 Robert Bosch GmbH
|
|
131
131
|
|
|
132
132
|
Licensed under the Apache License, Version 2.0 (the \"License\"); you
|
|
133
133
|
may not use this file except in compliance with the License. You may
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.. Copyright 2020-
|
|
1
|
+
.. Copyright 2020-2023 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.
|
|
@@ -86,7 +86,7 @@ A detailed documentation of the **PythonExtensionsCollection** can be found here
|
|
|
86
86
|
Feedback
|
|
87
87
|
--------
|
|
88
88
|
|
|
89
|
-
To give us a feedback, you can send an email to `Thomas Pollerspöck <mailto:Thomas.Pollerspoeck@de.bosch.com>`_
|
|
89
|
+
To give us a feedback, you can send an email to `Thomas Pollerspöck <mailto:Thomas.Pollerspoeck@de.bosch.com>`_
|
|
90
90
|
|
|
91
91
|
In case you want to report a bug or request any interesting feature, please don't hesitate to raise a ticket.
|
|
92
92
|
|
|
@@ -107,7 +107,7 @@ Contributors
|
|
|
107
107
|
License
|
|
108
108
|
-------
|
|
109
109
|
|
|
110
|
-
Copyright 2020-
|
|
110
|
+
Copyright 2020-2023 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-
|
|
3
|
+
# Copyright 2020-2023 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.
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2022 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-2022 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.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|