Super-simple framework for command-line apps (Python3). https://zavage-software.com
|
2 years ago | |
---|---|---|
app_skellington | 2 years ago | |
tests | 2 years ago | |
.gitignore | 3 years ago | |
LICENSE.txt | 2 years ago | |
MANIFEST.in | 2 years ago | |
README.md | 2 years ago | |
setup.cfg | 2 years ago | |
setup.py | 2 years ago |
Application framework for Python, features include:
Principles:
Site configurations are supported through ConfigObj. There is a config.spec in the src directory which is a validation file; it contains the accepted parameter names, types, and limits for configurable options in the application which is built on app_skellington. The format is multi-level .ini syntax.
Reference the ConfigObj documentation for config.ini and config.spec format. See:
Config files (config.ini) are created if they don't exist. The file always contains the full specification of parameters; i.e. even default parameters are added into the config file.
Linux:
/home/<user>/.config/<app_name>/config.ini
/home/<user>/.cache/<app_name>/log/<app_name>.log
Windows:
C:\Users\<user>\<app_name>\Local\<app_name>\config.ini
C:\Users\<user>\<app_name>\Local\<app_name>\Logs\<app_name>.log
Application configuration can be overridden ad-hoc through the --config argument.
Set 'APPSKELLINGTON_ENABLE_LOGGING' environment variable to any value which turns on AppSkellington-level logging. For example,
APPSKELLINGTON_DEBUG=1 <executable>
or
export APPSKELLINGTON_DEBUG=1
<executable>
Tests are a WIP. Recommendation is to run 'pytest' in the 'tests' directory.
I'm releasing this software under one of the most permissive licenses, the MIT software license. This applies to this source repository and all files within it.
See official website: https://zavage-software.com Please report bugs, improvements, or feedback!