cqlsh is a Python-based command-line client for running CQL commands on a cassandra cluster.
Low maintenance activity. Last release 8 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install cqlshcqlsh
cqlsh is a Python-based command-line client for running CQL commands on a cassandra cluster.
Normally it's packaged as part of the full Apache Cassandra™ installation. This repo repackages it into a standalone Python package for lighter-weight installs.
Installing:
Install and update using pip:
$ pip install -U cqlsh
Running:
$ cqlsh --help
Documentation:
Documentation is available as part of the official Apache Cassandra™ documentation.
Contributing:
Because this is a repackaging of cqlsh from the official Cassandra repo, only issues / PRs related to PyPI packaging should be opened against this repo. If you would like to contribute to cqlsh itself, find out more information here.
Steps to sanity check that the packaging works as expected:
- Install
cqlshlocally (probably in avirtualenv):
$ pip install -e . # run from within the cqlsh directory
or build and install it
$ python -m build
$ python -m pip install dist/*.whl
- Start a local copy of Cassandra:
$ docker pull cassandra
$ docker run -it --rm -p 9042:9042 cassandra
- Verify
cqlshsuccessfully connects to the server: