Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from argparse import Namespace
from collections.abc import Iterable
from collections.abc import Sequence
from configparser import SectionProxy
from pathlib import Path
from typing import NamedTuple
from typing import Union
from typing_extensions import Self
__all__ = [
'CONFIG_FILES',
'LOG_FORMAT',
'SERVERS',
'Config',
'from_args',
]
CONFIG_FILES: Sequence[Path]
LOG_FORMAT: str
SERVERS: dict[str, dict[str, str]]
class Config(NamedTuple):
host: str
port: int
passwd: Union[str, None] = None
@classmethod
def from_string(cls) -> Self: ...
@classmethod
def from_config_section(cls, section: SectionProxy) -> Self: ...
def load(config_files: Union[Path, Iterable[Path]] = ...) -> None: ...
def from_args(args: Namespace) -> Config: ...