File tree 2 files changed +19
-2
lines changed
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -482,3 +482,19 @@ def success(self) -> bool:
482
482
True if successful, False otherwise.
483
483
"""
484
484
return self .last_response .status_code in mcc .HTTP_STATUS_SUCCESS_RANGE
485
+
486
+ def is_initialised (self , dev : bool = False ) -> bool :
487
+ """Check if the client is initialised.
488
+ NOTE: This does not check the login actually works.
489
+ Parameters
490
+ ----------
491
+ dev : bool, optional
492
+ Use dev credentials, by default False
493
+ Returns
494
+ -------
495
+ bool
496
+ True if initialised, False otherwise.
497
+ """
498
+ cred_filename = "credentials.json" if not dev else "credentials-dev.json"
499
+ cred_filepath = mu .get_user_data_filepath (cred_filename )
500
+ return cred_filepath .exists ()
Original file line number Diff line number Diff line change @@ -18,13 +18,14 @@ license = {file="LICENSE"}
18
18
dynamic = [" version" ]
19
19
20
20
# Dependencies
21
- requires-python = " >=3.11 "
21
+ requires-python = " >=3.9 "
22
22
dependencies = [
23
23
" requests>=2.31.0" ,
24
24
" requests-mock>=1.11.0" ,
25
25
" PyYAML>=6.0.1" ,
26
26
" click>=8.1.7" ,
27
- " pandas>=2.2.2"
27
+ " pandas>=2.2.2" ,
28
+ " tqdm>=4.66.5"
28
29
]
29
30
30
31
authors = [
You can’t perform that action at this time.
0 commit comments