pylantir 0.0.4__tar.gz → 0.0.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pylantir
3
- Version: 0.0.4
3
+ Version: 0.0.5
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
@@ -19,6 +19,14 @@ To get started simply install using:
19
19
  pip install pylantir
20
20
  ```
21
21
 
22
+ You need to provide your REDCap API URL and API token before starting the server.
23
+ Set up environmental variables before starting the server:
24
+
25
+ ```bash
26
+ export REDCAP_API_URL=<your API url>
27
+ export REDCAP_API_TOKEN=<your API token>
28
+ ```
29
+
22
30
  Start a server called with AEtitle MWL_SERVER.
23
31
 
24
32
  ```bash
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
4
4
 
5
5
  [project]
6
6
  name = "pylantir"
7
- version = "0.0.4"
7
+ version = "0.0.5"
8
8
  authors = [
9
9
  {name = "Milton Camacho", email = "miltoncamachoicc@gmail.com"},
10
10
  ]
File without changes
@@ -194,17 +194,17 @@ 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
- # Load configuration (either user-specified or default)
200
- config = load_config(args.pylantir_config)
201
-
202
197
  # Extract the database path (default to worklist.db if missing) &
203
198
  # Extract the database echo setting (default to False if missing)
204
199
  db_path = config.get("db_path", "./worklist.db")
205
200
  db_echo = config.get("db_echo", "False")
206
201
  update_env_with_config(db_path=db_path, db_echo=db_echo)
207
202
 
203
+ from ..mwl_server import run_mwl_server
204
+ from ..redcap_to_db import sync_redcap_to_db_repeatedly
205
+ # Load configuration (either user-specified or default)
206
+ config = load_config(args.pylantir_config)
207
+
208
208
  # Extract the database update interval (default to 60 seconds if missing)
209
209
  db_update_interval = config.get("db_update_interval", 60)
210
210