From f32ca139c7c429dafdc7492ac707988948707c22 Mon Sep 17 00:00:00 2001 From: Dev10-sys Date: Thu, 22 Jan 2026 15:04:36 +0530 Subject: [PATCH 1/3] Fix duplicate GET request and clean up Accept-Encoding header --- databusclient/api/download.py | 1 - 1 file changed, 1 deletion(-) diff --git a/databusclient/api/download.py b/databusclient/api/download.py index 1a92d7f..a7e315e 100644 --- a/databusclient/api/download.py +++ b/databusclient/api/download.py @@ -253,7 +253,6 @@ def _download_file( # for user-friendly CLI output. vault_token = __get_vault_access__(url, vault_token_file, auth_url, client_id) headers["Authorization"] = f"Bearer {vault_token}" - headers["Accept-Encoding"] = "identity" # Retry with token response = requests.get(url, headers=headers, stream=True, timeout=30) From 47275d7c4031ad73218324bb0734c3d1c71067f2 Mon Sep 17 00:00:00 2001 From: Dev10-sys Date: Thu, 22 Jan 2026 17:48:33 +0530 Subject: [PATCH 2/3] docs(cli): align help text and document --validate-checksum --- README.md | 8 +++++--- databusclient/cli.py | 19 ++++++++++++++++--- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 171590c..de09fca 100644 --- a/README.md +++ b/README.md @@ -197,6 +197,8 @@ Options: --databus-key TEXT Databus API key to download from protected databus --all-versions When downloading artifacts, download all versions instead of only the latest + --validate-checksum Validate checksums of downloaded files and fail on mismatch + --authurl TEXT Keycloak token endpoint URL [default: https://auth.dbpedia.org/realms/dbpedia/protocol/openid- connect/token] @@ -292,9 +294,9 @@ Options: --version-id TEXT Target databus version/dataset identifier of the form [required] - --title TEXT Dataset title [required] - --abstract TEXT Dataset abstract max 200 chars [required] - --description TEXT Dataset description [required] + --title TEXT Artifact & version title (applied to both) + --abstract TEXT Artifact & version abstract (max 200 chars; applied to both) + --description TEXT Artifact & version description (applied to both) --license TEXT License (see dalicc.net) [required] --apikey TEXT API key [required] --metadata PATH Path to metadata JSON file (for metadata mode) diff --git a/databusclient/cli.py b/databusclient/cli.py index f71c823..5743a91 100644 --- a/databusclient/cli.py +++ b/databusclient/cli.py @@ -29,9 +29,22 @@ def app(): help="Target databus version/dataset identifier of the form " "", ) -@click.option("--title", required=True, help="Dataset title") -@click.option("--abstract", required=True, help="Dataset abstract max 200 chars") -@click.option("--description", required=True, help="Dataset description") +@click.option( + "--title", + required=True, + help="Artifact & version title (applied to both artifact and version)", +) +@click.option( + "--abstract", + required=True, + help="Artifact & version abstract (max 200 chars; applied to both artifact and version)", +) +@click.option( + "--description", + required=True, + help="Artifact & version description (applied to both artifact and version)", +) + @click.option( "--license", "license_url", required=True, help="License (see dalicc.net)" ) From 5d89a0d3d4eb73a5944b641cdcc025556de893d6 Mon Sep 17 00:00:00 2001 From: Dev10-sys Date: Thu, 22 Jan 2026 18:11:34 +0530 Subject: [PATCH 3/3] docs(cli): align README with CLI options and help text --- README.md | 6 +++--- databusclient/cli.py | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index de09fca..3d6a40f 100644 --- a/README.md +++ b/README.md @@ -294,9 +294,9 @@ Options: --version-id TEXT Target databus version/dataset identifier of the form [required] - --title TEXT Artifact & version title (applied to both) - --abstract TEXT Artifact & version abstract (max 200 chars; applied to both) - --description TEXT Artifact & version description (applied to both) + --title TEXT Artifact & version title (applied to both) [required] + --abstract TEXT Artifact & version abstract (max 200 chars; applied to both) [required] + --description TEXT Artifact & version description (applied to both) [required] --license TEXT License (see dalicc.net) [required] --apikey TEXT API key [required] --metadata PATH Path to metadata JSON file (for metadata mode) diff --git a/databusclient/cli.py b/databusclient/cli.py index 5743a91..65c4cc8 100644 --- a/databusclient/cli.py +++ b/databusclient/cli.py @@ -178,8 +178,9 @@ def deploy( @click.option( "--validate-checksum", is_flag=True, - help="Validate checksums of downloaded files" + help="Validate checksums of downloaded files and fail on mismatch" ) + def download( databusuris: List[str], localdir,