pybiolib 1.2.216__py3-none-any.whl → 1.2.218__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.
- biolib/utils/__init__.py +11 -6
- {pybiolib-1.2.216.dist-info → pybiolib-1.2.218.dist-info}/METADATA +1 -1
- {pybiolib-1.2.216.dist-info → pybiolib-1.2.218.dist-info}/RECORD +6 -6
- {pybiolib-1.2.216.dist-info → pybiolib-1.2.218.dist-info}/LICENSE +0 -0
- {pybiolib-1.2.216.dist-info → pybiolib-1.2.218.dist-info}/WHEEL +0 -0
- {pybiolib-1.2.216.dist-info → pybiolib-1.2.218.dist-info}/entry_points.txt +0 -0
biolib/utils/__init__.py
CHANGED
@@ -87,12 +87,17 @@ def _download_chunk(input_tuple: DownloadChunkInputTuple) -> bytes:
|
|
87
87
|
byte_range, presigned_url = input_tuple
|
88
88
|
start, end = byte_range
|
89
89
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
90
|
+
try:
|
91
|
+
response = HttpClient.request(
|
92
|
+
url=presigned_url,
|
93
|
+
headers={'range': f'bytes={start}-{end}'},
|
94
|
+
timeout_in_seconds=300, # timeout after 5 min
|
95
|
+
retries=20,
|
96
|
+
)
|
97
|
+
except Exception as exception:
|
98
|
+
logger_no_user_data.exception("Hit error downloading chunk")
|
99
|
+
logger_no_user_data.error(exception)
|
100
|
+
raise exception
|
96
101
|
logger_no_user_data.debug(f'Returning raw data for part {start}')
|
97
102
|
return response.content
|
98
103
|
|
@@ -114,14 +114,14 @@ biolib/templates/example_app.py,sha256=EB3E3RT4SeO_ii5nVQqJpi5KDGNE_huF1ub-e5ZFv
|
|
114
114
|
biolib/typing_utils.py,sha256=ntzrlyTkUaO2OtccLYzCAGztGdca0WT5fikJUmSkT-Y,148
|
115
115
|
biolib/user/__init__.py,sha256=Db5wtxLfFz3ID9TULSSTo77csw9tO6RtxMRvV5cqKEE,39
|
116
116
|
biolib/user/sign_in.py,sha256=XTAmRPKfmg7VAaB8cT5wcmfxoPXeHqY8LmDiADF7zbw,2064
|
117
|
-
biolib/utils/__init__.py,sha256=
|
117
|
+
biolib/utils/__init__.py,sha256=rOUFayiY9h23ytSZgCNc7kEHorqFWxvYmt789Zb5mCM,5754
|
118
118
|
biolib/utils/app_uri.py,sha256=Yq_-_VGugQhMMo6mM5f0G9yNlLkr0WK4j0Nrf3FE4xQ,2171
|
119
119
|
biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3100
|
120
120
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
121
121
|
biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
|
122
122
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
123
|
-
pybiolib-1.2.
|
124
|
-
pybiolib-1.2.
|
125
|
-
pybiolib-1.2.
|
126
|
-
pybiolib-1.2.
|
127
|
-
pybiolib-1.2.
|
123
|
+
pybiolib-1.2.218.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
124
|
+
pybiolib-1.2.218.dist-info/METADATA,sha256=j5zDe_qsU-YkwN5wtvp2Sw_B85g67nzkQ7SaU94gn6o,1558
|
125
|
+
pybiolib-1.2.218.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
126
|
+
pybiolib-1.2.218.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
127
|
+
pybiolib-1.2.218.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|