core/server.py
Untone 6d3c0ee39e
All checks were successful
Deploy to core / deploy (push) Successful in 1m36s
isort+authfix
2024-02-19 14:45:55 +03:00

16 lines
361 B
Python

from granian.constants import Interfaces
from granian.server import Granian
if __name__ == '__main__':
print('[server] started')
granian_instance = Granian(
'main:app',
address='0.0.0.0', # noqa S104
port=8000,
threads=4,
websockets=False,
interface=Interfaces.ASGI,
)
granian_instance.serve()