{"id":15658580,"url":"https://github.com/long2ice/chcli","last_synced_at":"2025-10-07T09:31:57.855Z","repository":{"id":62561804,"uuid":"296567981","full_name":"long2ice/chcli","owner":"long2ice","description":"A Terminal Client for ClickHouse with AutoCompletion and Syntax Highlighting.","archived":false,"fork":false,"pushed_at":"2020-10-16T09:51:27.000Z","size":218,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"dev","last_synced_at":"2025-01-12T20:28:55.639Z","etag":null,"topics":["autocomplete","cli","clickhouse","syntax-highlighting"],"latest_commit_sha":null,"homepage":"https://github.com/long2ice/chcli","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/long2ice.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-18T08:55:45.000Z","updated_at":"2024-04-03T12:18:23.000Z","dependencies_parsed_at":"2022-11-03T15:01:06.059Z","dependency_job_id":null,"html_url":"https://github.com/long2ice/chcli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long2ice%2Fchcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long2ice%2Fchcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long2ice%2Fchcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long2ice%2Fchcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/long2ice","download_url":"https://codeload.github.com/long2ice/chcli/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235614118,"owners_count":19018400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autocomplete","cli","clickhouse","syntax-highlighting"],"created_at":"2024-10-03T13:12:58.674Z","updated_at":"2025-10-07T09:31:52.481Z","avatar_url":"https://github.com/long2ice.png","language":"Python","readme":"# chcli\n\n![pypi](https://img.shields.io/pypi/v/chcli.svg?style=flat)\n![license](https://img.shields.io/github/license/long2ice/chcli)\n![workflows](https://github.com/long2ice/chcli/workflows/pypi/badge.svg)\n![workflows](https://github.com/long2ice/chcli/workflows/ci/badge.svg)\n\nA Terminal Client for ClickHouse with AutoCompletion and Syntax Highlighting.\n\nThis project is inspired by [mycli](https://github.com/dbcli/mycli).\n\n![screenshot](https://raw.githubusercontent.com/long2ice/chcli/dev/images/screenshot.png)\n\n## Features\n\n`chcli` is written using [prompt_toolkit](https://github.com/prompt-toolkit/python-prompt-toolkit) and [antlr4](https://pypi.org/project/antlr4-python3-runtime/) with [grammar](https://github.com/ClickHouse/ClickHouse/tree/master/utils/grammar).\n\n- Auto-completion as you type for SQL keywords as well as tables, views and columns in the database.\n- Syntax highlighting using `Pygments`.\n- Pretty prints tabular data.\n\n## Install\n\nYou can install just by pip.\n\n```shell script\n\u003e pip install chcli\n```\n\n## Usage\n\n```shell script\n\u003e chcli --help\nUsage: chcli [OPTIONS]\n\n  A Terminal Client for ClickHouse with AutoCompletion and Syntax\n  Highlighting.\n\nOptions:\n  -v, --version       Show the version and exit.\n  -h, --host TEXT     ClickHouse server host.  [default: 127.0.0.1]\n  -p, --port INTEGER  ClickHouse server port.  [default: 9000]\n  -u, --user TEXT     ClickHouse server user.  [default: default]\n  --password TEXT     ClickHouse server password.  [default: ]\n  --help              Show this message and exit.\n```\n\n## License\n\nThis project is licensed under the [Apache-2.0](https://github.com/long2ice/chcli/blob/master/LICENSE) License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flong2ice%2Fchcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flong2ice%2Fchcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flong2ice%2Fchcli/lists"}