Skip to content

Library that simplifies defaulting and multi-file yaml config

License

Notifications You must be signed in to change notification settings

jhfoo/smartyaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smartyaml

Library that simplifies defaulting and multi-file yaml config

Motivation

Ever had to create simple yaml config based off default parameters and variables? I had the inspiration working with Bastille jail config, and hypothesize that the problem applies across multiple use cases.

Use cases

Config

  • Simple multifile (parent) support
  • Defaulting support (child overrides parent)
  • Export final config to file

Variables

  • Variable support
  • Defaulting variable support
  • Multile variable support

Installation

Pre-install

  • Python 3.8 or later
  • Pip

Install

pip3 install smartyaml

Implementation

Special keys

  • __parent: loads parent file and overrides duplicate keys

Test environment

  • Zsh
  • FreeBSD 13.1-RELEASE
  • Root commands accessible via sudo

About

Library that simplifies defaulting and multi-file yaml config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages