libs5-python 1.0.10__tar.gz → 1.0.12__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 (28) hide show
  1. {libs5_python-1.0.10 → libs5_python-1.0.12}/.gitignore +5 -1
  2. {libs5_python-1.0.10 → libs5_python-1.0.12}/PKG-INFO +1 -1
  3. {libs5_python-1.0.10 → libs5_python-1.0.12}/pyproject.toml +1 -1
  4. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/File.py +3 -1
  5. libs5_python-1.0.12/src/net/hypki/UserIO.py +21 -0
  6. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/args.py +3 -2
  7. {libs5_python-1.0.10 → libs5_python-1.0.12}/LICENSE +0 -0
  8. {libs5_python-1.0.10 → libs5_python-1.0.12}/MANIFEST.in +0 -0
  9. {libs5_python-1.0.10 → libs5_python-1.0.12}/README.md +0 -0
  10. {libs5_python-1.0.10 → libs5_python-1.0.12}/install.sh +0 -0
  11. {libs5_python-1.0.10 → libs5_python-1.0.12}/requirements.txt +0 -0
  12. {libs5_python-1.0.10 → libs5_python-1.0.12}/setup.py +0 -0
  13. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/__init__.py +0 -0
  14. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/Ini.py +0 -0
  15. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/Logger.py +0 -0
  16. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/StringUtils.py +0 -0
  17. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/__init__.py +0 -0
  18. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/apiutils.py +0 -0
  19. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/asserts.py +0 -0
  20. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/io.py +0 -0
  21. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/log.py +0 -0
  22. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/math.py +0 -0
  23. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/random.py +0 -0
  24. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/regex.py +0 -0
  25. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/system.py +0 -0
  26. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/tests/__init__.py +0 -0
  27. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/tests/kepler.py +0 -0
  28. {libs5_python-1.0.10 → libs5_python-1.0.12}/src/net/hypki/tests/numpytest.py +0 -0
@@ -47,4 +47,8 @@ dist/libs5_python-1.0.7.tar.gz
47
47
  dist/libs5_python-1.0.8-py3-none-any.whl
48
48
  dist/libs5_python-1.0.8.tar.gz
49
49
  dist/libs5_python-1.0.9-py3-none-any.whl
50
- dist/libs5_python-1.0.9.tar.gz
50
+ dist/libs5_python-1.0.9.tar.gz
51
+ dist/libs5_python-1.0.10-py3-none-any.whl
52
+ dist/libs5_python-1.0.10.tar.gz
53
+ dist/libs5_python-1.0.11-py3-none-any.whl
54
+ dist/libs5_python-1.0.11.tar.gz
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: libs5-python
3
- Version: 1.0.10
3
+ Version: 1.0.12
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.10"
7
+ version = "1.0.12"
8
8
  authors = [
9
9
  { name="Arkadiusz Hypki" },
10
10
  ]
@@ -5,6 +5,7 @@ Created on Oct 14, 2025
5
5
  '''
6
6
  import os
7
7
  import shutil
8
+ from net.hypki.io import append_to_file
8
9
 
9
10
  class File(object):
10
11
  '''
@@ -53,5 +54,6 @@ class File(object):
53
54
  def remove(self):
54
55
  os.remove(self.__absPath)
55
56
 
56
-
57
+ def append(self, line):
58
+ append_to_file(self.getAbsPath(), line)
57
59
 
@@ -0,0 +1,21 @@
1
+ '''
2
+ Created on Feb 6, 2026
3
+
4
+ @author: ahypki
5
+ '''
6
+ from net.hypki.io import readString
7
+
8
+ class UserIO(object):
9
+ '''
10
+ classdocs
11
+ '''
12
+
13
+
14
+ def __init__(self, params):
15
+ '''
16
+ Constructor
17
+ '''
18
+ pass
19
+
20
+ def readInput(prompt): # @NoSelf
21
+ return readString(prompt)
@@ -12,13 +12,14 @@ class ArgUtils:
12
12
  v = []
13
13
  for i in range(len(sys.argv)):
14
14
  if sys.argv[i] == "--" + name or sys.argv[i] == "-" + name:
15
- v.append(sys.argv[i + 1].strip())
15
+ if i + 1 < len(sys.argv):
16
+ v.append(sys.argv[i + 1].strip())
16
17
  return v
17
18
 
18
19
  def getString(name, defaultvalue): # @NoSelf
19
20
  for i in range(len(sys.argv)):
20
21
  if sys.argv[i] == "--" + name or sys.argv[i] == "-" + name:
21
- return sys.argv[i + 1].strip()
22
+ return sys.argv[i + 1].strip() if i + 1 < len(sys.argv) else defaultvalue
22
23
  return defaultvalue
23
24
 
24
25
  def isArgPresent(name): # @NoSelf
File without changes
File without changes
File without changes
File without changes
File without changes