-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
46 additions
and
20 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
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,31 @@ | ||
"""The Skymap Scanner Client.""" | ||
|
||
import dataclasses as dc | ||
|
||
from wipac_dev_tools import from_environment_as_dataclass | ||
|
||
from .. import config as cfg | ||
|
||
|
||
# | ||
# Env var constants: set as constants & typecast | ||
# | ||
|
||
|
||
@dc.dataclass(frozen=True) | ||
class EnvConfig: | ||
"""For storing environment variables, typed.""" | ||
|
||
# LOGGING VARS | ||
SKYSCAN_LOG: str = cfg.LOG_LEVEL_DEFAULT | ||
SKYSCAN_LOG_THIRD_PARTY: str = cfg.LOG_THIRD_PARTY_LEVEL_DEFAULT | ||
SKYSCAN_EWMS_PILOT_LOG: str = cfg.LOG_LEVEL_DEFAULT | ||
SKYSCAN_MQ_CLIENT_LOG: str = cfg.LOG_LEVEL_DEFAULT | ||
|
||
# TESTING/DEBUG VARS | ||
# NOTE - these are accessed via `os.getenv` -- ctrl+F for usages | ||
# _SKYSCAN_CI_MINI_TEST: bool = False # run minimal variations for testing (mini-scale) | ||
# _SKYSCAN_CI_CRASH_DUMMY_PROBABILITY: float = 0.5 # for reco algo: crash-dummy | ||
|
||
|
||
ENV = from_environment_as_dataclass(EnvConfig) |
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
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