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_-]*\.[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
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xaal.lib
3
- Version: 0.7.5
3
+ Version: 0.7.6
4
4
  Summary: Official Python stack for xAAL protocol
5
5
  Author-email: Jerome Kerdreux <Jerome.Kerdreux@imt-atlantique.fr>
6
6
  License: GPL License
@@ -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=SnXmOkeTd4eTN8yWn-GyCkV5mYiG-MX4hkF39KnogLE,3841
19
- xaal.lib-0.7.5.dist-info/METADATA,sha256=Rgz65jLN7oCAKVY6YPcMNDdal4Dnz4dTGiy2epRMWkE,3809
20
- xaal.lib-0.7.5.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
21
- xaal.lib-0.7.5.dist-info/top_level.txt,sha256=UZ2WDkN02ztkh1OrsjrW8Kmj4n3WqC0BQxaEYOYfWa0,5
22
- xaal.lib-0.7.5.dist-info/RECORD,,
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,,