← 开源
tconbeer

harlequin

The SQL IDE for Your Terminal. Now with hsql, your agent's favorite sql client.

ApplicationsProductivitySpecialistsPython
在 GitHub 打开
增长势头
+224 小时新增 Star+0.0%
6.46k
Star
182
Fork
25
贡献者
创建于 2023-05-02 · 更新于 2026-10-16 · 今日第 3413 名
主要开发者
tconbeervisheshgubranidljsjr

tconbeer/harlequin 排名第 3,413,有 6,464 个星标。

同类别比较

tconbeer/harlequin 排名第 3,413,此处有 8 个同类条目;mindee/doctr 排名第 3,415。

同类别比较
名称排名指标
Moonvy/OpenPromptStudio3,402
语言:
Vue
星标数:
6,699
分叉数:
740
简介:
🥣 AIGC 提示词可视化编辑器 | OPS | Open Prompt Studio
microsoft/call-center-ai3,404
语言:
Python
星标数:
6,664
分叉数:
818
简介:
Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
argosopentech/argos-translate3,407
语言:
Python
星标数:
6,564
分叉数:
501
简介:
Open-source offline translation library written in Python
op7418/CodePilot3,409
语言:
TypeScript
星标数:
6,504
分叉数:
701
mindee/doctr3,415
语言:
Python
星标数:
6,389
分叉数:
686
简介:
docTR (Document Text Recognition) - a seamless, high-performing & accessible library for OCR-related tasks powered by Deep Learning. Ongoing development and maintenance by t2k.
ThinkInAIXYZ/deepchat3,416
语言:
TypeScript
星标数:
6,362
分叉数:
755
简介:
🐬DeepChat - A smart assistant that connects powerful AI to your personal world
nirholas/fresh-start3,418
星标数:
6,232
分叉数:
15
简介:
The original nirholas/claude-code before DMCA and take down. Once everything is cleared, it will return. Working with Anthropic and Github to get everything back.
PawanOsman/OpenCursor3,426
语言:
TypeScript
星标数:
6,033
分叉数:
1,031
简介:
Open-source Cursor-like AI coding agent for VS Code - agentic chat, multi-provider LLMs (OpenAI, Ollama, llama.cpp), semantic search, and MCP support
关键参数与规格
关键参数与规格
参数值
语言Python
类别Applications
子类别Productivity,Specialists
关键词Client integration, Databases, Terminal, Tool use
星标数6,464
分叉数182
贡献者25
创建日期2023-05-02
更新日期2026-10-16
1 天星标数2
排名3,413
上次排名7,426
排名变化4,013
7 天星标排名19,079
上次 7 天星标排名18,998
7 天星标排名变化-81
总星标排名2,210
上次总星标排名2,208
总星标排名变化-2
README 摘录

Harlequin The SQL IDE for Your Terminal. TIP] This README contains a small subset of the docs available at harlequin. Installing Harlequin Harlequin is a Python program, and there are many ways to install and run it. From a POSIX shell, run: Or using Windows Powershell: 2. Install Harlequin as a tool using : This command will install Harlequin into an isolated environment and add it to your PATH so you can easily run the executable. Other Installation Methods Alternatively, if

you know what you're doing, after installing Python 3. 9 or above, install Harlequin using , , , or any other program that can install Python packages from PyPI: There is also a Homebrew formula for Harlequin, although this is maintained by the community and is not as rigorously tested as the Python installations. Note that the formula includes several Harlequin adapter packages (Postgres, MySQL/MariaDB, and ODBC) and their dependencies, which is convenient but increases the application size. Installing Database Adapters Harlequin

can connect to dozens of databases using adapter plug-ins. Adapters are distributed as their own Python packages that need to be installed into the same environment as Harlequin. For a list of known adapters provided either by the Harlequin maintainers or the broader community, see the adapters page. The adapter docs also include installation instructions. Some adapters can be installed as Harlequin extras, like . If you used to install Harlequin: You can install multiple extras: Running Harlequin Once Harlequin

is installed, you run it from the command line. The arguments and options you pass in at the command line affect Harlequin's behavior, like what database adapter it uses, which database it connects to, whether or not the file picker is visible, and more. Assuming you have installed Harlequin so that it is on your PATH>) ( does this automatically), you run Harlequin by typing a command of this form into your shell: where is 0 or more pairs of the

form , and is 0 or more connection strings. are composed of both Harlequin options and adapter options. For a full list of options, run Harlequin with the option: Using Harlequin with DuckDB Harlequin defaults to using its DuckDB database adapter, which ships with Harlequin and includes the full DuckDB in-process database. To open an in-memory DuckDB session, run Harlequin with no arguments: To open one or more DuckDB database files, pass in relative or absolute paths as connection

strings (Harlequin will create DuckDB databases if they do not exist): Using Harlequin with SQLite and Other Adapters Harlequin also ships with a SQLite3 adapter. To use that adapter, you specify the option. Like DuckDB, you can open an in-memory SQLite database by omitting the connection string: You can open one or more SQLite database files by passing in their paths as connection strings; note that the option has a short alias, : Other adapters can be installed as plug

-ins; for more information, see the installation guide, and the guides for individual adapters. Each adapter can define its own

常见问题

记录了多少星标和分叉?

tconbeer/harlequin 有 6,464 个星标和 182 个分叉。

仓库排名是多少?

tconbeer/harlequin 排名第 3,413。

记录的语言和类别是什么?

tconbeer/harlequin 有 6,464 个星标,语言为 Python,类别为 Applications。

哪个仓库排名最接近?

tconbeer/harlequin 与 mindee/doctr 比较,后者排名第 3,415,有 6,389 个星标。

README

Harlequin

The SQL IDE for Your Terminal.

[!TIP] This README contains a small subset of the docs available at harlequin.sh.

Installing Harlequin

Harlequin is a Python program, and there are many ways to install and run it. We strongly recommend using uv:

  1. Install uv. From a POSIX shell, run:

    curl -LsSf https://astral.sh/uv/install.sh | sh
    

    Or using Windows Powershell:

    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    
  2. Install Harlequin as a tool using uv:

    uv tool install harlequin
    

    This command will install Harlequin into an isolated environment and add it to your PATH so you can easily run the executable.

Other Installation Methods

Alternatively, if you know what you're doing, after installing Python 3.9 or above, install Harlequin using pip, pipx, poetry, or any other program that can install Python packages from PyPI:

pip install harlequin

There is also a Homebrew formula for Harlequin, although this is maintained by the community and is not as rigorously tested as the Python installations. Note that the formula includes several Harlequin adapter packages (Postgres, MySQL/MariaDB, and ODBC) and their dependencies, which is convenient but increases the application size.

brew install harlequin

Installing Database Adapters

Harlequin can connect to dozens of databases using adapter plug-ins. Adapters are distributed as their own Python packages that need to be installed into the same environment as Harlequin.

For a list of known adapters provided either by the Harlequin maintainers or the broader community, see the adapters page.

The adapter docs also include installation instructions. Some adapters can be installed as Harlequin extras, like postgres. If you used uv to install Harlequin:

uv tool install 'harlequin[postgres]'

You can install multiple extras:

uv tool install 'harlequin[postgres,mysql,s3]'

Running Harlequin

Once Harlequin is installed, you run it from the command line. The arguments and options you pass in at the command line affect Harlequin's behavior, like what database adapter it uses, which database it connects to, whether or not the file picker is visible, and more. Assuming you have installed Harlequin so that it is on your PATH (uv tool install harlequin does this automatically), you run Harlequin by typing a command of this form into your shell:

harlequin [OPTIONS] [CONN_STR]

where [OPTIONS] is 0 or more pairs of the form --[option-name] [option-value], and [CONN_STR] is 0 or more connection strings. [OPTIONS] are composed of both Harlequin options and adapter options. For a full list of options, run Harlequin with the --help option:

harlequin --help

Using Harlequin with DuckDB

Harlequin defaults to using its DuckDB database adapter, which ships with Harlequin and includes the full DuckDB in-process database.

To open an in-memory DuckDB session, run Harlequin with no arguments:

harlequin

To open one or more DuckDB database files, pass in relative or absolute paths as connection strings (Harlequin will create DuckDB databases if they do not exist):

harlequin "path/to/duck.db" "another_duck.db"

Using Harlequin with SQLite and Other Adapters

Harlequin also ships with a SQLite3 adapter. To use that adapter, you specify the --adapter sqlite option. Like DuckDB, you can open an in-memory SQLite database by omitting the connection string:

harlequin --adapter sqlite

You can open one or more SQLite database files by passing in their paths as connection strings; note that the --adapter option has a short alias, -a:

harlequin -a sqlite "path/to/sqlite.db" "another_sqlite.db"

Other adapters can be installed as plug-ins; for more information, see the installation guide, and the guides for individual adapters. Each adapter can define its own options, which you can view using harlequin --help.

Configuring Harlequin

Harlequin contains a large number of options that allow you to set the theme, customize key bindings, show remote and local files, set the locale for number formatting, and much more. These can always be entered at the command line, but it can be convenient to define a configuration as a profile instead. For more information on configuring Harlequin, see Using Config Files.

A profile's string values can name environment variables — password = "${MYPASSWORD}", or ${MYHOST:-localhost} to supply a default — so a config file your team shares holds no credentials, and values an adapter declares as secrets are masked wherever Harlequin prints them. hsql, Harlequin's companion CLI (below), reads the same files and can report on them, with hsql --config show, --config validate and --config schema.

Using Harlequin with Agents or in Scripts

Harlequin has a companion CLI, hsql, that uses the same adapters and config files, but is optimized for headless use by agents and in automations. hsql is packaged with Harlequin (no additional installation required):

$ hsql -P dev -c "select * from users"
 id | name
----+---------
 1  | Ted
 2  | Patrick
(2 rows)

hsql can also explore the catalog without writing SQL: hsql --catalog --path mydb.analytics lists a schema's relations (and --path mydb.analytics.orders lists that table's columns), while hsql --catalog-search customer_id searches every level at once.

To bound what an agent can do, --read-only connects in a mode the database refuses writes in, and hsql --timeout 30 cancels a run that takes longer than that. Both are also profile keys, and both refuse to start if the adapter cannot enforce them. Harlequin takes --read-only too.

For more information on hsql, see the getting started docs.

Using Harlequin with Django

django-harlequin provides a command to launch Harlequin using Django’s database configuration, like:

./manage.py harlequin

Keep Reading at harlequin.sh

Visit harlequin.sh for an overview of features and full documentation, starting with a guided walkthrough of how to edit and execute queries, use the data catalog, export data, and more.

Getting Help

To view all command-line options for Harlequin and all installed adapters, after installation, simply type:

harlequin --help

To view a subset of these docs (and a link back here) from within the app, press F1.

See the Troubleshooting guide for help with key bindings, appearance issues, copy-paste, etc.

GitHub Discussions are a good place to ask questions, request features, and say hello.

GitHub Issues are the best place to report bugs.

Sponsoring Harlequin

Please consider sponsoring Harlequin's author, so he can continue to dedicate time to Harlequin.

Contributing

Thanks for your interest in Harlequin! Harlequin is primarily maintained by Ted Conbeer, but he welcomes all contributions!

Please see CONTRIBUTING.md for more information.

排名相邻
同类项目