kardioutils 1.0.17__tar.gz → 1.0.18__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.17/kardioutils.egg-info → kardioutils-1.0.18}/PKG-INFO +1 -1
- kardioutils-1.0.18/dl2050utils/__version__.py +1 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/fs.py +5 -2
- {kardioutils-1.0.17 → kardioutils-1.0.18/kardioutils.egg-info}/PKG-INFO +1 -1
- kardioutils-1.0.17/dl2050utils/__version__.py +0 -1
- {kardioutils-1.0.17 → kardioutils-1.0.18}/LICENSE.txt +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/README.md +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/__config__.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/__init__.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/api.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/auth.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/com.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/common.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/core.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/db copy.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/db.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/dbdf.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/dbutils.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/df.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/df_utils.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/env.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/etl.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/fdb.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/graphql.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/gs.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/ju.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/log.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/mq.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/rest.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/restapp.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/restutils.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/sqlite.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/ulists.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/dl2050utils/wsgi.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/kardioutils.egg-info/SOURCES.txt +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/kardioutils.egg-info/dependency_links.txt +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/kardioutils.egg-info/top_level.txt +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/setup.cfg +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/setup.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/test/test_core.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/test/test_db.py +0 -0
- {kardioutils-1.0.17 → kardioutils-1.0.18}/test/test_env.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
version = "1.0.18"
|
|
@@ -358,8 +358,8 @@ def upload_file(url, p):
|
|
|
358
358
|
except Exception as exc:
|
|
359
359
|
print(f'upload_file EXCEPTION: {exc}')
|
|
360
360
|
return 1
|
|
361
|
-
|
|
362
|
-
def download_file(url, p):
|
|
361
|
+
|
|
362
|
+
def download_file(url, p, token= None):
|
|
363
363
|
"""
|
|
364
364
|
Downloads a file to the given pre-signed URL.
|
|
365
365
|
Args:
|
|
@@ -368,6 +368,9 @@ def download_file(url, p):
|
|
|
368
368
|
Returns 0 if upload is successful, 1 otherwise.
|
|
369
369
|
"""
|
|
370
370
|
headers = {'Content-Type': 'application/octet-stream'}
|
|
371
|
+
if token is not None:
|
|
372
|
+
headers["X-Internal-Token"] = token
|
|
373
|
+
|
|
371
374
|
try:
|
|
372
375
|
res = requests.get(url, headers=headers)
|
|
373
376
|
if res.status_code==200:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
version = "1.0.17"
|
|
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
|
|
File without changes
|