DB SQL CLI

raw JSON →
0.1.1 verified Mon Apr 27 auth: no python

A CLI tool for running SQL queries against Databricks SQL endpoints. Version 0.1.1, requires Python >=3.7. The project appears to be new or minimally maintained; documentation and usage examples are sparse.

pip install dbsqlcli
error ModuleNotFoundError: No module named 'dbsqlcli'
cause Package not installed or installed in a different environment.
fix
Run 'pip install dbsqlcli' in the correct Python environment.
error AttributeError: module 'dbsqlcli' has no attribute 'cli'
cause Import path is wrong; the cli module is under dbsqlcli.cli.
fix
Use 'from dbsqlcli.cli import main' instead.
breaking The package may not be compatible with the latest Databricks SQL Connector authentication changes.
fix Use the official databricks-sql-connector package directly if authentication fails.
gotcha No configuration file or environment variables are documented; connection parameters may need to be passed via command line arguments.
fix Check the source code or run with --help to see available arguments.

Run the CLI main function with dummy arguments. Replace with actual Databricks connection details.

from dbsqlcli.cli import main
import sys
sys.argv = ['dbsqlcli', '--help']
main()