xaal.lib 0.7.5__py3-none-any.whl → 0.7.6__py3-none-any.whl
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.
xaal/lib/tools.py
CHANGED
|
@@ -30,7 +30,7 @@ from configobj import ConfigObj
|
|
|
30
30
|
from . import config
|
|
31
31
|
from .bindings import UUID
|
|
32
32
|
|
|
33
|
-
XAAL_DEVTYPE_PATTERN = '^[a-zA-Z][a-zA-Z0-9_-]
|
|
33
|
+
XAAL_DEVTYPE_PATTERN = '^[a-zA-Z][a-zA-Z0-9_-]*\\.[a-zA-Z][a-zA-Z0-9_-]*$'
|
|
34
34
|
|
|
35
35
|
def get_cfg_filename(name, cfg_dir=config.conf_dir):
|
|
36
36
|
if name.startswith('xaal.'):
|
|
@@ -39,7 +39,7 @@ def get_cfg_filename(name, cfg_dir=config.conf_dir):
|
|
|
39
39
|
if not os.path.isdir(cfg_dir):
|
|
40
40
|
print("Your configuration directory doesn't exist: [%s]" % cfg_dir)
|
|
41
41
|
return os.path.join(cfg_dir, filename)
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
def load_cfg_file(filename):
|
|
44
44
|
""" load .ini file and return it as dict"""
|
|
45
45
|
if os.path.isfile(filename):
|
|
@@ -112,7 +112,7 @@ def pass2key(passphrase):
|
|
|
112
112
|
memlimit: crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE
|
|
113
113
|
"""
|
|
114
114
|
buf = passphrase.encode('utf-8')
|
|
115
|
-
KEY_BYTES = pysodium.crypto_pwhash_scryptsalsa208sha256_SALTBYTES #32
|
|
115
|
+
KEY_BYTES = pysodium.crypto_pwhash_scryptsalsa208sha256_SALTBYTES #32
|
|
116
116
|
# this should be:
|
|
117
117
|
# salt = bytes(KEY_BYTES)
|
|
118
118
|
# but due to bytes() stupid stuff in py2 we need this awfull stuff
|
|
@@ -127,4 +127,3 @@ def reduce_addr(addr):
|
|
|
127
127
|
"""return a string based addred without all digits"""
|
|
128
128
|
tmp = addr.str
|
|
129
129
|
return tmp[:5] + '..' + tmp[-5:]
|
|
130
|
-
|
|
@@ -15,8 +15,8 @@ xaal/lib/helpers.py,sha256=mXxVxv7fTV9O9xO1BROhVYBTmdviMl6qx3Il8q1ox8w,2679
|
|
|
15
15
|
xaal/lib/messages.py,sha256=W7RdHOtX_DT0bCeJAzs0p4KkU5KXofZUCMQYQsOuFF8,11571
|
|
16
16
|
xaal/lib/network.py,sha256=3HWuQ0afQ-X6_-En2rFeqYJ0Scy5IEHfd0qTldxxCFo,3130
|
|
17
17
|
xaal/lib/test.py,sha256=laVbgG4HtQquxDzixAG-Cka-HO4kpb7YUsLL267mGPU,3006
|
|
18
|
-
xaal/lib/tools.py,sha256=
|
|
19
|
-
xaal.lib-0.7.
|
|
20
|
-
xaal.lib-0.7.
|
|
21
|
-
xaal.lib-0.7.
|
|
22
|
-
xaal.lib-0.7.
|
|
18
|
+
xaal/lib/tools.py,sha256=qLZZOfA1VvQWJjGR46JWdAwWzv8Uog2TUTw7lK34CZg,3832
|
|
19
|
+
xaal.lib-0.7.6.dist-info/METADATA,sha256=2G3bWHGiju5IwDw2rJ_rEy48_khPSpfFGUaUBvSvscU,3809
|
|
20
|
+
xaal.lib-0.7.6.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
|
21
|
+
xaal.lib-0.7.6.dist-info/top_level.txt,sha256=UZ2WDkN02ztkh1OrsjrW8Kmj4n3WqC0BQxaEYOYfWa0,5
|
|
22
|
+
xaal.lib-0.7.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|