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 / apps / production_index.py
Size: Mime:
"""HTTP endpoint showing statistics from the Faust monitor."""
from typing import List, MutableMapping

from faust import web

__all__ = ["Index", "blueprint"]

TPMap = MutableMapping[str, List[int]]


blueprint = web.Blueprint("production_index")


@blueprint.route("/", name="index")
class Index(web.View):
    """Dummy Index."""

    async def get(self, request: web.Request) -> web.Response:
        """Simple status page."""
        return self.json({"status": "OK"})