Rivista/__main__.py

15 lines
285 B
Python
Raw Normal View History

#!/usr/bin/python
# -*- coding: utf-8 -*-
#import importlib.resources
from rivista.http.instance import HttpInstance
import uvicorn
def main():
http_instance = HttpInstance()
return http_instance.app
app = main()
uvicorn.run(app, host='localhost', port=8000, reload=False)