Skip to content
client.pyi 598 B
Newer Older
Dom Sekotill's avatar
Dom Sekotill committed
from types import TracebackType as Traceback

__all__ = ["BaseClient"]


class BaseClient:

	host: str
	port: int
	timeout: float|None
	passwd: str|None

	def __init__(
		self,
		host: str,
		port: int, *,
		timeout: float|None = None,
		passwd: str|None = None,
	) -> None: ...

	def __enter__(self) -> BaseClient: ...
	def __exit__(self, etype: type[BaseException], exc: BaseException, tb: Traceback) -> bool|None: ...

	def connect(self, login: bool = False) -> None: ...
	def close(self) -> None: ...
	def login(self, passwd: str) -> bool: ...
	def run(self, command: str, *_: str) -> str: ...