forked from miguelgrinberg/python-socketio
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path__init__.py
More file actions
31 lines (28 loc) · 1.06 KB
/
__init__.py
File metadata and controls
31 lines (28 loc) · 1.06 KB
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
import sys
from .middleware import Middleware
from .base_manager import BaseManager
from .pubsub_manager import PubSubManager
from .kombu_manager import KombuManager
from .redis_manager import RedisManager
from .kafka_manager import KafkaManager
from .zmq_manager import ZmqManager
from .server import Server
from .namespace import Namespace
if sys.version_info >= (3, 5): # pragma: no cover
from .asyncio_server import AsyncServer
from .asyncio_manager import AsyncManager
from .asyncio_namespace import AsyncNamespace
from .asyncio_redis_manager import AsyncRedisManager
else: # pragma: no cover
AsyncServer = None
AsyncManager = None
AsyncNamespace = None
AsyncRedisManager = None
__version__ = '1.9.0'
__all__ = ['__version__', 'Middleware', 'Server',
'BaseManager', 'PubSubManager',
'KombuManager', 'RedisManager', 'KafkaManager', 'ZmqManager',
'Namespace']
if AsyncServer is not None: # pragma: no cover
__all__ += ['AsyncServer', 'AsyncNamespace', 'AsyncManager',
'AsyncRedisManager']