Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
6 changes: 3 additions & 3 deletions databusclient/api/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@

def create_dataset(
version_id: str,
title: str,
abstract: str,
description: str,
artifact_title: str,
artifact_abstract: str,
artifact_description: str,
license_url: str,
distributions: List[str],
attribution: str = None,
Expand Down Expand Up @@ -422,9 +422,9 @@
log_level: DeployLogLevel = DeployLogLevel.debug,
debug: bool = False,
) -> None:
"""Deploys a dataset to the databus. The endpoint is inferred from the DataID identifier.

Check failure on line 425 in databusclient/api/deploy.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F821)

databusclient/api/deploy.py:425:18: F821 Undefined name `title`
Parameters

Check failure on line 426 in databusclient/api/deploy.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F821)

databusclient/api/deploy.py:426:21: F821 Undefined name `abstract`
----------

Check failure on line 427 in databusclient/api/deploy.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F821)

databusclient/api/deploy.py:427:24: F821 Undefined name `description`
dataid: Dict[str, Union[List[Dict[str, Union[bool, str, int, float, List]]], str]]
The dataid represented as a python dict. Preferably created by the creaateDataset function
api_key: str
Expand All @@ -434,9 +434,9 @@
log_level: DeployLogLevel
log level of the deploy output
debug: bool
controls whether output shold be printed to the console (stdout)

Check failure on line 437 in databusclient/api/deploy.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F821)

databusclient/api/deploy.py:437:18: F821 Undefined name `title`
"""

Check failure on line 438 in databusclient/api/deploy.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F821)

databusclient/api/deploy.py:438:21: F821 Undefined name `abstract`

Check failure on line 439 in databusclient/api/deploy.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F821)

databusclient/api/deploy.py:439:24: F821 Undefined name `description`
headers = {"X-API-KEY": f"{api_key}", "Content-Type": "application/json"}
data = json.dumps(dataid)

Expand Down
6 changes: 3 additions & 3 deletions databusclient/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ 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 title: the permanent name of the data series (applies to all versions)")
@click.option("--abstract", required=True, help="Version Abstract: a short summary (max 200 chars) specific to this timestamped release")
@click.option("--description", required=True, help="Version Description: detailed metadata for this specific release (supports Markdown)")
@click.option(
"--license", "license_url", required=True, help="License (see dalicc.net)"
)
Expand Down
Loading