From bba8c71ff5737f9358b89851b8488c73f7f7402d Mon Sep 17 00:00:00 2001 From: Krishna Agarwal <159047652+krishnaa05@users.noreply.github.com> Date: Tue, 23 Jun 2026 13:02:04 -0500 Subject: [PATCH 1/3] Add DownloadStatus object return for status_code --- gen3/tools/download/drs_download.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gen3/tools/download/drs_download.py b/gen3/tools/download/drs_download.py index d4e79331..94687958 100644 --- a/gen3/tools/download/drs_download.py +++ b/gen3/tools/download/drs_download.py @@ -285,6 +285,7 @@ def __str__(self): return ( f'filename: {self.filename if self.filename is not None else "not available"}; ' f"status: {self.status}; " + f"status_code: {self.status_code}; " f'start_time: {self.start_time.strftime("%m/%d/%Y, %H:%M:%S") if self.start_time is not None else "n/a"}; ' f'end_time: {self.end_time.strftime("%m/%d/%Y, %H:%M:%S") if self.start_time is not None else "n/a"}' ) From 905f17106fe2ad5d308c31ff08db559aed38b1bd Mon Sep 17 00:00:00 2001 From: krishnaa05 Date: Tue, 23 Jun 2026 18:03:06 +0000 Subject: [PATCH 2/3] Apply automatic documentation changes --- docs/_build/html/_modules/gen3/tools/download/drs_download.html | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/_build/html/_modules/gen3/tools/download/drs_download.html b/docs/_build/html/_modules/gen3/tools/download/drs_download.html index 8705a92d..d62d0b88 100644 --- a/docs/_build/html/_modules/gen3/tools/download/drs_download.html +++ b/docs/_build/html/_modules/gen3/tools/download/drs_download.html @@ -341,6 +341,7 @@

Source code for gen3.tools.download.drs_download

return ( f'filename: {self.filename if self.filename is not None else "not available"}; ' f"status: {self.status}; " + f"status_code: {self.status_code}; " f'start_time: {self.start_time.strftime("%m/%d/%Y, %H:%M:%S") if self.start_time is not None else "n/a"}; ' f'end_time: {self.end_time.strftime("%m/%d/%Y, %H:%M:%S") if self.start_time is not None else "n/a"}' ) From 92c5717d9d804e229a7523a9fc1bbc9a8b33952a Mon Sep 17 00:00:00 2001 From: krishna Date: Tue, 23 Jun 2026 13:07:34 -0500 Subject: [PATCH 3/3] Fixes --- pyproject.toml | 2 +- tests/download_tests/test_download.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3cba03be..9a2caddd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "gen3" homepage = "https://gen3.org/" -version = "4.28.0" +version = "4.28.1" description = "Gen3 CLI and Python SDK" authors = ["Center for Translational Data Science at the University of Chicago "] license = "Apache-2.0" diff --git a/tests/download_tests/test_download.py b/tests/download_tests/test_download.py index f0fb70c6..7440c1f4 100644 --- a/tests/download_tests/test_download.py +++ b/tests/download_tests/test_download.py @@ -841,7 +841,7 @@ def test_download_status_repr_and_str(): end_time=datetime.strptime("2011-11-04T00:07:12Z", "%Y-%m-%dT%H:%M:%SZ"), ) - expected = "filename: test.csv; status: downloaded; start_time: 11/04/2011, 00:05:23; end_time: 11/04/2011, 00:07:12" + expected = "filename: test.csv; status: downloaded; status_code: None; start_time: 11/04/2011, 00:05:23; end_time: 11/04/2011, 00:07:12" results = download1.__repr__() assert results == expected