3.1.2.10. thyrsis.settings module¶
settings thyrsis
- USAGE
python -m thyrsis.settings
-
class
thyrsis.settings.
Settings
(dbpath=None)¶ Bases :
object
Thyrsis settings
-
allKeys
()¶ List all keys
-
contains
(section, option)¶ Check if an option exists
- Paramètres
section (string) – section name
option (string) – option name
- Renvoie
value
- Type renvoyé
string
-
dbpath
()¶ Return db path
- Renvoie
db path
- Type renvoyé
string
-
display
()¶ Display all settings
-
options
(section)¶ list options of a section
- Paramètres
section (string) – section name
-
save
()¶ Save settings in settings file
-
setValue
(section, option, value)¶ Set value of an option
- Paramètres
section (string) – section name
option (string) – option name
value (string) – defaultValue
-
value
(section, option, defaultValue=None)¶ Return value of an option
- Paramètres
section (string) – section name
option (string) – option name
defaultValue (string) – defaultValue
- Renvoie
value
- Type renvoyé
string
-