Skip to main content

CLI to conveniently run DuckDB SQL scripts with support for templating

Project description

# Qck 🦆👩‍💻

Qck (pronounced “quack”) is a CLI script to conveniently run [DuckDB](https://duckdb.org/) SQL scripts with support for [Jina](https://jinja.palletsprojects.com/) templating.

## 🛠️ Installation

Use pip install qck to install. This will make available the qck script.

## 🚀 Usage

Run qck –help to view the built-in documentation.

Running qck with just a SQL file will execute the query and print the results to the terminal:

`bash qck myquery.sql `

You can also LIMIT the number of rows in the output by adding a flag:

`bash qck myquery.sql --limit 10 # will only print 10 rows `

To execute a query and write the result to a Parquet file, use –to-parquet:

`bash qck myquery.sql --to-parquet myresult.parquet `

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

qck-2024.1.31.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file qck-2024.1.31.tar.gz.

File metadata

  • Download URL: qck-2024.1.31.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for qck-2024.1.31.tar.gz
Algorithm Hash digest
SHA256 fa12dfa1834ee48da5b5b1e66c1156ee68498ce950073a4d9d65c65c06d4268f
MD5 9dbe4e4489ca4fe5ff8e4de91bb3a11f
BLAKE2b-256 30d1e09e88488b981e9144af10821ea08afb7708bdb3251b9772741b288a7cef

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