Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
faust-streaming / faust / web / drivers / __init__.py
Size: Mime:
"""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