This is an outdated Python library for interacting with Databricks, primarily as a command-line interface. Its last release was in 2017 (version 0.2), and it has been superseded by the `databricks-cli` and more recently the `databricks-sdk` for programmatic API access. Users seeking modern Databricks integration should use the `databricks-sdk` or `databricks-sql-connector` libraries.
pip install databricks==0.2No compatibility data collected yet for this library.
The `databricks` library (v0.2) is primarily a command-line utility, and its direct programmatic Python API is not well-documented or intended for modern use. The quickstart above provides examples for the recommended modern alternatives: `databricks-sdk` and `databricks-sql-connector`.
Migrate to the official Databricks SDK for Python (`databricks-sdk`) for API interactions or `databricks-cli` for command-line usage. For SQL connectivity, use `databricks-sql-connector`.
Use `pip install databricks-sdk` for modern API client functionality. The `databricks-sdk` is officially supported for production use cases, despite being in 'Beta'.
When migrating to `databricks-sdk`, refer to its official authentication documentation for setting up access tokens, environment variables (e.g., `DATABRICKS_HOST`, `DATABRICKS_TOKEN`), or other methods.
Within a Databricks notebook, use `%pip install --upgrade databricks-sdk` followed by `dbutils.library.restartPython()` to ensure the latest SDK is available and the environment is refreshed.
Uninstall the old `databricks` package if present, and install the correct modern SDK package: `pip uninstall databricks` (if installed) then `pip install databricks-sdk`.
Install the dedicated SQL connector library and import from it: `pip install databricks-sql-connector` then `from databricks.sql import connect`.
Uninstall the old `databricks` package and install the modern `databricks-sdk`: `pip uninstall databricks` then `pip install databricks-sdk`. You should then import from `databricks.sdk`.
If you intend to use the modern SDK, install it with `pip install databricks-sdk` and import using `from databricks.sdk import WorkspaceClient`. If you need the CLI, install `pip install databricks-cli`.
No dependency data recorded yet.