qlever 0.5.5__py3-none-any.whl → 0.5.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of qlever might be problematic. Click here for more details.
- qlever/Qleverfiles/Qleverfile.wikimedia-commons +37 -0
- qlever/__main__.py +1476 -0
- qlever/qleverfile.py +1 -1
- qlever/util.py +16 -2
- {qlever-0.5.5.dist-info → qlever-0.5.6.dist-info}/METADATA +1 -1
- {qlever-0.5.5.dist-info → qlever-0.5.6.dist-info}/RECORD +10 -8
- {qlever-0.5.5.dist-info → qlever-0.5.6.dist-info}/LICENSE +0 -0
- {qlever-0.5.5.dist-info → qlever-0.5.6.dist-info}/WHEEL +0 -0
- {qlever-0.5.5.dist-info → qlever-0.5.6.dist-info}/entry_points.txt +0 -0
- {qlever-0.5.5.dist-info → qlever-0.5.6.dist-info}/top_level.txt +0 -0
qlever/qleverfile.py
CHANGED
|
@@ -106,7 +106,7 @@ class Qleverfile:
|
|
|
106
106
|
help="The binary for starting the server (this requires "
|
|
107
107
|
"that you have compiled QLever on your machine)")
|
|
108
108
|
server_args["host_name"] = arg(
|
|
109
|
-
"--host-name", type=str, default=f"
|
|
109
|
+
"--host-name", type=str, default=f"localhost",
|
|
110
110
|
help="The name of the host on which the server listens for "
|
|
111
111
|
"requests")
|
|
112
112
|
server_args["port"] = arg(
|
qlever/util.py
CHANGED
|
@@ -186,8 +186,9 @@ def get_random_string(length: int) -> str:
|
|
|
186
186
|
|
|
187
187
|
def is_port_used(port: int) -> bool:
|
|
188
188
|
"""
|
|
189
|
-
Try to bind to the port on all interfaces to check if the port is already
|
|
190
|
-
If the port is already in use, `socket.bind` will raise an
|
|
189
|
+
Try to bind to the port on all interfaces to check if the port is already
|
|
190
|
+
in use. If the port is already in use, `socket.bind` will raise an
|
|
191
|
+
`OSError` with errno EADDRINUSE.
|
|
191
192
|
"""
|
|
192
193
|
try:
|
|
193
194
|
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
@@ -200,3 +201,16 @@ def is_port_used(port: int) -> bool:
|
|
|
200
201
|
if err.errno != errno.EADDRINUSE:
|
|
201
202
|
log.warning(f"Failed to determine if port is used: {err}")
|
|
202
203
|
return True
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
def check_if_installed(name: str, check_cmd: str) -> bool:
|
|
207
|
+
"""
|
|
208
|
+
Helper function that checks if a given program is installed by running
|
|
209
|
+
the given command.
|
|
210
|
+
"""
|
|
211
|
+
try:
|
|
212
|
+
run_command(check_cmd)
|
|
213
|
+
return True
|
|
214
|
+
except Exception as e:
|
|
215
|
+
log.error(f"{name} is not installed: {e}")
|
|
216
|
+
return False
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
qlever/__init__.py,sha256=7VKA8tp5iHZQyTXhDOcxUbloZ7WyxDnkruq0iJOzQcE,1403
|
|
2
|
+
qlever/__main__.py,sha256=MqM37bEzQeJEGUXZvuLcilIvnObZiG2eTGIkfKGpdnw,62016
|
|
2
3
|
qlever/command.py,sha256=yOr0Uc8D8-AM7EjwDsVzbc3KNYjPH-FVOZhIHkqO588,2749
|
|
3
4
|
qlever/config.py,sha256=qYPy-MQ7BwGrvKSazQWhs0lnlOFqm-d47mpZhc3fptc,10254
|
|
4
5
|
qlever/containerize.py,sha256=p8g3O3G8a_0XLzSTzl_e5t9dqjbCQ-ippoA8vI2Z9pI,4193
|
|
5
6
|
qlever/log.py,sha256=2O_RvFymnu_dB10ErBTAOsI8bgjORfdD0tE3USH-siM,1315
|
|
6
7
|
qlever/qlever_main.py,sha256=tA_xqOs_FjvqlDIvKTprwuysfTwzsUjE7at26gRhCVA,2336
|
|
7
8
|
qlever/qlever_old.py,sha256=X-JxmepFKYeFgSLLp0TRDNqXSxDwIbc8_0Xstiems8c,62026
|
|
8
|
-
qlever/qleverfile.py,sha256=
|
|
9
|
-
qlever/util.py,sha256=
|
|
9
|
+
qlever/qleverfile.py,sha256=D321zDnWi-ScCefbFGBydKKI7lzzr1CkohHW6KuwVw0,13106
|
|
10
|
+
qlever/util.py,sha256=xNXxXTDfoDqTV0DKo5rKQpkdIwvi7JwfW7ySelvJaZ0,8185
|
|
10
11
|
qlever/Qleverfiles/Qleverfile.dblp,sha256=Y6BqAG1GZg-OmEs0HM00yAQuY2TGnSzsOO1LLmGVn2Y,994
|
|
11
12
|
qlever/Qleverfiles/Qleverfile.dblp-plus,sha256=Dwd9pK1vPcelKfw6sA-IuyhbZ6yIxOh6_84JgPYnB9Q,1332
|
|
12
13
|
qlever/Qleverfiles/Qleverfile.dbpedia,sha256=aaNZZayE-zVePGSwPzXemkX__Ns8-kP_E7DNNKZPnqg,1160
|
|
@@ -24,6 +25,7 @@ qlever/Qleverfiles/Qleverfile.scientists,sha256=9eZ2c6P9a3E3VHa3RR7LdOQbF4k3oyyr
|
|
|
24
25
|
qlever/Qleverfiles/Qleverfile.uniprot,sha256=9kAKseomdUnIt7EAZge39g1MTuaLVaSW9JYLHzIMolM,2338
|
|
25
26
|
qlever/Qleverfiles/Qleverfile.vvz,sha256=ftdMj5dCC9jAlFtNt2WR7kP30w0itT_iYtj5HoUVyWU,931
|
|
26
27
|
qlever/Qleverfiles/Qleverfile.wikidata,sha256=vDkTY3mPSx2C8MvFWfB72zZoc4d-TMJSw3f_-FqnEqs,1275
|
|
28
|
+
qlever/Qleverfiles/Qleverfile.wikimedia-commons,sha256=5JJ1MIp6LoM-ROCDFFIRvLREepCF4i4PnjOT9AFihzQ,2247
|
|
27
29
|
qlever/Qleverfiles/Qleverfile.wikipathways,sha256=UFEVLrtOBiSQfibBN9xc2wDXrnWcnx5f8PY9khcE6bc,1983
|
|
28
30
|
qlever/Qleverfiles/Qleverfile.yago-4,sha256=GikYPqChCtbAyZOVqszmVUwgQxSePTcgM8xw2b_21e4,1849
|
|
29
31
|
qlever/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -42,9 +44,9 @@ qlever/commands/status.py,sha256=5S6EdapZEwFKV9cQZtNYcZhMbAXAY-FP6ggjIhfX8ek,163
|
|
|
42
44
|
qlever/commands/stop.py,sha256=TZs4bxKHvujlZAU8BZmFjA5eXSZNAa6EeNzvPpEZsuI,4139
|
|
43
45
|
qlever/commands/ui.py,sha256=b7g7Mp6ZWevn8f1kwFr-WR4ZWMq42KEV4cGl2QS7M1E,2828
|
|
44
46
|
qlever/commands/warmup.py,sha256=WOZSxeV8U_F6pEEnAb6YybXLQMxZFTRJXs4BPHUhsmc,1030
|
|
45
|
-
qlever-0.5.
|
|
46
|
-
qlever-0.5.
|
|
47
|
-
qlever-0.5.
|
|
48
|
-
qlever-0.5.
|
|
49
|
-
qlever-0.5.
|
|
50
|
-
qlever-0.5.
|
|
47
|
+
qlever-0.5.6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
48
|
+
qlever-0.5.6.dist-info/METADATA,sha256=FRJKEH385p07cxSLLKRHSgiND-PFwFtPnIYWQjVBv3M,4582
|
|
49
|
+
qlever-0.5.6.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
|
|
50
|
+
qlever-0.5.6.dist-info/entry_points.txt,sha256=U_gbYYi0wwdsn884eb0XoOXfvhACOsxhlO330dZ9bi0,87
|
|
51
|
+
qlever-0.5.6.dist-info/top_level.txt,sha256=kd3zsYqiFd0--Czh5XTVkfEq6XR-XgRFW35X0v0GT-c,7
|
|
52
|
+
qlever-0.5.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|