mirror of
https://github.com/dtomlinson91/panaetius.git
synced 2025-12-22 04:55:44 +00:00
adding latest working
This commit is contained in:
@@ -28,7 +28,6 @@ class Config:
|
||||
self._missing_config = True
|
||||
return {}
|
||||
|
||||
# TODO: fix the return error
|
||||
def get_value(
|
||||
self, key: str, default: Any, mask: bool, coerce: bool = False
|
||||
) -> Any:
|
||||
@@ -40,6 +39,12 @@ class Config:
|
||||
# no config file, look for env vars
|
||||
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(
|
||||
self, env_key: str, key: str, default: Any, mask: bool, coerce: bool = False
|
||||
) -> Any:
|
||||
|
||||
2
panaetius/logging.py
Normal file
2
panaetius/logging.py
Normal file
@@ -0,0 +1,2 @@
|
||||
import logging
|
||||
from logging.handlers import RotatingFileHandler
|
||||
@@ -1,12 +1,16 @@
|
||||
Coding:
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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:
|
||||
☐ Rewrite documentation using `mkdocs` and using `.md`. @2h
|
||||
|
||||
Reference in New Issue
Block a user