ducklake-python-client-fork
Lightweight Python helpers for opening DuckLake connections through DuckDB.
Install
pip install ducklake-python-client-fork
Quick start
from ducklake_client import ColumnDef, DuckLake
from ducklake_client.adapters import DiskStorage, DuckDBCatalog, LocalDuckDBConfig
from ducklake_client.client import DuckLakeConfig
config = DuckLakeConfig(
catalog=DuckDBCatalog("metadata.ducklake"),
storage=DiskStorage("data"),
duckdb=LocalDuckDBConfig(),
)
with DuckLake(config) as lake:
lake.schema.create("main")
lake.table.create(
"items",
id=ColumnDef("INTEGER", nullable=False),
name=ColumnDef("VARCHAR"),
)
lake.connection.execute("INSERT INTO lake.main.items VALUES (?, ?)", [1, "example"])
print(lake.sql_dicts("SELECT * FROM lake.main.items"))
DuckLake opens DuckDB lazily on first use. It installs and loads the required
extensions, attaches the catalog as lake, and exposes the native connection
through lake.connection.
Run python demo.py for a complete local example.
Documentation
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ducklake_python_client_fork-0.6.0.tar.gz.
File metadata
- Download URL: ducklake_python_client_fork-0.6.0.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b7bff92d77dcd761ef1e167fad637bfa4903bc6b330f083cfa830216a1695f6
|
|
| MD5 |
b33c60bd4bac39310dc59396703c4576
|
|
| BLAKE2b-256 |
9d35d11527f1bf03f2f5c6032a79a25d030c49f51f03aa2d9913a69815708d20
|
File details
Details for the file ducklake_python_client_fork-0.6.0-py3-none-any.whl.
File metadata
- Download URL: ducklake_python_client_fork-0.6.0-py3-none-any.whl
- Upload date:
- Size: 39.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d17468d832df358f4a7f4125098d59fa2bbad0577befb1a0ff82f85a1c81626d
|
|
| MD5 |
296f1259fa7f082486cc15b498a752b4
|
|
| BLAKE2b-256 |
fc55c2a7206a8b113242a0e2f33f6dd1f86c67de0f9dd4106a618da19593680a
|