Skip to main content

DuckLake connection utilities for DuckBricks notebooks and pipelines

Project description

duckbricks-utils

DuckLake connection utilities for DuckBricks notebooks and pipelines.

Installation

# From local path (development)
pip install /path/to/duckbricks-utils

# Once published to PyPI
pip install duckbricks-utils

Usage

from duckbricks_utils import connect

conn = connect()
result = conn.execute("SELECT * FROM my_table LIMIT 10").df()

Configuration

Connection settings are read from environment variables:

Variable Default Description
DUCKLAKE_PG_HOST localhost PostgreSQL host
DUCKLAKE_PG_PORT 5432 PostgreSQL port
DUCKLAKE_PG_DATABASE duckbricks PostgreSQL database name
DUCKLAKE_PG_USER duckbricks PostgreSQL user
DUCKLAKE_PG_PASSWORD duckbricks PostgreSQL password
DUCKBRICKS_DUCKLAKE_NAME duckbricks DuckLake catalog name
DUCKBRICKS_DATA_PATH /data/parquet/ Parquet storage path

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

duckbricks_utils-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

duckbricks_utils-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file duckbricks_utils-0.1.0.tar.gz.

File metadata

  • Download URL: duckbricks_utils-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/25.4.0

File hashes

Hashes for duckbricks_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a6036f8cb2b2ecc537c91651e1f51690a51ae52f856f37a41e56273dddb23c18
MD5 fb78ddce95ce76d81dc4d728d9d4644c
BLAKE2b-256 9ccbfa57c8de5552f8b7071acc964c7856d0c4079de260184c9c76d5074821e0

See more details on using hashes here.

File details

Details for the file duckbricks_utils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: duckbricks_utils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/25.4.0

File hashes

Hashes for duckbricks_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9b8149a8f41cb0b440c152be0c9a8a45065944eac1582de2219fad75920eff8
MD5 9da60029a48164d1843c41521fe147f6
BLAKE2b-256 7889b010075a9a924ee0e66c645ead154a8e0672f0cb3a7f13ee5d17f756c660

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page