{"id":5603,"library":"databricks","title":"Databricks (Legacy CLI Library)","description":"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.","status":"abandoned","version":"0.2","language":"en","source_language":"en","source_url":"https://github.com/databricks/databricks-cli","tags":["databricks","cli","legacy","abandoned"],"install":[{"cmd":"pip install databricks==0.2","lang":"bash","label":"Specific version (not recommended)"}],"dependencies":[],"imports":[],"quickstart":{"code":"# This package (databricks==0.2) is a very old command-line utility.\n# Direct programmatic Python usage is not well documented or supported.\n#\n# For modern Databricks API interactions, use databricks-sdk:\n# from databricks.sdk import WorkspaceClient\n# w = WorkspaceClient()\n# for c in w.clusters.list():\n#     print(c.cluster_name)\n#\n# For Databricks SQL connectivity, use databricks-sql-connector:\n# from databricks.sql import connect\n# with connect(server_hostname=os.environ.get('DATABRICKS_SERVER_HOSTNAME'),\n#              http_path=os.environ.get('DATABRICKS_HTTP_PATH'),\n#              access_token=os.environ.get('DATABRICKS_TOKEN')) as connection:\n#     with connection.cursor() as cursor:\n#         cursor.execute('SELECT 1')\n#         print(cursor.fetchall())","lang":"python","description":"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`."},"warnings":[{"fix":"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`.","message":"This `databricks` package (version 0.2, last updated 2017) is obsolete and considered abandoned. It is not compatible with modern Databricks APIs or best practices. Attempting to use it will likely result in functional failures, authentication issues, or compatibility problems.","severity":"breaking","affected_versions":"<=0.2"},{"fix":"Use `pip install databricks-sdk` for modern API client functionality. The `databricks-sdk` is officially supported for production use cases, despite being in 'Beta'.","message":"The `databricks` package has been deprecated and superseded by `databricks-sdk` (for API operations) and `databricks-cli` (for command-line interfaces). The Python 3.7 support for `databricks-sdk` was dropped in June 2023, requiring Python 3.8+ for modern SDKs.","severity":"deprecated","affected_versions":"<=0.2"},{"fix":"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.","message":"The authentication mechanisms used by this old library (v0.2) are likely incompatible with current Databricks authentication methods (e.g., Databricks personal access tokens, OAuth). Modern SDKs implement a robust default authentication flow.","severity":"gotcha","affected_versions":"<=0.2"},{"fix":"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.","message":"Databricks Runtime environments (especially 13.3 LTS and above) come with the `databricks-sdk` pre-installed. Using `%pip install --upgrade databricks-sdk` is recommended in Databricks notebooks to ensure the latest version.","severity":"gotcha","affected_versions":"All versions, when used within Databricks notebooks/clusters."}],"env_vars":null,"last_verified":"2026-04-10T00:00:00.000Z","next_check":"2026-07-09T00:00:00.000Z"}