xautomata-hive 3.19.0__py3-none-any.whl → 3.19.1__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.
hive/api.py CHANGED
@@ -9,7 +9,6 @@ from requests import HTTPError
9
9
  from hive.decorators import ratelimiter, refresh, paginate, warmstart, timeout_retry
10
10
  from hive.exceptions import UnauthorizedException
11
11
  from hive.infrastrucure_keys import Keys
12
- import warnings
13
12
  import gc
14
13
  import functools
15
14
  import logging
@@ -56,7 +55,7 @@ class ApiManager:
56
55
 
57
56
  def __init__(self, root, user, password, ssl_verify: bool = True):
58
57
 
59
- if 'api/v' not in root: warnings.warn(f'{root} does not have the api/v* in the root, mandatory to point at the API')
58
+ if 'api/v' not in root: logger.warning(f'{root} does not have the api/v* in the root, mandatory to point at the API')
60
59
 
61
60
  self._SSL_verify = ssl_verify
62
61
  self.root = root.rstrip('/')
@@ -411,7 +410,7 @@ class ApiManager:
411
410
  uuid_res.append(val['uuid'])
412
411
 
413
412
  if none_count > 0:
414
- warnings.warn(f'{none_count} elements have not been matched with a uuid and can be found as None in the resutl list')
413
+ logger.warning(f'{none_count} elements have not been matched with a uuid and can be found as None in the resutl list')
415
414
 
416
415
  return uuid_res, get_count, post_count, put_count
417
416
 
@@ -468,7 +467,7 @@ def warning_wrong_parameters(func_name: str, params_from_user: dict, ufficial_pa
468
467
  if ufficial_params_list is None: ufficial_params_list = []
469
468
  for par in params_from_user:
470
469
  if par not in ufficial_params_list:
471
- print(f'WARNING: from {func_name}, {par} is not in the official list of params.')
470
+ logger.warning(f'from {func_name}, {par} is not in the official list of params.')
472
471
 
473
472
 
474
473
  # gli import vengono messi qui per evitare una parziale import di api.py
hive/version.py CHANGED
@@ -1 +1 @@
1
- version = '3.19.0'
1
+ version = '3.19.1'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xautomata-hive
3
- Version: 3.19.0
3
+ Version: 3.19.1
4
4
  Home-page: https://github.com/sherlogic/xautomata-hive.git
5
5
  Author: Enrico Ferro - Andrea Jacassi
6
6
  Author-email:
@@ -1,10 +1,10 @@
1
1
  hive/__init__.py,sha256=UjH5QfSfRGu2FR5_StfVbEtL_fuGS2Z_iZXmf1nx4AE,68
2
- hive/api.py,sha256=uaSEAZ7JQW-6YEF7fBQxqx5OxrU8woBv_fRE6lB1Fk8,41232
2
+ hive/api.py,sha256=i_SBecLvaukef7aJJKON_6DRGidc3M6mezy0wTSVqMY,41218
3
3
  hive/decorators.py,sha256=Lb2mYj7UpFaCzJXGKyLj3SmTK74zKMZgnC7Ys2j1D7g,9975
4
4
  hive/exceptions.py,sha256=kTJSPMViU2ZhF_ENbL_i-skU3YEv_ViJH2PpUQ6ums8,136
5
5
  hive/infrastrucure_keys.py,sha256=UzgXex6tQsglowhKeb45e7vw4u7kh2wM0YscQPorodU,4095
6
6
  hive/tools.py,sha256=Oi_d6wphtAS4f1wOhFzdXZj8Au1nwZ-UrRvIJDBQLMo,1371
7
- hive/version.py,sha256=tyAzakqIC1CtBzjs8xWebpJVdYZ_7kb2BYPzpux2aQ0,18
7
+ hive/version.py,sha256=EweI1DdqzbUFWbD7fCx3ugjqjcVAfLXKqLVMf-pqUGg,18
8
8
  hive/cookbook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  hive/cookbook/acl_docs.py,sha256=0xr7Vb9121vhsiZjQaKvuAt4gKlXOO4aUJM472HeARw,786
10
10
  hive/cookbook/acl_overrides.py,sha256=l3xyJmGeQysP1M2Sa6kVhDn8n6ttCKUzJ0jTcPjyo78,9690
@@ -64,8 +64,8 @@ hive/cookbook/virtual_domains.py,sha256=N3dp3pjkO-5jni3KBcCukRqcmVqAFYCDV6dgVXrH
64
64
  hive/cookbook/webhooks.py,sha256=xQp7gW4FQP6717d4MCOuQN2Py7nw7TFy4pl9RmkqMKs,6705
65
65
  hive/cookbook/widget_groups.py,sha256=GY7mBh72HzI9RRMCwnmJ-fildtZ3w4BrPDUdNfNoVyk,16018
66
66
  hive/cookbook/widgets.py,sha256=nYAEwh17aMGam8EC13jUwSR_i9KuP4yYRt25F0J6Z4g,23497
67
- xautomata_hive-3.19.0.dist-info/LICENSE,sha256=CFT1oIPm4kciOjwep2r1LQnpATugddSy3D839fsmgFs,1065
68
- xautomata_hive-3.19.0.dist-info/METADATA,sha256=9VVarLGU0otaHVRQJgXycn_GRLI-72U1VqoSesSJGZI,10747
69
- xautomata_hive-3.19.0.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
70
- xautomata_hive-3.19.0.dist-info/top_level.txt,sha256=pLpVAuviHGk3pzaFXU-4GKttxGTGAbFoWK8JvUl1jHQ,5
71
- xautomata_hive-3.19.0.dist-info/RECORD,,
67
+ xautomata_hive-3.19.1.dist-info/LICENSE,sha256=CFT1oIPm4kciOjwep2r1LQnpATugddSy3D839fsmgFs,1065
68
+ xautomata_hive-3.19.1.dist-info/METADATA,sha256=ZNShWENOp8khhG5AyeU5jWRZvTBdTHlYR_fjgzYF5Mg,10747
69
+ xautomata_hive-3.19.1.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
70
+ xautomata_hive-3.19.1.dist-info/top_level.txt,sha256=pLpVAuviHGk3pzaFXU-4GKttxGTGAbFoWK8JvUl1jHQ,5
71
+ xautomata_hive-3.19.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.0.0)
2
+ Generator: setuptools (74.1.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5