ouch_bindings_python 5.0.1

Python bindings for the OUCH protocol
Documentation
# this is a cog generated python IDE interface file

# [[[cog
# import cog
# names = ["CltManual", "SvcManual", "CltAuto", "SvcAuto"]
# cog.out(
# f"""
# from types import TracebackType
# from links_connect.callbacks import Callback
# from typing import Iterable
# """
# )
# for name in names:
#   cog.out(
# f"""
# class {name}:
#     msg_samples: Iterable[str]
#     def __init__(self, host: str, callback: Callback, **kwargs) -> None: ...
#     def __enter__(self) -> {name}: ...
#     def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None) -> None: ...
#     def send(self, msg: dict, io_timeout: float | None = None): ...
#     def is_connected(self, io_timeout: float | None = None) -> bool: ...
#
# """)
# ]]]

from types import TracebackType
from links_connect.callbacks import Callback
from typing import Iterable

class CltManual:
    msg_samples: Iterable[str]
    def __init__(self, host: str, callback: Callback, **kwargs) -> None: ...
    def __enter__(self) -> CltManual: ...
    def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None) -> None: ...
    def send(self, msg: dict, io_timeout: float | None = None): ...
    def is_connected(self, io_timeout: float | None = None) -> bool: ...


class SvcManual:
    msg_samples: Iterable[str]
    def __init__(self, host: str, callback: Callback, **kwargs) -> None: ...
    def __enter__(self) -> SvcManual: ...
    def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None) -> None: ...
    def send(self, msg: dict, io_timeout: float | None = None): ...
    def is_connected(self, io_timeout: float | None = None) -> bool: ...


class CltAuto:
    msg_samples: Iterable[str]
    def __init__(self, host: str, callback: Callback, **kwargs) -> None: ...
    def __enter__(self) -> CltAuto: ...
    def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None) -> None: ...
    def send(self, msg: dict, io_timeout: float | None = None): ...
    def is_connected(self, io_timeout: float | None = None) -> bool: ...


class SvcAuto:
    msg_samples: Iterable[str]
    def __init__(self, host: str, callback: Callback, **kwargs) -> None: ...
    def __enter__(self) -> SvcAuto: ...
    def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None) -> None: ...
    def send(self, msg: dict, io_timeout: float | None = None): ...
    def is_connected(self, io_timeout: float | None = None) -> bool: ...

# [[[end]]]