# Path: apis/app.py
# def create_app(register_bp=True, test=False):
# def register_blueprints(app):
# def json_error(request, exception):
# def not_found(request, exception):
# def custom_json_errors(request, exception):
# def method_not_allow(request, exception):


import asyncio
import uvloop
from signal import signal, SIGINT
from apis.app import app
# -*- coding: utf-8 -*-





def run():
    asyncio.set_event_loop(uvloop.new_event_loop())
    server = app.create_server(host="0.0.0.0", port=7777)
    loop = asyncio.get_event_loop()
    asyncio.ensure_future(server)
    signal(SIGINT, lambda s, f: loop.stop())
    try:

# Path: apis/app.py
# def create_app(register_bp=True, test=False):
# def register_blueprints(app):
# def json_error(request, exception):
# def not_found(request, exception):
# def custom_json_errors(request, exception):
# def method_not_allow(request, exception):


# Path: manager.py
import asyncio
import uvloop
from signal import signal, SIGINT
from apis.app import app

# -*- coding: utf-8 -*-





def run():
    asyncio.set_event_loop(uvloop.new_event_loop())
    server = app.create_server(host="0.0.0.0", port=7777)
    loop = asyncio.get_event_loop()
    asyncio.ensure_future(server)
    signal(SIGINT, lambda s, f: loop.stop())
    try:

        loop.run_forever()