kardioutils 1.0.14__tar.gz → 1.0.16__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.
- {kardioutils-1.0.14/kardioutils.egg-info → kardioutils-1.0.16}/PKG-INFO +1 -1
- kardioutils-1.0.16/dl2050utils/__version__.py +1 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/gs.py +5 -5
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/restapp.py +1 -1
- {kardioutils-1.0.14 → kardioutils-1.0.16/kardioutils.egg-info}/PKG-INFO +1 -1
- kardioutils-1.0.14/dl2050utils/__version__.py +0 -1
- {kardioutils-1.0.14 → kardioutils-1.0.16}/LICENSE.txt +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/README.md +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/__config__.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/__init__.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/api.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/auth.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/com.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/common.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/core.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/db copy.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/db.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/dbdf.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/dbutils.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/df.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/df_utils.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/env.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/etl.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/fdb.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/fs.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/graphql.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/ju.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/log.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/mq.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/rest.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/restutils.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/sqlite.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/ulists.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/dl2050utils/wsgi.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/kardioutils.egg-info/SOURCES.txt +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/kardioutils.egg-info/dependency_links.txt +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/kardioutils.egg-info/top_level.txt +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/setup.cfg +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/setup.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/test/test_core.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/test/test_db.py +0 -0
- {kardioutils-1.0.14 → kardioutils-1.0.16}/test/test_env.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
version = "1.0.16"
|
|
@@ -64,17 +64,17 @@ class GS:
|
|
|
64
64
|
# Try Google Cloud first
|
|
65
65
|
key_dict = oget(cfg, ["gcloud", "gs_key"])
|
|
66
66
|
fs_cfg = oget(cfg, ["fs"]) or {}
|
|
67
|
-
|
|
67
|
+
self.internal_token = fs_cfg.get("internal_token")
|
|
68
|
+
if self.internal_token:
|
|
69
|
+
os.environ["FS_INTERNAL_TOKEN"] = self.internal_token
|
|
68
70
|
self.mode = None # 'gcloud' or 'local'
|
|
69
71
|
|
|
70
72
|
if key_dict is not None:
|
|
71
73
|
# ---------- GCS MODE ----------
|
|
72
74
|
assert key_dict["type"] == "service_account"
|
|
73
75
|
credentials_p = "./gs-keyfile.json"
|
|
74
|
-
token = fs_cfg["internal_token"]
|
|
75
76
|
json_save(credentials_p, key_dict)
|
|
76
77
|
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = credentials_p
|
|
77
|
-
os.environ["FS_INTERNAL_TOKEN"] = token
|
|
78
78
|
|
|
79
79
|
self.default_location = default_location
|
|
80
80
|
self.gc = storage.Client()
|
|
@@ -309,7 +309,7 @@ class GS:
|
|
|
309
309
|
if not download_url:
|
|
310
310
|
print("download_mem (local) ERROR: could not generate download_url")
|
|
311
311
|
return None
|
|
312
|
-
internal_token =
|
|
312
|
+
internal_token = self.internal_token
|
|
313
313
|
headers = {}
|
|
314
314
|
if internal_token:
|
|
315
315
|
headers["X-Internal-Token"] = internal_token
|
|
@@ -392,7 +392,7 @@ class GS:
|
|
|
392
392
|
print("download_file (local) ERROR: could not generate download_url")
|
|
393
393
|
return 1
|
|
394
394
|
|
|
395
|
-
internal_token =
|
|
395
|
+
internal_token = self.internal_token
|
|
396
396
|
|
|
397
397
|
headers = {}
|
|
398
398
|
if internal_token:
|
|
@@ -202,7 +202,7 @@ class App():
|
|
|
202
202
|
Uploads a workfile file fname belonging to a registered user.
|
|
203
203
|
Workfiles for upload are usually content produced by the users.
|
|
204
204
|
Workfiles are stored in the folder '$DATAPATH/workfiles/<service>'.
|
|
205
|
-
"""
|
|
205
|
+
"""<
|
|
206
206
|
u = await self.auth.check_auth(request)
|
|
207
207
|
uid = u['uid']
|
|
208
208
|
fname = request.path_params['fname']
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
version = "1.0.14"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|