Config
authkeys.config
Configuration loading for authkeys.
AuthkeysConfig is a thin :class:configparser.ConfigParser subclass with a
getlist converter (newline-separated values) and a flexible from_config
loader that accepts paths, colon-separated path lists, raw text, bytes, or dicts.
ConfigSource = Union[str, bytes, Path, dict]
module-attribute
SYSTEM_CONF_PATHS = [Path('/etc/authkeys.conf'), Path('/etc/authkeys/authkeys.conf'), Path('/etc/ssh/authkeys.conf')]
module-attribute
USER_CONF_PATH = Path('.ssh/authkeys.conf')
module-attribute
AuthkeysConfig
Bases: ConfigParser
CONF_PATHS = [Path('./authkeys.conf')]
class-attribute
instance-attribute
from_config(config=None)
classmethod
Source code in src/authkeys/config.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | |
getlist(section, option, **kwargs)
Source code in src/authkeys/config.py
73 74 75 76 77 78 79 80 | |