A terminal-based SQL IDE for DuckDB
Project description
harlequin
A Terminal-based SQL IDE for DuckDB.
(A Harlequin is also a pretty duck.)
Installing Harlequin
After installing Python 3.8 or above, install Harlequin using pip
or pipx
with:
pipx install harlequin
Using Harlequin
From any shell, to open one or more DuckDB database files:
harlequin "path/to/duck.db" "another_duck.db"
To open an in-memory DuckDB session, run Harlequin with no arguments:
harlequin
More info at harlequin.sh
Visit harlequin.sh for an overview of features and full documentation.
Contributing
Thanks for your interest in Harlequin! Harlequin is primarily maintained by Ted Conbeer, but he welcomes all contributions and is looking for additional maintainers!
Providing Feedback
We'd love to hear from you! Open an Issue to request new features, report bugs, or say hello.
Setting up Your Dev Environment and Running Tests
- Install Poetry v1.2 or higher if you don't have it already. You may also need or want pyenv, make, and gcc.
- Fork this repo, and then clone the fork into a directory (let's call it
harlequin
), thencd harlequin
. - Use
poetry install --sync
to install the project (editable) and its dependencies (including all test and dev dependencies) into a new virtual env. - Use
poetry shell
to spawn a subshell. - Type
make
to run all tests and linters, or runpytest
,black .
,ruff . --fix
, andmypy
individually.
Opening PRs
- PRs should be motivated by an open issue. If there isn't already an issue describing the feature or bug, open one. Do this before you write code, so you don't waste time on something that won't get merged.
- Ideally new features and bug fixes would be tested, to prevent future regressions. Textual provides a test harness that we use to test features of Harlequin. You can find some examples in the
tests
directory of this project. Please include a test in your PR, but if you can't figure it out, open a PR to ask for help. - Open a PR from your fork to the
main
branch oftconbeer/harlequin
. In the PR description, link to the open issue, and then write a few sentences about why you wrote the code you did: explain your design, etc. - Ted may ask you to make changes, or he may make them for you. Don't take this the wrong way -- he values your contributions, but he knows this isn't your job, either, so if it's faster for him, he may push a commit to your branch or create a new branch from your commits.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for harlequin-0.0.28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4b1fee087234b3fd53c1df8cd9f43bfb7ff932b3d91b6dd4af5ba70e6c62da |
|
MD5 | e680646b3b51bcbe2f8a5ee8e77e2196 |
|
BLAKE2b-256 | b6e37eae01227e22dc0da0b4a3591625602d68dd3bc1c10661500a9ac61a981c |