Config

Padre Config

PadreConfig class covering functionality for viewing or updating default configurations for PadreApp. Configuration file is placed at ~/.padre.cfg

When running the tests ~/.padre-test.cfg is created which is deleted when the tests are completed.

Expected values in config are following

[LOCAL BACKEND]

root_dir = ~/.pypadre/

[GENERAL]

offline = True

oml_key = openml_key_here

Implemented functionality

  1. Get all sections from config

  2. Save config

Using config through CLI

  1. Use get [–param] [–section] command to get value of given param

    • param: name of attribute

    • section: name of the section, if its None then default section will be used

  2. Use set [–param] [–section] command to set value of given param

    • param: must be a tuple of key value pair

    • section: name of the section, if its None then default section will be used

  3. Use list [–section] command to get list of all params for given section

    • section: name of the section