Skip to main content

duckgate

Interactive SQL shell over S3 data (Parquet, Iceberg, CSV) using DuckDB.

Install

duckgate is a CLI tool, so an isolated install is recommended over a bare pip install:

uv tool install duckgate
# or
pipx install duckgate

Quick start

duckgate init          # prompts for a config path (default: ~/.duckgate/config.toml)
duckgate tables        # list available tables
duckgate               # open interactive shell
duckgate -q "SELECT COUNT(*) FROM my_table"  # one-shot query

duckgate init accepts Enter to take the suggested default, or a path you type (e.g. a local duckgate.toml for a per-project override). Pass -p/--path to skip the prompt entirely — handy in scripts: duckgate init --path duckgate.toml.

Configuration

duckgate.toml in the current directory, falling back to ~/.duckgate/config.toml:

[aws]
profile = "my-aws-profile"
region  = "eu-central-1"

[glue]
enabled   = true
databases = []  # empty = all databases

[[tables]]
name   = "fis_location"
path   = "s3://my-bucket/structured/sqlserver/dev/fis/location/**/*.parquet"
format = "parquet"  # parquet | iceberg | csv

Table resolution

  • Glue tables are discovered automatically from the configured databases. A bare Glue table location (no wildcard) is read as location/**/*.<format>.
  • Local [[tables]] entries override Glue tables with the same name — use this to point to a specific environment prefix.
  • If two Glue tables from different databases share a name, they are registered as database__table_name.

AWS credentials

Uses the AWS profile from [aws] profile. Works with SSO (aws sso login, Granted assume) and static credentials alike.

Supported formats

Format How
Parquet read_parquet('s3://...') via httpfs
Iceberg iceberg_scan('s3://...') via the iceberg extension
CSV read_csv('s3://...') via httpfs

Development

uv sync
uv run pytest
uv run ruff check --fix .
uv run ruff format .

Release

Pushing a v* tag (e.g. v0.1.0) builds and publishes to PyPI via GitHub Actions, using PyPI Trusted Publishing (see .github/workflows/publish.yml). Bump __version__ in duckgate/__init__.py to match before tagging.

License

Apache License 2.0 — see LICENSE.

Metadata

Release files for duckgate 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for duckgate 0.2.0
File Size Uploaded
duckgate-0.2.0.tar.gz 140.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for duckgate 0.2.0
File Interpreter ABI Platform
duckgate-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 152.1 kB

Release files / duckgate-0.2.0.tar.gz

Download URL duckgate-0.2.0.tar.gz
Size 140.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e7804184e488367527407c09540ac04aa719325ed390a7c006b3a0d19611fb67
BLAKE2b-256 checksum
How to use checksums
5fad7534eed69e6f017d79b67a391ebd4117aaec14905f7479aed9dd54237d5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.

Transparency log

Release files / duckgate-0.2.0-py3-none-any.whl

Download URL duckgate-0.2.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d7bc0d6c9a03a10406ae4f80cf2b06c1db384247a4669f6b6a95573672f4b37
BLAKE2b-256 checksum
How to use checksums
fe44142a13706e1afd50e2f0011df176baa5797f9784a98c3136a946edcf678c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.

Transparency log

Release history Release notifications | RSS feed

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release 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