libs5-python 1.0.0__tar.gz → 1.0.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.
Files changed (26) hide show
  1. {libs5_python-1.0.0 → libs5_python-1.0.1}/PKG-INFO +1 -1
  2. {libs5_python-1.0.0 → libs5_python-1.0.1}/pyproject.toml +1 -1
  3. libs5_python-1.0.1/src/net/hypki/File.py +25 -0
  4. libs5_python-1.0.1/src/net/hypki/StringUtils.py +20 -0
  5. libs5_python-1.0.1/src/net/hypki/args.py +21 -0
  6. libs5_python-1.0.0/src/net/hypki/args.py +0 -19
  7. {libs5_python-1.0.0 → libs5_python-1.0.1}/.gitignore +0 -0
  8. {libs5_python-1.0.0 → libs5_python-1.0.1}/LICENSE +0 -0
  9. {libs5_python-1.0.0 → libs5_python-1.0.1}/MANIFEST.in +0 -0
  10. {libs5_python-1.0.0 → libs5_python-1.0.1}/README.md +0 -0
  11. {libs5_python-1.0.0 → libs5_python-1.0.1}/install.sh +0 -0
  12. {libs5_python-1.0.0 → libs5_python-1.0.1}/setup.py +0 -0
  13. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/__init__.py +0 -0
  14. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/Logger.py +0 -0
  15. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/__init__.py +0 -0
  16. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/apiutils.py +0 -0
  17. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/asserts.py +0 -0
  18. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/io.py +0 -0
  19. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/log.py +0 -0
  20. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/math.py +0 -0
  21. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/random.py +0 -0
  22. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/regex.py +0 -0
  23. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/system.py +0 -0
  24. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/tests/__init__.py +0 -0
  25. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/tests/kepler.py +0 -0
  26. {libs5_python-1.0.0 → libs5_python-1.0.1}/src/net/hypki/tests/numpytest.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: libs5-python
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: libs5 python scripts, and helper classes (useg e.g. in BEANS software)
5
5
  Project-URL: Homepage, https://gitlab.com/ahypki/libs5-python
6
6
  Project-URL: Issues, https://gitlab.com/ahypki/libs5-python/-/issues/
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "libs5-python"
7
- version = "1.0.0"
7
+ version = "1.0.1"
8
8
  authors = [
9
9
  { name="Arkadiusz Hypki" },
10
10
  ]
@@ -0,0 +1,25 @@
1
+ '''
2
+ Created on Oct 14, 2025
3
+
4
+ @author: ahypki
5
+ '''
6
+ import os
7
+
8
+ class File(object):
9
+ '''
10
+ classdocs
11
+ '''
12
+ __absPath = None
13
+
14
+ def __init__(self, path):
15
+ '''
16
+ Constructor
17
+ '''
18
+ self.setAbsPath(path)
19
+
20
+ def getAbsPath(self):
21
+ return self.__absPath
22
+
23
+
24
+ def setAbsPath(self, path):
25
+ self.__absPath = os.path.abspath(path)
@@ -0,0 +1,20 @@
1
+ '''
2
+ Created on Oct 14, 2025
3
+
4
+ @author: ahypki
5
+ '''
6
+
7
+ class StringUtils(object):
8
+ '''
9
+ classdocs
10
+ '''
11
+
12
+
13
+ def __init__(self, params):
14
+ '''
15
+ Constructor
16
+ '''
17
+ pass
18
+
19
+ def notEmpty(s): # @NoSelf
20
+ return len(s.strip()) > 0 if s is not None else False
@@ -0,0 +1,21 @@
1
+ '''
2
+ Created on 15-06-2013
3
+
4
+ @author: ahypki
5
+ '''
6
+
7
+ import sys
8
+
9
+ class ArgUtils:
10
+
11
+ def getString(name, defaultvalue): # @NoSelf
12
+ for i in range(len(sys.argv)):
13
+ if sys.argv[i] == "--" + name or sys.argv[i] == "-" + name:
14
+ return sys.argv[i + 1]
15
+ return defaultvalue
16
+
17
+ def isArgPresent(name): # @NoSelf
18
+ for i in range(len(sys.argv)):
19
+ if sys.argv[i] == "--" + name or sys.argv[i] == "-" + name:
20
+ return True
21
+ return False
@@ -1,19 +0,0 @@
1
- '''
2
- Created on 15-06-2013
3
-
4
- @author: ahypki
5
- '''
6
-
7
- import sys
8
-
9
- def getArgString(name, defaultvalue):
10
- for i in range(len(sys.argv)):
11
- if sys.argv[i] == "--" + name or sys.argv[i] == "-" + name:
12
- return sys.argv[i + 1]
13
- return defaultvalue
14
-
15
- def isArgPresent(name):
16
- for i in range(len(sys.argv)):
17
- if sys.argv[i] == "--" + name or sys.argv[i] == "-" + name:
18
- return True
19
- return False
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes