🦆 DuckDB (SQL)
DuckDB offers the most powerful way to query EUBUCCO. It treats the S3 bucket like a database, letting you filter by geography before any data is actually downloaded.
1. Using SQL
Configuration
Install spatial extension:
Configure EUBUCCO's MinIO endpoint:
Data access
By using hive_partitioning, DuckDB understands the folder structure (e.g., nuts_id=...) and can filter hundreds of files instantly.
2. Using DuckDB's Python library
import duckdb
con = duckdb.connect()
con.execute("INSTALL httpfs; LOAD httpfs;")
con.execute("INSTALL spatial; LOAD spatial;")
con.execute("SET s3_endpoint='dev-s3.eubucco.com';")
con.execute("SET s3_url_style='path';")