Skip to content

Configure

from qdl import configure, ensure_daemon_running

configure

Override the pre-configured SDK settings with the given value(s).

Parameters:

Name Type Description Default
local_path Optional[str]

Local path. In this path, local datasets and files are stored. Defaults to the current working directory.

None
local_ignore_file Optional[str]

Path to the local ignore file. This file contains ignore expressions to exclude files when adding a directory to a dataset. No local ignore file is pre-configured by default.

None
host Optional[str]

Hostname of the QDL daemon. Defaults to "localhost".

None
port Optional[int]

Port number of QDL daemon. Defaults to 5500.

None
api_token Optional[AuthenticationToken]

API token for user authorisation. The SDK has no API token set by default, unless it is set previously.

None
verbose Optional[bool]

Print ignored files when adding directories to datasets. Defaults to False.

None

Returns:

Type Description
Settings

Settings instance containing the current configuration.

See Also

SDK documentation to set up the local ignore file and the different user authorisation methods.

ensure_daemon_running

Returns when the daemon is available, otherwise an error is raised.

Raises:

Type Description
QdlSdkException

Daemon is unavailable.