redivis.config
redivis.config(*, [default_workflow, default_dataset, default_user, default_organization, api_endpoint, config_dir, tmp_dir, max_parallelization, progress]) → dict
Sets library-wide defaults, and returns the current configuration. Arguments that aren't passed are left as they are, and settings that haven't been set fall back to their environment variables. Pass None to clear a previously set value.
Arguments passed directly to a method (e.g., table.to_pandas_dataframe(progress=False)) always take precedence over the configuration.
Parameters:
default_workflow : str | Workflow | None
The workflow (owner.workflow) within which unqualified table, query, parameter, transform, notebook, and datasource references are resolved. In Redivis notebooks, this is set to the notebook's workflow.
default_dataset : str | Dataset | None
The dataset (owner.dataset) within which unqualified table and query references are resolved, when there's no default workflow.
default_user : str | User | None
The owner of unqualified dataset and workflow references.
default_organization : str | Organization | None
The owner of unqualified dataset and workflow references, when there's no default user.
api_endpoint : str | None
The base URL of the Redivis API. Defaults to https://redivis.com/api/v1.
config_dir : str | os.PathLike | None
The directory in which credentials are cached after logging in. Defaults to ~/.redivis. Credentials for redivis.com are cached directly in this directory, and those for any other API endpoint in a subdirectory for its host (e.g., environments/localhost_8080/).
tmp_dir : str | os.PathLike | None
The directory in which to temporarily store data, such as for disk-backed data objects (e.g., Table.to_arrow_dataset). Defaults to the OS temp directory.
max_parallelization : int | None
The default for the max_parallelization argument of methods that read, download, or upload data in parallel, such as table.to_pandas_dataframe(), table.download_files(), and table.add_files(). When not set, each method uses its own default, based on the number of CPUs.
progress : bool | None
The default for the progress argument, which shows progress bars for long-running operations. Defaults to True.
Returns:
dict — the current value of every setting, with None for those that aren't set.
Examples
Was this helpful?

