Skip to main content

A Terminal Client for ClickHouse with AutoCompletion and Syntax Highlighting.

Project description

chcli

A Terminal Client for ClickHouse with AutoCompletion and Syntax Highlighting.

This project is inspired by mycli.

Features

chcli is written using prompt_toolkit and antlr4 with grammar.

  • Auto-completion as you type for SQL keywords as well as tables, views and columns in the database.
  • Syntax highlighting using Pygments.
  • Pretty prints tabular data.

Install

You can install just by pip.

> pip install chcli

Usage

> chcli --help
Usage: chcli [OPTIONS]

  A Terminal Client for ClickHouse with AutoCompletion and Syntax
  Highlighting.

Options:
  -v, --version       Show the version and exit.
  -h, --host TEXT     ClickHouse server host.  [default: 127.0.0.1]
  -p, --port INTEGER  ClickHouse server port.  [default: 9000]
  -u, --user TEXT     ClickHouse server user.  [default: default]
  --password TEXT     ClickHouse server password.  [default: ]
  --help              Show this message and exit.

License

This project is licensed under the Apache-2.0 License.

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

chcli-0.1.0.tar.gz (103.0 kB view details)

Uploaded Source

Built Distribution

chcli-0.1.0-py3-none-any.whl (112.8 kB view details)

Uploaded Python 3

File details

Details for the file chcli-0.1.0.tar.gz.

File metadata

  • Download URL: chcli-0.1.0.tar.gz
  • Upload date:
  • Size: 103.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for chcli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 543f665a91a7a3b95fbda6f187f9bd5ae73b9844dfeb3b896792b40a3ed5e60c
MD5 5d57e4d326a68cb36df8106a89682e7a
BLAKE2b-256 9bd9bc80c61fbf6656c06c9806f3792a66b6c6e73b78c401c2f855e90d296935

See more details on using hashes here.

File details

Details for the file chcli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: chcli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 112.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for chcli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a271496ac522522cf3af27f88b450e82078db71505b707a6f5570705637b510
MD5 3e30dc220ebfd4db9451dbef5f79bd99
BLAKE2b-256 28094d9ba7208aa3c80569746b9a14b8efd93f6af60636de74d87289e14c4218

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page