Skip to main content

cqlsh is a Python-based command-line client for running CQL commands on a cassandra cluster.

Project description

cqlsh

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:

  1. Install cqlsh locally (probably in a virtualenv):
$ pip install . -e  # run from within the cqlsh directory
  1. Start a local copy of Cassandra:
$ docker pull cassandra
$ docker run -it --rm -p 9042:9042 cassandra
  1. Verify cqlsh successfully connects to the server:
$ cqlsh

Connected to Test Cluster at 127.0.0.1:9042
[cqlsh 6.0.0 | Cassandra 4.0.0 | CQL spec 3.4.5 | Native protocol v5]
Use HELP for help.
cqlsh>

This PyPI package is maintained by Jeff Widman. Previous maintainers: Spiro and Andrew Mussey.

Changelog:

Unfortunately the Cassandra project does not always increment the cqlsh version number, so for every release we need to document not only the cqlsh version but also the cassandra version in which it shipped.

6.0.0 (Aug 3, 2021)

This packages cqlsh 6.0.0 from Cassandra 4.0:

  • Requires Python 3.6+ or 2.7 (although support for Python 2 is deprecated).
  • Although this is pulled from a Cassandra 4.x release, it should generally work against Cassandra 3.x clusters without needing to set any flags.

6.0.0b4 (Mar 9, 2021)

This packages cqlsh 5.0.1 from Cassandra 4.0-beta4:

  • Now supports Python 3.
  • Although this is pulled from a Cassandra 4.x release, it should generally work against Cassandra 3.x clusters without needing to set any flags.

5.0.5 (Mar 9, 2021)

This packages cqlsh 5.0.1 from Cassandra 3.11.10.

5.0.4 (Mar 29, 2017)

This packages cqlsh 5.0.1 from Cassandra 3.4.0.

5.0.3 (Mar 21, 2016)

This packages cqlsh 5.0.1 from Cassandra 2.2.0.

4.1.1 (Feb 11, 2014)

This packages cqlsh 4.1.1 from Cassandra 2.0.5.

4.1.0 (Dec 2, 2013)

This packages cqlsh 4.1.0 from Cassandra 2.0.3.

4.0.1 (Oct 14, 2013)

This packages cqlsh 4.0.1 from Cassandra 2.0.1.

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

cqlsh-6.0.0.tar.gz (99.0 kB view details)

Uploaded Source

Built Distribution

cqlsh-6.0.0-py3-none-any.whl (106.4 kB view details)

Uploaded Python 3

File details

Details for the file cqlsh-6.0.0.tar.gz.

File metadata

  • Download URL: cqlsh-6.0.0.tar.gz
  • Upload date:
  • Size: 99.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for cqlsh-6.0.0.tar.gz
Algorithm Hash digest
SHA256 0978f902757f54095ba57db685de86f4bbd74c28c9d398ed0fe03098191606d0
MD5 53460a2397e18bae8af539b6034f2457
BLAKE2b-256 3e5eaca7db53c59f1113cb191772c5006d41ed763831104c27baf3db7a3f4ab7

See more details on using hashes here.

File details

Details for the file cqlsh-6.0.0-py3-none-any.whl.

File metadata

  • Download URL: cqlsh-6.0.0-py3-none-any.whl
  • Upload date:
  • Size: 106.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for cqlsh-6.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35e20c24e8801120bd62bc5d83d16226aa676f2bf9a166f62abeef429a6bc889
MD5 5e05d334ee4d9d785d701c8bf6ed0ecf
BLAKE2b-256 af6288bf9200252158871843a1f65c5215a5480f64817b663ff8ece41ad0f977

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