-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BI-4981: settings loading for RQE apps (#4)
- Loading branch information
Showing
4 changed files
with
45 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
lib/dl_core/dl_core/connection_executors/remote_query_executor/settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from typing import Optional | ||
|
||
import attr | ||
|
||
from dl_configs.settings_loaders.meta_definition import s_attrib | ||
from dl_configs.utils import split_by_comma | ||
|
||
|
||
@attr.s(frozen=True) | ||
class RQESettings: | ||
CORE_CONNECTOR_WHITELIST: Optional[list[str]] = s_attrib( # type: ignore | ||
"CORE_CONNECTOR_WHITELIST", | ||
env_var_converter=lambda s: list(split_by_comma(s)), | ||
missing=None, | ||
) | ||
RQE_SECRET_KEY: Optional[str] = s_attrib("RQE_SECRET_KEY", missing=None, sensitive=True) # type: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters