Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.py56 linesDownload Raw Back to event_loop
1"""Package with EventLoop implementations for urwid."""2 3from __future__ import annotations4 5import sys6 7from .abstract_loop import EventLoop, ExitMainLoop8from .asyncio_loop import AsyncioEventLoop9from .main_loop import MainLoop10from .select_loop import SelectEventLoop11 12__all__ = (13    "AsyncioEventLoop",14    "EventLoop",15    "ExitMainLoop",16    "MainLoop",17    "SelectEventLoop",18)19 20try:21    from .twisted_loop import TwistedEventLoop22 23    __all__ += ("TwistedEventLoop",)  # type: ignore[assignment]24except ImportError:25    pass26 27try:28    from .tornado_loop import TornadoEventLoop29 30    __all__ += ("TornadoEventLoop",)  # type: ignore[assignment]31except ImportError:32    pass33 34try:35    from .glib_loop import GLibEventLoop36 37    __all__ += ("GLibEventLoop",)  # type: ignore[assignment]38except ImportError:39    pass40 41try:42    from .trio_loop import TrioEventLoop43 44    __all__ += ("TrioEventLoop",)  # type: ignore[assignment]45except ImportError:46    pass47 48if sys.platform != "win32":49    # ZMQEventLoop cause interpreter crash on windows50    try:51        from .zmq_loop import ZMQEventLoop52 53        __all__ += ("ZMQEventLoop",)  # type: ignore[assignment]54    except ImportError:55        pass56 
codekingpro/portable-devtools · Team Ai