Repository URL to install this package:
|
Version:
0.6.9.post12 ▾
|
"""Web server driver registry."""
from typing import Type
from mode.utils.imports import FactoryMapping
from faust.web.base import Web
__all__ = ["by_name", "by_url"]
DRIVERS: FactoryMapping[Type[Web]] = FactoryMapping(
aiohttp="faust.web.drivers.aiohttp:Web",
)
DRIVERS.include_setuptools_namespace("faust.web.drivers")
by_name = DRIVERS.by_name
by_url = DRIVERS.by_url