Skip to main content

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

ducklake_python_client_fork-0.6.0.tar.gz (29.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ducklake_python_client_fork-0.6.0-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file ducklake_python_client_fork-0.6.0.tar.gz.

File metadata

File hashes

Hashes for ducklake_python_client_fork-0.6.0.tar.gz
Algorithm Hash digest
SHA256 1b7bff92d77dcd761ef1e167fad637bfa4903bc6b330f083cfa830216a1695f6
MD5 b33c60bd4bac39310dc59396703c4576
BLAKE2b-256 9d35d11527f1bf03f2f5c6032a79a25d030c49f51f03aa2d9913a69815708d20

See more details on using hashes here.

File details

Details for the file ducklake_python_client_fork-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ducklake_python_client_fork-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d17468d832df358f4a7f4125098d59fa2bbad0577befb1a0ff82f85a1c81626d
MD5 296f1259fa7f082486cc15b498a752b4
BLAKE2b-256 fc55c2a7206a8b113242a0e2f33f6dd1f86c67de0f9dd4106a618da19593680a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page