The goal is to simplify using many arguments in a Python program by writing a config (settings) file that dynamically can add an item.
What is the best practice for using a settings (config) file or importing a library in Python?
use case:
Rather than using pickle
I would like it to be a straightforward text file that can easily be read and edited.
I want to be able to add data in it(like a dictionary) (i.e.: some form of nesting should be supported).
An example file:
truck:
color: blue
brand: ford
city: new york
cabriolet:
color: black
engine:
cylinders: 8
placement: mid
doors: 2