Skip to content
Snippets Groups Projects
Commit 821d597a authored by Andrea Franchini's avatar Andrea Franchini
Browse files

migrate to fastapi, improve HTML output

parent a3b0ff42
Branches
No related tags found
No related merge requests found
Showing
with 7 additions and 3 deletions
.DS_Store 0 → 100644
File added
File added
__version__ = '2.5.2' __version__ = '2.6.0'
...@@ -5,8 +5,9 @@ from logging.config import dictConfig ...@@ -5,8 +5,9 @@ from logging.config import dictConfig
import re import re
from tabulate import tabulate from tabulate import tabulate
import uvicorn
from mc_openapi.app_config import app from mc_openapi.fastapi import app
from mc_openapi.doml_mc import DOMLVersion, init_model, verify_csp_compatibility, verify_model, synthesize_model from mc_openapi.doml_mc import DOMLVersion, init_model, verify_csp_compatibility, verify_model, synthesize_model
from mc_openapi.doml_mc.domlr_parser.exceptions import RequirementException from mc_openapi.doml_mc.domlr_parser.exceptions import RequirementException
from mc_openapi.doml_mc.mc_result import MCResult from mc_openapi.doml_mc.mc_result import MCResult
...@@ -62,7 +63,8 @@ if not args.doml and not args.synth: ...@@ -62,7 +63,8 @@ if not args.doml and not args.synth:
logging.info(f"DOML Model Checker v{__version__}") logging.info(f"DOML Model Checker v{__version__}")
# Start the webserver # Start the webserver
app.run(port=args.port) uvicorn.run(app, port=args.port)
# No actions allowed after uvicorn startup point
else: else:
logging.basicConfig(level=logging.DEBUG, format='* %(message)s') logging.basicConfig(level=logging.DEBUG, format='* %(message)s')
logging.info(f"DOML Model Checker v{__version__}") logging.info(f"DOML Model Checker v{__version__}")
......
This diff is collapsed.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment