dazapiz 0.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.
- dazapiz/__init__.py +62 -0
- dazapiz/_api_client.py +698 -0
- dazapiz/_app_credential.py +251 -0
- dazapiz/_az.py +505 -0
- dazapiz/_az_cli_token.py +253 -0
- dazapiz/_credential.py +187 -0
- dazapiz/_interactive.py +260 -0
- dazapiz/_json.py +20 -0
- dazapiz/_pasted_code.py +145 -0
- dazapiz/_refresh_token.py +178 -0
- dazapiz/_session.py +36 -0
- dazapiz/_spark_conf.py +359 -0
- dazapiz/duckdb.py +618 -0
- dazapiz/errors.py +153 -0
- dazapiz/py.typed +0 -0
- dazapiz/testing.py +150 -0
- dazapiz-0.1.0.dist-info/METADATA +107 -0
- dazapiz-0.1.0.dist-info/RECORD +20 -0
- dazapiz-0.1.0.dist-info/WHEEL +4 -0
- dazapiz-0.1.0.dist-info/licenses/LICENSE +21 -0
dazapiz/__init__.py
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"""The Azure helpers azure-identity lacks.
|
|
2
|
+
|
|
3
|
+
Your `az login` carried into Spark (`spark_storage_conf()`), DuckDB
|
|
4
|
+
(`dazapiz.duckdb`) and any Azure REST API (`ApiClient`), on top of
|
|
5
|
+
`azure-identity` and `msal`. The design is in `.agents/design.md` in the
|
|
6
|
+
repository.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from importlib.metadata import version
|
|
10
|
+
|
|
11
|
+
from ._api_client import ApiClient
|
|
12
|
+
from ._app_credential import app_credential
|
|
13
|
+
from ._az import az_account_show, az_is_login, az_login, az_logout
|
|
14
|
+
from ._az_cli_token import refresh_token_from_az_cli
|
|
15
|
+
from ._credential import RefreshTokenCredential
|
|
16
|
+
from ._interactive import DeviceCodeCredential, InteractiveBrowserCredential
|
|
17
|
+
from ._refresh_token import AZURE_CLI_CLIENT_ID, RefreshTokenInfo, SupportsRefreshToken
|
|
18
|
+
from ._spark_conf import SparkStorageConf, spark_storage_conf
|
|
19
|
+
from .errors import (
|
|
20
|
+
ApiError,
|
|
21
|
+
AzCliError,
|
|
22
|
+
AzCliNonInteractiveError,
|
|
23
|
+
AzCliNotFoundError,
|
|
24
|
+
AzCliNotLoggedInError,
|
|
25
|
+
AzCliTimeoutError,
|
|
26
|
+
DazapizError,
|
|
27
|
+
RefreshTokenNotFoundError,
|
|
28
|
+
ResponseParseError,
|
|
29
|
+
UnsupportedPlatformError,
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
__version__ = version("dazapiz")
|
|
33
|
+
"""The installed version of dazapiz, from the package metadata."""
|
|
34
|
+
|
|
35
|
+
__all__ = [
|
|
36
|
+
"AZURE_CLI_CLIENT_ID",
|
|
37
|
+
"ApiClient",
|
|
38
|
+
"ApiError",
|
|
39
|
+
"AzCliError",
|
|
40
|
+
"AzCliNonInteractiveError",
|
|
41
|
+
"AzCliNotFoundError",
|
|
42
|
+
"AzCliNotLoggedInError",
|
|
43
|
+
"AzCliTimeoutError",
|
|
44
|
+
"DazapizError",
|
|
45
|
+
"DeviceCodeCredential",
|
|
46
|
+
"InteractiveBrowserCredential",
|
|
47
|
+
"RefreshTokenCredential",
|
|
48
|
+
"RefreshTokenInfo",
|
|
49
|
+
"RefreshTokenNotFoundError",
|
|
50
|
+
"ResponseParseError",
|
|
51
|
+
"SparkStorageConf",
|
|
52
|
+
"SupportsRefreshToken",
|
|
53
|
+
"UnsupportedPlatformError",
|
|
54
|
+
"__version__",
|
|
55
|
+
"app_credential",
|
|
56
|
+
"az_account_show",
|
|
57
|
+
"az_is_login",
|
|
58
|
+
"az_login",
|
|
59
|
+
"az_logout",
|
|
60
|
+
"refresh_token_from_az_cli",
|
|
61
|
+
"spark_storage_conf",
|
|
62
|
+
]
|