adding latest working

This commit is contained in:
2021-10-16 05:44:39 +01:00
parent 1300974a04
commit e4ae3f0363
3 changed files with 14 additions and 3 deletions

View File

@@ -28,7 +28,6 @@ class Config:
self._missing_config = True self._missing_config = True
return {} return {}
# TODO: fix the return error
def get_value( def get_value(
self, key: str, default: Any, mask: bool, coerce: bool = False self, key: str, default: Any, mask: bool, coerce: bool = False
) -> Any: ) -> Any:
@@ -40,6 +39,12 @@ class Config:
# no config file, look for env vars # no config file, look for env vars
return self._get_env_value(env_key, default, coerce) return self._get_env_value(env_key, default, coerce)
def _get_config_value_key_split_once(self):
pass
def _get_config_value_key_split_twice(self):
pass
def _get_config_value( def _get_config_value(
self, env_key: str, key: str, default: Any, mask: bool, coerce: bool = False self, env_key: str, key: str, default: Any, mask: bool, coerce: bool = False
) -> Any: ) -> Any:

2
panaetius/logging.py Normal file
View File

@@ -0,0 +1,2 @@
import logging
from logging.handlers import RotatingFileHandler

View File

@@ -1,12 +1,16 @@
Coding: Coding:
No Config File: No Config File:
Handle if a bool is passed in as a default Handle if a bool is passed in as a default @done(21-10-16 05:25)
needs to be lower case in the toml, need a check for this needs to be lower case in the toml, need a check for this
Config File: Config File:
Handle if a bool is passed in as a default Handle if a bool is passed in as a default @done(21-10-16 05:25)
needs to be lower case in the toml, need a check for this needs to be lower case in the toml, need a check for this
Logging:
☐ Create SimpleLogger, AdvancedLogger, CustomLogger classes
should simply have the different logging strings to output
should both specify whether to save to file or not
Documentation: Documentation:
☐ Rewrite documentation using `mkdocs` and using `.md`. @2h ☐ Rewrite documentation using `mkdocs` and using `.md`. @2h