libs5-python 1.0.13__tar.gz → 1.0.14__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.
- {libs5_python-1.0.13 → libs5_python-1.0.14}/.gitignore +32 -1
- {libs5_python-1.0.13 → libs5_python-1.0.14}/PKG-INFO +1 -1
- {libs5_python-1.0.13 → libs5_python-1.0.14}/pyproject.toml +1 -1
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/Logger.py +2 -2
- libs5_python-1.0.14/src/net/hypki/StringUtils.py +47 -0
- libs5_python-1.0.14/src/net/hypki/random.py +26 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.0-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.0.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.1-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.1.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.10-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.10.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.11-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.11.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.12-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.12.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.13-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.13.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.14-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.14.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.15-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.15.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.2-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.2.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.3-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.3.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.5-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.5.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.6-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.6.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.7-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.7.tar.gz +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.9-py3-none-any.whl +0 -0
- libs5_python-1.0.13/_KOSZdist/libs5_python-1.0.9.tar.gz +0 -0
- libs5_python-1.0.13/src/net/hypki/StringUtils.py +0 -28
- libs5_python-1.0.13/src/net/hypki/random.py +0 -14
- {libs5_python-1.0.13 → libs5_python-1.0.14}/LICENSE +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/MANIFEST.in +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/README.md +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/install.sh +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/requirements.txt +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/setup.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/__init__.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/File.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/Ini.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/UserIO.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/__init__.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/apiutils.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/args.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/asserts.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/io.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/log.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/math.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/regex.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/system.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/tests/__init__.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/tests/kepler.py +0 -0
- {libs5_python-1.0.13 → libs5_python-1.0.14}/src/net/hypki/tests/numpytest.py +0 -0
|
@@ -65,4 +65,35 @@ src/net/hypki/__pycache__/io.cpython-314.pyc
|
|
|
65
65
|
src/net/hypki/__pycache__/log.cpython-314.pyc
|
|
66
66
|
src/net/hypki/__pycache__/regex.cpython-314.pyc
|
|
67
67
|
src/net/hypki/__pycache__/UserIO.cpython-314.pyc
|
|
68
|
-
src/net/hypki/__pycache__/apiutils.cpython-314.pyc
|
|
68
|
+
src/net/hypki/__pycache__/apiutils.cpython-314.pyc
|
|
69
|
+
_KOSZdist/libs5_python-1.0.0-py3-none-any.whl
|
|
70
|
+
_KOSZdist/libs5_python-1.0.0.tar.gz
|
|
71
|
+
_KOSZdist/libs5_python-1.0.1-py3-none-any.whl
|
|
72
|
+
_KOSZdist/libs5_python-1.0.1.tar.gz
|
|
73
|
+
_KOSZdist/libs5_python-1.0.10-py3-none-any.whl
|
|
74
|
+
_KOSZdist/libs5_python-1.0.10.tar.gz
|
|
75
|
+
_KOSZdist/libs5_python-1.0.11-py3-none-any.whl
|
|
76
|
+
_KOSZdist/libs5_python-1.0.11.tar.gz
|
|
77
|
+
_KOSZdist/libs5_python-1.0.12-py3-none-any.whl
|
|
78
|
+
_KOSZdist/libs5_python-1.0.12.tar.gz
|
|
79
|
+
_KOSZdist/libs5_python-1.0.13-py3-none-any.whl
|
|
80
|
+
_KOSZdist/libs5_python-1.0.13.tar.gz
|
|
81
|
+
_KOSZdist/libs5_python-1.0.14-py3-none-any.whl
|
|
82
|
+
_KOSZdist/libs5_python-1.0.14.tar.gz
|
|
83
|
+
_KOSZdist/libs5_python-1.0.15-py3-none-any.whl
|
|
84
|
+
_KOSZdist/libs5_python-1.0.15.tar.gz
|
|
85
|
+
_KOSZdist/libs5_python-1.0.2-py3-none-any.whl
|
|
86
|
+
_KOSZdist/libs5_python-1.0.2.tar.gz
|
|
87
|
+
_KOSZdist/libs5_python-1.0.3-py3-none-any.whl
|
|
88
|
+
_KOSZdist/libs5_python-1.0.3.tar.gz
|
|
89
|
+
_KOSZdist/libs5_python-1.0.5-py3-none-any.whl
|
|
90
|
+
_KOSZdist/libs5_python-1.0.5.tar.gz
|
|
91
|
+
_KOSZdist/libs5_python-1.0.6-py3-none-any.whl
|
|
92
|
+
_KOSZdist/libs5_python-1.0.6.tar.gz
|
|
93
|
+
_KOSZdist/libs5_python-1.0.7-py3-none-any.whl
|
|
94
|
+
_KOSZdist/libs5_python-1.0.7.tar.gz
|
|
95
|
+
_KOSZdist/libs5_python-1.0.9-py3-none-any.whl
|
|
96
|
+
_KOSZdist/libs5_python-1.0.9.tar.gz
|
|
97
|
+
dist/libs5_python-1.0.13-py3-none-any.whl
|
|
98
|
+
dist/libs5_python-1.0.13.tar.gz
|
|
99
|
+
src/net/hypki/__pycache__/random.cpython-314.pyc
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: libs5-python
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.14
|
|
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/
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'''
|
|
2
|
+
Created on Oct 14, 2025
|
|
3
|
+
|
|
4
|
+
@author: ahypki
|
|
5
|
+
'''
|
|
6
|
+
import json
|
|
7
|
+
|
|
8
|
+
class StringUtils(object):
|
|
9
|
+
'''
|
|
10
|
+
classdocs
|
|
11
|
+
'''
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def __init__(self, params):
|
|
15
|
+
'''
|
|
16
|
+
Constructor
|
|
17
|
+
'''
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
def notEmpty(s): # @NoSelf
|
|
21
|
+
return not StringUtils.isEmpty(s) #len(s.strip()) > 0 if s is not None else False
|
|
22
|
+
|
|
23
|
+
def isEmpty(s): # @NoSelf
|
|
24
|
+
if s is None:
|
|
25
|
+
return True
|
|
26
|
+
if len(s.strip()) == 0:
|
|
27
|
+
return True
|
|
28
|
+
else:
|
|
29
|
+
return False
|
|
30
|
+
|
|
31
|
+
def jsonPretty(json_thing, sort=True, indents=4): # @NoSelf
|
|
32
|
+
if type(json_thing) is str:
|
|
33
|
+
return json.dumps(json.loads(json_thing), sort_keys=sort, indent=indents)
|
|
34
|
+
else:
|
|
35
|
+
return json.dumps(json_thing, sort_keys=sort, indent=indents)
|
|
36
|
+
|
|
37
|
+
def replace(s, what, withWhat): # @NoSelf
|
|
38
|
+
return s.replace(what, withWhat)
|
|
39
|
+
|
|
40
|
+
def replaceInf(s, what, withWhat): # @NoSelf
|
|
41
|
+
i = 0
|
|
42
|
+
while True:
|
|
43
|
+
sprim = s.replace(what, withWhat)
|
|
44
|
+
if len(sprim) == len(s) or i > 1000:
|
|
45
|
+
break;
|
|
46
|
+
i += 1
|
|
47
|
+
return sprim
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'''
|
|
2
|
+
Created on 18-07-2013
|
|
3
|
+
|
|
4
|
+
@author: ahypki
|
|
5
|
+
'''
|
|
6
|
+
|
|
7
|
+
import os
|
|
8
|
+
import uuid
|
|
9
|
+
import base64
|
|
10
|
+
import random
|
|
11
|
+
|
|
12
|
+
class RandomUtils:
|
|
13
|
+
|
|
14
|
+
def nextDouble(max = None): # @NoSelf
|
|
15
|
+
if max is not None:
|
|
16
|
+
return random.random() * max
|
|
17
|
+
else:
|
|
18
|
+
return random.random()
|
|
19
|
+
|
|
20
|
+
def nextInt(minInt = 0, maxInt = 1): # @NoSelf
|
|
21
|
+
return random.randint(minInt, maxInt)
|
|
22
|
+
|
|
23
|
+
def nextUuid():
|
|
24
|
+
return str(uuid.uuid4())
|
|
25
|
+
# r_uuid = base64.urlsafe_b64encode(uuid.uuid4().bytes)
|
|
26
|
+
# return str(r_uuid.replace('=', ''))
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,28 +0,0 @@
|
|
|
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 not StringUtils.isEmpty(s) #len(s.strip()) > 0 if s is not None else False
|
|
21
|
-
|
|
22
|
-
def isEmpty(s): # @NoSelf
|
|
23
|
-
if s is None:
|
|
24
|
-
return True
|
|
25
|
-
if len(s.strip()) == 0:
|
|
26
|
-
return True
|
|
27
|
-
else:
|
|
28
|
-
return False
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|