Package: cqlsh
cqlshcqlshis a Python-based command-line client for runningCQLcommands on acassandracluster.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 usingpip:$ pip install -U cqlshRunning:$ cqlsh --helpDocumentation:Documentation is available as part of the officialApache Cassandra™ documentation.Contributing:Because this is a repackaging ofcqlshfrom the officialCassandra repo,only issues / PRs related to PyPI packaging should be opened against this repo. If you would like to contribute tocqlshitself,find out more information here.Steps to sanity check that the packaging works as expected:Installcqlshlocally (probably in avirtualenv):$ pip install -e .  # run from within the cqlsh directoryStart a local copy of Cassandra:$ docker pull cassandra
$ docker run -it --rm -p 9042:9042 cassandraVerifycqlshsuccessfully connects to the server:$ cqlsh

Connected to Test Cluster at 127.0.0.1:9042
[cqlsh 6.1.0 | Cassandra 4.1.0 | CQL spec 3.4.5 | Native protocol v5]
Use HELP for help.
cqlsh>This PyPI package is maintained byJeff WidmanandBrad Schoening. Previous maintainers:SpiroandAndrew Mussey.Changelog:Unfortunately the Cassandra project does not always increment thecqlshversion number, so for every
release we need to document not only thecqlshversion but also thecassandraversion in which it
shipped.6.1.2 (March 24, 2023)This packagescqlsh6.1.0fromCassandra 4.1.1:Now supports Python 3.11.Although this is pulled from a Cassandra4.xrelease, it is protocol compatible with Cassandra3.xclusters, with the exception of DESCRIBE keywords which require a 4.x cluster.6.1.1 (skipped due to a versioning issue)6.1.0 (Jan 4, 2023)This packagescqlsh6.1.0fromCassandra 4.1:Requires Python 3.6+.Although this is pulled from a Cassandra4.xrelease, it is protocol compatible with Cassandra3.xclusters, with the exception of DESCRIBE keywords which require a 4.x cluster.6.0.1 (Jan 18, 2022)The actual source code is identical to thecqlsh6.0.0release, except it's now packaged as
a module. This allows it to be used as a library, not just an executable script. It also provides
better Windows support. Details inhttps://github.com/jeffwidman/cqlsh/pull/7by @bschoening.Note: This release was yanked from PyPI because itbroke Python 2 compatibility.6.0.0 (Aug 3, 2021)This packagescqlsh6.0.0fromCassandra 4.0:Requires Python 3.6+ or 2.7 (although support for Python 2 is deprecated).Although this is pulled from a Cassandra4.xrelease, it should generally work against Cassandra3.xclusters without needing to set any flags.6.0.0b4 (Mar 9, 2021)This packagescqlsh5.0.1fromCassandra 4.0-beta4:Now supports Python 3.Although this is pulled from a Cassandra4.xrelease, it should generally work against Cassandra3.xclusters without needing to set any flags.5.0.5 (Mar 9, 2021)This packagescqlsh5.0.1fromCassandra 3.11.10.5.0.4 (Mar 29, 2017)This packagescqlsh5.0.1fromCassandra 3.4.0.5.0.3 (Mar 21, 2016)This packagescqlsh5.0.1fromCassandra 2.2.0.4.1.1 (Feb 11, 2014)This packagescqlsh4.1.1fromCassandra 2.0.5.4.1.0 (Dec 2, 2013)This packagescqlsh4.1.0fromCassandra 2.0.3.4.0.1 (Oct 14, 2013)This packagescqlsh4.0.1fromCassandra 2.0.1.