cornflakes.ini_load

cornflakes.ini_load(files: object = None, sections: object = None, keys: object = None, defaults: object = None, eval_env: bool = False) dict
py::dict ini::ini_load(const std::map<std::string, std::vector<std::string>> &files, const std::map<std::string, std::vector<std::string>> &sections, const std::map<std::string, std::vector<std::string>> &keys, const std::map<std::string, std::vector<py::object>> &defaults, const bool &eval_env)

This is a simple (lightweight) C++ function to parse ini file into python

Parameter:
  • files – vector of string with files to read

  • sections – vector of string with included sections

  • keys – vector of string with included keys

  • defaults – vector of python objects for default values

Rückgabe:

environment(s) with configs