nci-cidc-api-modules 1.2.49__py3-none-any.whl → 1.2.50__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.
cidc_api/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.2.49"
1
+ __version__ = "1.2.50"
@@ -486,9 +486,17 @@ async def async_gcs_files_to_pandas_dataframes(bucket_name: str, blob_names: Lis
486
486
  return dataframes
487
487
 
488
488
 
489
+ async def async_gcs_files_to_bytes(bucket_name: str, blob_names: List[str]) -> List[DataFrame]:
490
+ """Async reads a XLSX or CSV files from Google Cloud Storage into a list of raw bytes"""
491
+
492
+ all_contents = await asyncio.gather(
493
+ *[async_get_file_bytes_from_gcs(bucket_name, blob_name) for blob_name in blob_names]
494
+ )
495
+ return all_contents
496
+
497
+
489
498
  async def async_get_file_bytes_from_gcs(bucket_name: str, blob_name: str) -> io.BytesIO:
490
499
  """Async reads a file from Google Cloud Storage and returns it as BytesIO."""
491
-
492
500
  async with Storage() as client:
493
501
  sheet_data = await client.download(bucket_name, blob_name)
494
502
  return io.BytesIO(sheet_data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nci_cidc_api_modules
3
- Version: 1.2.49
3
+ Version: 1.2.50
4
4
  Summary: SQLAlchemy data models and configuration tools used in the NCI CIDC API
5
5
  Home-page: https://github.com/NCI-CIDC/cidc-api-gae
6
6
  License: MIT license
@@ -1,5 +1,5 @@
1
1
  boot.py,sha256=oS_16OgU34iDxyFNpJl5rb5KbfbsCXroUCNLwVPxPNg,416
2
- cidc_api/__init__.py,sha256=qkDVgmmc_W7WSA8UFQzKzULlTX27bnHrBTAlSeTYqYs,23
2
+ cidc_api/__init__.py,sha256=Mi5DzFmquYseHnFMuFvsBrEztpwNZnhZs1G4xpE08KQ,23
3
3
  cidc_api/telemetry.py,sha256=LuZWkG8CKCn23O41RTNxEOQwMmfpp-fQ6zSInZhVJg8,3333
4
4
  cidc_api/config/__init__.py,sha256=5mX8GAPxUKV84iS-aGOoE-4m68LsOCGCDptXNdlgvj0,148
5
5
  cidc_api/config/db.py,sha256=mEz8ugjvRNGylCqDYHaaMqaZfDh7sbd76BowmfBvq5c,2428
@@ -156,12 +156,12 @@ cidc_api/shared/auth.py,sha256=EIP9AKokLNrI79Fkpv3P7WdzaddJIsuGGICc1W494X0,9110
156
156
  cidc_api/shared/email_layout.html,sha256=pBoTNw3ACHH-ncZFaNvcy5bXMqPwizR78usb0uCYtIc,7670
157
157
  cidc_api/shared/emails.py,sha256=8kNFEaSnKpY-GX_iE59QUhSp3c4_uzy3SpHYt2QjuqI,6121
158
158
  cidc_api/shared/file_handling.py,sha256=9MZXx5RfXO3A_pXf8Ulb7DQEuyp9j12eO9ad-PcTBXo,5908
159
- cidc_api/shared/gcloud_client.py,sha256=7q6CWpAZdqSJoAkMpm9Rw7yFwNLIk6D9WZGJeTOwo54,40113
159
+ cidc_api/shared/gcloud_client.py,sha256=y_Ta5eSC4qg42xY1RU_NJBIZD-U-X6RhqedBE2jG2bU,40468
160
160
  cidc_api/shared/jose.py,sha256=-qzGzEDAlokEp9E7WtBtQkXyyfPWTYXlwYpCqVJWmqM,1830
161
161
  cidc_api/shared/rest_utils.py,sha256=RwR30WOUAYCxL7V-i2totEyeriG30GbBDvBcpLXhM9w,6594
162
162
  cidc_api/shared/utils.py,sha256=-gLnzxCR9E6h0plt2xrNisUG5_Y6GhhVwz3DgDIzpvs,367
163
- nci_cidc_api_modules-1.2.49.dist-info/licenses/LICENSE,sha256=pNYWVTHaYonnmJyplmeAp7tQAjosmDpAWjb34jjv7Xs,1102
164
- nci_cidc_api_modules-1.2.49.dist-info/METADATA,sha256=vy1hCgQ0v8NmAfY8w71VOrXET5k9u95FmpAUJb-vxHQ,40301
165
- nci_cidc_api_modules-1.2.49.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
166
- nci_cidc_api_modules-1.2.49.dist-info/top_level.txt,sha256=BSJqF6ura8-bWCKZvarvQEKvidMM05lH0bLQsNOrI0o,14
167
- nci_cidc_api_modules-1.2.49.dist-info/RECORD,,
163
+ nci_cidc_api_modules-1.2.50.dist-info/licenses/LICENSE,sha256=pNYWVTHaYonnmJyplmeAp7tQAjosmDpAWjb34jjv7Xs,1102
164
+ nci_cidc_api_modules-1.2.50.dist-info/METADATA,sha256=w0FHRpNTIBOvkNA_CFsN06uL0PNRlyhuWcVtMBcb3RA,40301
165
+ nci_cidc_api_modules-1.2.50.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
166
+ nci_cidc_api_modules-1.2.50.dist-info/top_level.txt,sha256=BSJqF6ura8-bWCKZvarvQEKvidMM05lH0bLQsNOrI0o,14
167
+ nci_cidc_api_modules-1.2.50.dist-info/RECORD,,