User module¶
-
class
vsuite.user.
User
¶ Represent a single user’s vsuite installation
Track and manage vsuite’s data files, global config, and more
-
get_fullname
()¶ Get user’s full name from /etc/passwd
Returns: user’s full name Return type: str
-
get_global_config
()¶ Get user’s global vsuite config
Get existing config if it exists Get and save newly-generated config if it doesn’t
Returns: user’s global configuration Return type: configparser.ConfigParser
-
global_init
()¶ Load global config after creating it if it doesn’t exist
-
init_global_config
()¶ Initialize global config
Create new config, refusing to overwrite existing one
Returns: user’s global configuration Return type: configparser.ConfigParser
-
init_global_data_dir
()¶ Copy project files to data dir
-
read_global_config
()¶ Get existing user config
-