qmenta-client 0.11.dev1182__py3-none-any.whl → 1.0__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.
qmenta/client/Account.py CHANGED
@@ -14,7 +14,7 @@ logger_name = 'qmenta.client'
14
14
 
15
15
  class Account:
16
16
  """
17
- It represent your QMENTA account and implements the HTTP connection
17
+ It represents your QMENTA account and implements the HTTP connection
18
18
  with the server. Once it is instantiated it will act as an identifier
19
19
  used by the rest of objects.
20
20
 
@@ -66,7 +66,8 @@ class Account:
66
66
  logger = logging.getLogger(logger_name)
67
67
  try:
68
68
  auth = platform.Auth.login(
69
- self.username, self.password, base_url=self.baseurl
69
+ self.username, self.password, base_url=self.baseurl,
70
+ ask_for_2fa_input=True
70
71
  )
71
72
  except errors.PlatformError as e:
72
73
  logger.error('Failed to log in: {}'.format(e))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qmenta-client
3
- Version: 0.11.dev1182
3
+ Version: 1.0
4
4
  Summary: Python client lib to interact with the QMENTA platform.
5
5
  Home-page: https://www.qmenta.com/
6
6
  Author: QMENTA
@@ -1,9 +1,9 @@
1
1
  qmenta/__init__.py,sha256=jv2YF__bseklT3OWEzlqJ5qE24c4aWd5F4r0TTjOrWQ,65
2
- qmenta/client/Account.py,sha256=J4NI9YxlhAvNkAQjdEegiQRrzZsOkGgXbaPG4qX_GI0,9511
2
+ qmenta/client/Account.py,sha256=r2iah3XBXM_hQzJI5uGCojs3WXxStH2dHkwduxHgA64,9552
3
3
  qmenta/client/Project.py,sha256=3Jm_1BRXirqe-LKqugmbw6c519TMspnulwLZJjB13f4,43788
4
4
  qmenta/client/Subject.py,sha256=azcLeYKO8KTLq-dn0CNvhD9XN1tGjAXZS3lFZcFHDuc,8713
5
5
  qmenta/client/__init__.py,sha256=AjTojBhZeW5nl0i605KS8S1Gl5tPNc1hdzD47BGNfoI,147
6
6
  qmenta/client/utils.py,sha256=er8BT64WBbNYj4FysI1Mx3ZqHkOGCZPIMGcZeFDysrA,487
7
- qmenta_client-0.11.dev1182.dist-info/METADATA,sha256=i-CowO_-1_077bSAnPgWlgf4NDDjy9c4IE9Ois0KKVE,610
8
- qmenta_client-0.11.dev1182.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
9
- qmenta_client-0.11.dev1182.dist-info/RECORD,,
7
+ qmenta_client-1.0.dist-info/METADATA,sha256=C9qam7gz-k6zxTpBIDoUqoEjSoIH_LSwmkN5e6Bir9s,601
8
+ qmenta_client-1.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
9
+ qmenta_client-1.0.dist-info/RECORD,,