Skip to main content

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


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)

Uploaded Source

Built Distribution

loe_simp_app_fw-1.0.0-py3-none-any.whl (17.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page