Skip to content

Commit

Permalink
Add rdflib dependency and --host argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannah Bast committed Feb 20, 2025
1 parent aeb646f commit 4d59fac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers = [
"Topic :: Database :: Front-Ends"
]

dependencies = [ "psutil", "termcolor", "argcomplete", "ruamel.yaml" ]
dependencies = [ "psutil", "termcolor", "argcomplete", "ruamel.yaml", "rdflib" ]

[project.urls]
Github = "https://github.com/ad-freiburg/qlever"
Expand Down
11 changes: 10 additions & 1 deletion src/qlever/commands/serve_evaluation_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ def additional_arguments(self, subparser) -> None:
"served (Default = 8000)"
),
)
subparser.add_argument(
"--host",
type=str,
default="localhost",
help=(
"Host where the Performance comparison webapp will be "
"served (Default = localhost)"
),
)
subparser.add_argument(
"--show-files-only",
action="store_true",
Expand All @@ -56,7 +65,7 @@ def execute(self, args) -> bool:
httpd = HTTPServer(("", args.port), handler)
log.info(
f"Performance Comparison Web App is available at "
f"http://localhost:{args.port}/www"
f"http://{args.host}:{args.port}/www"
)
httpd.serve_forever()
return True

0 comments on commit 4d59fac

Please sign in to comment.