{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database"}],"enrichment":{"capability":"Executes SQL queries against Databricks through the Python SDK with minimal dependencies, returning results as iterators or single values without requiring a persistent connection.","skillfed_tags":["databricks","serverless","sql-execution"],"use_cases":["Execute ad-hoc SQL queries from AWS Lambda or Azure Functions without heavy client libraries.","Fetch a single aggregated value (count, sum, max) from a Databricks table in a lightweight script.","Map query results directly to Python dataclasses for type-safe data handling in microservices.","Unit test code that interacts with Databricks SQL using the MockBackend without a live warehouse.","Build CLI tools or batch jobs that run SQL statements and iterate over results with minimal startup latency."],"what_it_does":"Databricks Labs LSQL is a lightweight wrapper around the Databricks Python SDK that simplifies executing SQL queries and fetching results without maintaining a persistent connection. It is designed for stateless, short-lived applications\u2014such as serverless functions\u2014where minimal dependencies and fast startup time matter more than high-throughput data transfer. The package provides methods to execute queries, iterate over results as Row-like objects, fetch single records or values, and map results to strongly-typed Python dataclasses.\n\nThe library abstracts over multiple SQL backends (REST-based statement execution, Databricks Connect, runtime execution, and mocks for testing) so you can swap implementations without changing application code. It trades the efficient binary serialization and low-latency result fetching of the full Databricks SQL Connector for a smaller footprint and simpler dependency chain, making it well-suited for containerized or Lambda-like deployments where startup overhead is a constraint.","worth_installing":"Yes, if you are building serverless or containerized applications on Databricks and need lightweight SQL execution without the overhead of the full SQL Connector. The low install friction, active maintenance, and lack of known vulnerabilities make it a safe choice. However, verify the unclear license terms before committing to a production deployment, and confirm that the REST-based result fetching meets your performance requirements if you are moving large datasets."},"id":"databricks-labs-lsql","links":{"html":"https://skillfed.io/packages/databricks-labs-lsql","md":"https://skillfed.io/packages/databricks-labs-lsql.md","pypi":"https://pypi.org/project/databricks-labs-lsql/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-23","license_spdx":null,"license_treatment":"unclear","name":"databricks-labs-lsql","python_support":"supports_current","summary":"Lightweight stateless SQL execution for Databricks with minimal dependencies"},"popularity":{"monthly_downloads":5245959,"position":2129,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.17.0"}
