diff options
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/config.py b/config.py new file mode 100644 index 0000000..7e2b89a --- /dev/null +++ b/config.py @@ -0,0 +1,19 @@ +from cached_property import cached_property +from configlib import BaseConfig +from github import Github + + +class GithubConfig(object): + access_token: str + + @cached_property + def github(self): + return Github(self.access_token) + + +class Config(BaseConfig): + token: str + github: GithubConfig + + +config = Config.get_instance() |