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 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
+ ]