Пример #1
0
 def post(self):
     if __name__ == "__main__":
          server.main()
Пример #2
0
# !/usr/bin/env python
# -*- coding: utf-8 -*-

from app import server

if __name__ == "__main__":
    server.main()
# !/usr/bin/env python
# -*- coding: utf-8 -*-
"""Module to run server with routes"""  # pragma: no cover
from aiohttp.web import run_app  # pragma: no cover

from app.server import main  # pragma: no cover

run_app(main())  # pragma: no cover
Пример #4
0
from app.server import main

if __name__ == '__main__':
    main()
Пример #5
0
from app import server

if __name__ == "__main__":
    server.main()