NGPIris 5.4.1__tar.gz → 5.4.2.dev1__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.
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/hcp/hcp.py +14 -8
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris.egg-info/PKG-INFO +1 -1
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/PKG-INFO +1 -1
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/pyproject.toml +1 -1
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/LICENSE +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/MANIFEST.in +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/__init__.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/cli/__init__.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/hci/__init__.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/hci/exceptions.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/hci/hci.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/hci/helpers.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/hcp/__init__.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/hcp/exceptions.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/hcp/helpers.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/hcp/statistics.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/parse_credentials/__init__.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/parse_credentials/parse_credentials.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/utils/__init__.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris/utils/utils.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris.egg-info/SOURCES.txt +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris.egg-info/dependency_links.txt +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris.egg-info/entry_points.txt +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris.egg-info/requires.txt +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/NGPIris.egg-info/top_level.txt +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/README.md +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/IRIS_5_changelog.md +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/Makefile +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/NGPIris.cli.rst +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/NGPIris.hci.rst +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/NGPIris.hcp.rst +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/NGPIris.parse_credentials.rst +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/NGPIris.rst +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/NGPIris.utils.rst +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/Tutorial.md +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/conf.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/index.rst +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/make.bat +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/docs/modules.rst +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/setup.cfg +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/data/80MB_test_file +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/data/a folder of data/80MB_test_file_0 +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/data/a folder of data/80MB_test_file_1 +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/data/complete_creds_0.json +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/data/complete_creds_1.json +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/data/complete_creds_2.json +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/data/incomplete_creds_0.json +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/data/incomplete_creds_1.json +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/data/incomplete_creds_2.json +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/data/incomplete_creds_3.json +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/data/incomplete_creds_4.json +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/test_hci.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/test_hcp.py +0 -0
- {ngpiris-5.4.1 → ngpiris-5.4.2.dev1}/tests/test_parse_credentials.py +0 -0
|
@@ -507,20 +507,26 @@ class HCPHandler:
|
|
|
507
507
|
unit_scale = True,
|
|
508
508
|
desc = local_file_path
|
|
509
509
|
) as pbar:
|
|
510
|
+
try:
|
|
511
|
+
self.s3_client.upload_file(
|
|
512
|
+
Filename = local_file_path,
|
|
513
|
+
Bucket = self.bucket_name,
|
|
514
|
+
Key = key,
|
|
515
|
+
Config = self.transfer_config,
|
|
516
|
+
Callback = lambda bytes_transferred : pbar.update(bytes_transferred)
|
|
517
|
+
)
|
|
518
|
+
except Exception as e:
|
|
519
|
+
print("Upload failed:", e)
|
|
520
|
+
else:
|
|
521
|
+
try:
|
|
510
522
|
self.s3_client.upload_file(
|
|
511
523
|
Filename = local_file_path,
|
|
512
524
|
Bucket = self.bucket_name,
|
|
513
525
|
Key = key,
|
|
514
526
|
Config = self.transfer_config,
|
|
515
|
-
Callback = lambda bytes_transferred : pbar.update(bytes_transferred)
|
|
516
527
|
)
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
Filename = local_file_path,
|
|
520
|
-
Bucket = self.bucket_name,
|
|
521
|
-
Key = key,
|
|
522
|
-
Config = self.transfer_config,
|
|
523
|
-
)
|
|
528
|
+
except Exception as e:
|
|
529
|
+
print("Upload failed:", e)
|
|
524
530
|
|
|
525
531
|
|
|
526
532
|
@check_mounted
|
|
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
|
|
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
|