Python SDK for libSQL, a fork of SQLite designed for modern applications. Supports local and remote database connections via HTTP or WebSockets. Current version 0.3.1, actively maintained.
pip install libsql-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a client and run a basic query.
Use async/await with all execute calls.
Use try/finally or async context manager (not yet available, so manual close).
Pass scheme='https' to create_client() for HTTP-only servers.
Use url= instead of db_url=.
Use: from libsql_client import create_client
Use await client.execute(...) directly in a notebook cell if using IPython >= 7.0, or nest with asyncio.run() only at top level.
Ensure the server is running and use the correct URL (e.g., https://your-server.com).