libs5-python 1.0.4__tar.gz → 1.0.6__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 (27) hide show
  1. {libs5_python-1.0.4 → libs5_python-1.0.6}/.gitignore +5 -1
  2. {libs5_python-1.0.4 → libs5_python-1.0.6}/PKG-INFO +1 -1
  3. {libs5_python-1.0.4 → libs5_python-1.0.6}/pyproject.toml +1 -1
  4. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/File.py +2 -2
  5. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/Logger.py +6 -4
  6. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/StringUtils.py +1 -1
  7. {libs5_python-1.0.4 → libs5_python-1.0.6}/LICENSE +0 -0
  8. {libs5_python-1.0.4 → libs5_python-1.0.6}/MANIFEST.in +0 -0
  9. {libs5_python-1.0.4 → libs5_python-1.0.6}/README.md +0 -0
  10. {libs5_python-1.0.4 → libs5_python-1.0.6}/install.sh +0 -0
  11. {libs5_python-1.0.4 → libs5_python-1.0.6}/requirements.txt +0 -0
  12. {libs5_python-1.0.4 → libs5_python-1.0.6}/setup.py +0 -0
  13. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/__init__.py +0 -0
  14. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/Ini.py +0 -0
  15. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/__init__.py +0 -0
  16. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/apiutils.py +0 -0
  17. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/args.py +0 -0
  18. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/asserts.py +0 -0
  19. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/io.py +0 -0
  20. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/log.py +0 -0
  21. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/math.py +0 -0
  22. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/random.py +0 -0
  23. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/regex.py +0 -0
  24. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/system.py +0 -0
  25. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/tests/__init__.py +0 -0
  26. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/tests/kepler.py +0 -0
  27. {libs5_python-1.0.4 → libs5_python-1.0.6}/src/net/hypki/tests/numpytest.py +0 -0
@@ -35,4 +35,8 @@ dist/libs5_python-1.0.1.tar.gz
35
35
  dist/libs5_python-1.0.2-py3-none-any.whl
36
36
  dist/libs5_python-1.0.2.tar.gz
37
37
  dist/libs5_python-1.0.3-py3-none-any.whl
38
- dist/libs5_python-1.0.3.tar.gz
38
+ dist/libs5_python-1.0.3.tar.gz
39
+ dist/libs5_python-1.0.4-py3-none-any.whl
40
+ dist/libs5_python-1.0.4.tar.gz
41
+ dist/libs5_python-1.0.5-py3-none-any.whl
42
+ dist/libs5_python-1.0.5.tar.gz
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: libs5-python
3
- Version: 1.0.4
3
+ Version: 1.0.6
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.4"
7
+ version = "1.0.6"
8
8
  authors = [
9
9
  { name="Arkadiusz Hypki" },
10
10
  ]
@@ -5,7 +5,7 @@ Created on Oct 14, 2025
5
5
  '''
6
6
  import os
7
7
  import shutil
8
- from pathlib import Path
8
+ from pathlib import PosixPath
9
9
 
10
10
  class File(object):
11
11
  '''
@@ -32,7 +32,7 @@ class File(object):
32
32
 
33
33
 
34
34
  def setAbsPath(self, path):
35
- self.__absPath = Path(path).expanduser()# os.path.abspath(path)
35
+ self.__absPath = PosixPath(path).expanduser()# os.path.abspath(path)
36
36
 
37
37
  def exists(self):
38
38
  return os.path.exists(self.__absPath)
@@ -23,27 +23,29 @@ class Logger:
23
23
  DEBUG = False
24
24
  INFO = True
25
25
 
26
+ PRINT_LEVEL = True
27
+
26
28
  # def blue(s): # @NoSelf
27
29
  # return Logger.BLUE + s + Logger.BLUE_END
28
30
 
29
31
  def debug(msg, printLogLevel = True, printNewLine = True): # @NoSelf
30
32
  if Logger.DEBUG:
31
- console.print(("DEBUG " if printLogLevel else '')
33
+ console.print(("DEBUG " if printLogLevel and Logger.PRINT_LEVEL else '')
32
34
  + str(msg),
33
35
  end = ('\n' if printNewLine else ''))
34
36
 
35
37
  def info(msg, printLogLevel = True, printNewLine = True): # @NoSelf
36
38
  if Logger.INFO:
37
- console.print(("INFO " if printLogLevel else '')
39
+ console.print(("INFO " if printLogLevel and Logger.PRINT_LEVEL else '')
38
40
  + str(msg),
39
41
  end = ('\n' if printNewLine else ''))
40
42
 
41
43
  def warn(msg, printLogLevel = True, printNewLine = True): # @NoSelf
42
- console.print(("WARN " if printLogLevel else '')
44
+ console.print(("WARN " if printLogLevel and Logger.PRINT_LEVEL else '')
43
45
  + str(Logger.WARNING + msg + Logger.WARNING_END),
44
46
  end = ('\n' if printNewLine else ''))
45
47
 
46
48
  def error(msg, printLogLevel = True, printNewLine = True): # @NoSelf
47
- console.print(("ERROR " if printLogLevel else '')
49
+ console.print(("ERROR " if printLogLevel and Logger.PRINT_LEVEL else '')
48
50
  + str(msg),
49
51
  end = ('\n' if printNewLine else ''))
@@ -17,7 +17,7 @@ class StringUtils(object):
17
17
  pass
18
18
 
19
19
  def notEmpty(s): # @NoSelf
20
- return len(s.strip()) > 0 if s is not None else False
20
+ return not StringUtils.isEmpty(s) #len(s.strip()) > 0 if s is not None else False
21
21
 
22
22
  def isEmpty(s): # @NoSelf
23
23
  return s is None or len(s.strip()) == 0 if s is not None else False
File without changes
File without changes
File without changes
File without changes
File without changes