A super simple python app framework that includes a logger and a config management.
Project description
loe-simp-app-fw
A super simple python app framework that includes a logger and a config management
Example
import os
from loe_simp_app_fw.config import Config
from loe_simp_app_fw.logger import Logger
Config("config.yaml", example_config_path="config-example.yaml", project_root_path=os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
Logger("log", project_root_path=os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
It will read from
[project root path]/"config.yaml"
The example config is located at
[project root path]/"config-example.yaml"
The log file will be at
[project root path]/"log"/yyyy-mm-dd.log
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
loe_simp_app_fw-1.0.0.tar.gz
(17.7 kB
view hashes)
Built Distribution
Close
Hashes for loe_simp_app_fw-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 613d56e41db36252b864aa73ee3264a3770f6938b30b694c92d4e365d75d405e |
|
MD5 | 3833c4eebe9f2353fab00f1303b06f31 |
|
BLAKE2b-256 | c9adb37a25e396310d7e3182360e8439f2d6201a980f1ec9da59fd14ccf5f675 |