abcclassroom.config.
get_config
get_config_option
Get an option (value of key) from provided config dictionary. If the key does not exist, exit with KeyError (required=True) or return None (required=False).
get_github_auth
Check to see if there is an existing github authentication and load the authentication.
Yaml object that contains the token and id for a github session. If yaml doesn’t exists, return an empty dictionary.
ruamel.yaml.comments.CommentedMap
print_config
Print configuration. Can supply as dictionary parameter, or specify a path to look for config.yml. If neither option specified, looks for config.yml in current working directory. If both specified, prints dictionary, not from file.
set_config_option
Sets a config option. If option already exists and append_value is False, replaces existing value. If option exists and append_value is true, adds new value to list of existing values. Will not add a duplicate value.
Writes the new config (overwriting the existing file) and returns new config dict.
set_github_auth
Set the github authentication information. Put the token and id authentication information into a yaml file if it doesn’t already exist.
auth_info (dictionary) – The token and id authentication information from github stored in a dictionary object.
write_config