What's the best practice using a settings(config) file in Python?

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:

An example file:

truck:
    color: blue
    brand: ford
city: new york
cabriolet:
    color: black
    engine:
        cylinders: 8
        placement: mid
    doors: 2

← Назад к списку