import asyncio
import logging

from aiohttp import web

from dnlp.helpers import sync
from dnlp.routes import routes


logging.basicConfig(
    level=logging.INFO,
    format='%(asctime)s [%(levelname)s] %(name)s: %(message)s',
)
logger = logging.getLogger(__name__)


async def get_app():
    app = web.Application()
    app.add_routes(routes)
    return app


@sync
async def serve(host: str = '0.0.0.0', port: int = 9090):
    runner = web.AppRunner(await get_app())
    await runner.setup()
    site = web.TCPSite(runner, host, port)
    await site.start()
    logger.info(f'Listening on {host}:{port}')
    await asyncio.Future()

58291c69c2bd031e353754ca75c98aca035f1788
<mask token>

<mask token>
logging.basicConfig(level=logging.INFO, format=
    '%(asctime)s [%(levelname)s] %(name)s: %(message)s')
<mask token>


async def get_app():
    app = web.Application()
    app.add_routes(routes)
    return app


@sync
async def serve(host: str='0.0.0.0', port: int=9090):
    runner = web.AppRunner(await get_app())
    await runner.setup()
    site = web.TCPSite(runner, host, port)
    await site.start()
    logger.info(f'Listening on {host}:{port}')
    await asyncio.Future()

<mask token>
logging.basicConfig(level=logging.INFO, format=
    '%(asctime)s [%(levelname)s] %(name)s: %(message)s')
logger = logging.getLogger(__name__)


async def get_app():
    app = web.Application()
    app.add_routes(routes)
    return app


@sync
async def serve(host: str='0.0.0.0', port: int=9090):
    runner = web.AppRunner(await get_app())
    await runner.setup()
    site = web.TCPSite(runner, host, port)
    await site.start()
    logger.info(f'Listening on {host}:{port}')
    await asyncio.Future()

import asyncio
import logging
from aiohttp import web
from dnlp.helpers import sync
from dnlp.routes import routes
logging.basicConfig(level=logging.INFO, format=
    '%(asctime)s [%(levelname)s] %(name)s: %(message)s')
logger = logging.getLogger(__name__)


async def get_app():
    app = web.Application()
    app.add_routes(routes)
    return app


@sync
async def serve(host: str='0.0.0.0', port: int=9090):
    runner = web.AppRunner(await get_app())
    await runner.setup()
    site = web.TCPSite(runner, host, port)
    await site.start()
    logger.info(f'Listening on {host}:{port}')
    await asyncio.Future()

import asyncio
import logging

from aiohttp import web

from dnlp.helpers import sync
from dnlp.routes import routes


logging.basicConfig(
    level=logging.INFO,
    format='%(asctime)s [%(levelname)s] %(name)s: %(message)s',
)
logger = logging.getLogger(__name__)


async def get_app():
    app = web.Application()
    app.add_routes(routes)
    return app


@sync
async def serve(host: str = '0.0.0.0', port: int = 9090):
    runner = web.AppRunner(await get_app())
    await runner.setup()
    site = web.TCPSite(runner, host, port)
    await site.start()
    logger.info(f'Listening on {host}:{port}')
    await asyncio.Future()
