maleo-foundation 0.1.83__py3-none-any.whl → 0.1.84__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.
- maleo_foundation/utils/loaders/credential/google.py +2 -2
- {maleo_foundation-0.1.83.dist-info → maleo_foundation-0.1.84.dist-info}/METADATA +1 -1
- {maleo_foundation-0.1.83.dist-info → maleo_foundation-0.1.84.dist-info}/RECORD +5 -5
- {maleo_foundation-0.1.83.dist-info → maleo_foundation-0.1.84.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.1.83.dist-info → maleo_foundation-0.1.84.dist-info}/top_level.txt +0 -0
@@ -2,12 +2,12 @@ import os
|
|
2
2
|
from google.auth import default
|
3
3
|
from google.oauth2.service_account import Credentials
|
4
4
|
from pathlib import Path
|
5
|
-
from typing import Optional,
|
5
|
+
from typing import Optional, Union
|
6
6
|
|
7
7
|
class GoogleCredentialsLoader:
|
8
8
|
@staticmethod
|
9
9
|
def load(credentials_path:Optional[Union[Path, str]] = None) -> Credentials:
|
10
|
-
if not isinstance(credentials_path, (Path,
|
10
|
+
if not isinstance(credentials_path, (Path, type[None], str)):
|
11
11
|
raise TypeError("Google credentials type can only be 'Path', 'str', or 'None'")
|
12
12
|
if credentials_path is None:
|
13
13
|
credentials_path = os.getenv("GOOGLE_CREDENTIALS_PATH")
|
@@ -104,10 +104,10 @@ maleo_foundation/utils/loaders/__init__.py,sha256=P_3ycGfeDXFjAi8bE4iLWHxBveqUId
|
|
104
104
|
maleo_foundation/utils/loaders/json.py,sha256=NsXLq3VZSgzmEf99tV1VtrmiudWdQ8Pzh_hI4Rm0cM8,397
|
105
105
|
maleo_foundation/utils/loaders/yaml.py,sha256=L438PTWFnE0St_T4-7f_3TV4apfh0LhYkIdODCuYuDw,388
|
106
106
|
maleo_foundation/utils/loaders/credential/__init__.py,sha256=qopTKvcMVoTFwyRijeg7rejnG4I684FjUwh70tvhtVM,141
|
107
|
-
maleo_foundation/utils/loaders/credential/google.py,sha256=
|
107
|
+
maleo_foundation/utils/loaders/credential/google.py,sha256=Xgylh2gboR5w_FIh0bufuqluplEA_XtC19ggCJ164yw,1110
|
108
108
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=hVygcC2ImHc_aVrSrOmyedR8tMUZokWUKCKOSh5ctbo,106
|
109
109
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=gDhyX6iTFtHiluuhFCozaZ3pOLKU2Y9TlrNMK_GVyGU,3796
|
110
|
-
maleo_foundation-0.1.
|
111
|
-
maleo_foundation-0.1.
|
112
|
-
maleo_foundation-0.1.
|
113
|
-
maleo_foundation-0.1.
|
110
|
+
maleo_foundation-0.1.84.dist-info/METADATA,sha256=F_IS-1_S0U56Kl_1Qe4LSCVygov6TydoB4LDEMOETZ4,3419
|
111
|
+
maleo_foundation-0.1.84.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
112
|
+
maleo_foundation-0.1.84.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
113
|
+
maleo_foundation-0.1.84.dist-info/RECORD,,
|
File without changes
|
File without changes
|