pylantir 0.0.4__py3-none-any.whl → 0.0.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.
- pylantir/cli/run.py +4 -3
- {pylantir-0.0.4.dist-info → pylantir-0.0.6.dist-info}/METADATA +9 -1
- {pylantir-0.0.4.dist-info → pylantir-0.0.6.dist-info}/RECORD +5 -5
- {pylantir-0.0.4.dist-info → pylantir-0.0.6.dist-info}/WHEEL +0 -0
- {pylantir-0.0.4.dist-info → pylantir-0.0.6.dist-info}/entry_points.txt +0 -0
pylantir/cli/run.py
CHANGED
|
@@ -194,17 +194,18 @@ def main() -> None:
|
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
if (args.command == "start"):
|
|
197
|
-
from ..mwl_server import run_mwl_server
|
|
198
|
-
from ..redcap_to_db import sync_redcap_to_db_repeatedly
|
|
199
197
|
# Load configuration (either user-specified or default)
|
|
200
198
|
config = load_config(args.pylantir_config)
|
|
201
|
-
|
|
202
199
|
# Extract the database path (default to worklist.db if missing) &
|
|
203
200
|
# Extract the database echo setting (default to False if missing)
|
|
204
201
|
db_path = config.get("db_path", "./worklist.db")
|
|
205
202
|
db_echo = config.get("db_echo", "False")
|
|
206
203
|
update_env_with_config(db_path=db_path, db_echo=db_echo)
|
|
207
204
|
|
|
205
|
+
|
|
206
|
+
from ..mwl_server import run_mwl_server
|
|
207
|
+
from ..redcap_to_db import sync_redcap_to_db_repeatedly
|
|
208
|
+
|
|
208
209
|
# Extract the database update interval (default to 60 seconds if missing)
|
|
209
210
|
db_update_interval = config.get("db_update_interval", 60)
|
|
210
211
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pylantir
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: Python - DICOM Modality WorkList
|
|
5
5
|
Author-email: Milton Camacho <miltoncamachoicc@gmail.com>
|
|
6
6
|
Requires-Python: >=3.11.1
|
|
@@ -64,6 +64,14 @@ To get started simply install using:
|
|
|
64
64
|
pip install pylantir
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
+
You need to provide your REDCap API URL and API token before starting the server.
|
|
68
|
+
Set up environmental variables before starting the server:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
export REDCAP_API_URL=<your API url>
|
|
72
|
+
export REDCAP_API_TOKEN=<your API token>
|
|
73
|
+
```
|
|
74
|
+
|
|
67
75
|
Start a server called with AEtitle MWL_SERVER.
|
|
68
76
|
|
|
69
77
|
```bash
|
|
@@ -6,9 +6,9 @@ pylantir/mwl_server.py,sha256=0NzZY2_uRI8QIeLeTFzQBuPyYxrKYrF1eHLNAnT4rXc,8662
|
|
|
6
6
|
pylantir/populate_db.py,sha256=KIbkVA-EAuTlDArXMFOHkjMmVfjlsTApj7S1wpUu1bM,2207
|
|
7
7
|
pylantir/redcap_to_db.py,sha256=ITiMAY-XB7B_-_8jUSAjdNqTngULjXBbWYjY4_Byh1U,8465
|
|
8
8
|
pylantir/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
pylantir/cli/run.py,sha256=
|
|
9
|
+
pylantir/cli/run.py,sha256=aF_koq7zGo1q7pU68Bw776hWz_eNBvVkcm-nG_-vwIo,10293
|
|
10
10
|
pylantir/config/mwl_config.json,sha256=1Ma2guYAEAXQh1z7959aZadAn3ORjBqnDDibSLcwv_g,851
|
|
11
|
-
pylantir-0.0.
|
|
12
|
-
pylantir-0.0.
|
|
13
|
-
pylantir-0.0.
|
|
14
|
-
pylantir-0.0.
|
|
11
|
+
pylantir-0.0.6.dist-info/entry_points.txt,sha256=vxaxvfGppLqRt9_4sqNDdP6b2jlgpcHIwP7UQfrM1T0,50
|
|
12
|
+
pylantir-0.0.6.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
|
13
|
+
pylantir-0.0.6.dist-info/METADATA,sha256=n3YnxTkvEpN8rVpelcMi_IwFmfdt40GQSrrm0JQ4dRc,7176
|
|
14
|
+
pylantir-0.0.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|