Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Comment thread
Dev10-sys marked this conversation as resolved.
Outdated
--authurl TEXT Keycloak token endpoint URL [default:
https://auth.dbpedia.org/realms/dbpedia/protocol/openid-
connect/token]
Expand Down Expand Up @@ -292,9 +294,9 @@ Options:
--version-id TEXT Target databus version/dataset identifier of the form <h
ttps://databus.dbpedia.org/$ACCOUNT/$GROUP/$ARTIFACT/$VE
RSION> [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)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
--license TEXT License (see dalicc.net) [required]
--apikey TEXT API key [required]
--metadata PATH Path to metadata JSON file (for metadata mode)
Expand Down
1 change: 0 additions & 1 deletion databusclient/api/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
19 changes: 16 additions & 3 deletions databusclient/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,22 @@ def app():
help="Target databus version/dataset identifier of the form "
"<https://databus.dbpedia.org/$ACCOUNT/$GROUP/$ARTIFACT/$VERSION>",
)
@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)"
)
Expand Down