skillfed

cqlsh

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

cqlsh v6.2.2 170.9K downloads/30d#10,384 on PyPI25
Permissive license Active released

What it is and what it does

cqlsh is a Python-based command-line interface for Cassandra clusters, extracted from the Apache Cassandra project and repackaged as a standalone PyPI module. Normally it ships as part of a full Cassandra installation; this package lets you install just the client without the server, reducing download and disk footprint. It depends on cassandra-driver for cluster communication, pure-sasl for authentication, and wcwidth for terminal formatting.

You run it as a shell command (cqlsh) to connect to a Cassandra cluster and execute CQL queries interactively. The package tracks Cassandra releases—version 6.2.2 packages cqlsh 6.2.0 from Cassandra 5.0.5—and includes features like command history, replica information display, and role autocompletion. It requires Python 3.10 or later.

Use it for:

  • Connect to a Cassandra cluster from a development machine or CI/CD pipeline without installing the full Cassandra server.
  • Run ad-hoc CQL queries and schema inspections against a remote Cassandra cluster from the command line.
  • Automate Cassandra database operations (backups, schema changes, data queries) in scripts that invoke cqlsh as a subprocess.
  • Troubleshoot and debug Cassandra cluster issues by interactively querying the database and inspecting cluster state.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

cqlsh is a command-line client for executing CQL queries against Cassandra clusters, packaged as a standalone Python module instead of requiring a full Cassandra installation.

Yes, if you need to query Cassandra clusters and want to avoid installing the full Cassandra server. The package is actively maintained, has no known vulnerabilities, supports modern Python versions, and carries a permissive license. Install it when you need a lightweight Cassandra client for development, operations, or automation.

Install

cqlsh on PyPI

pip

pip install cqlsh

uv

uv add cqlsh

poetry

poetry add cqlsh

Installing cqlsh

Before you install

Low install friction with a pure Python wheel. The package is actively maintained with a recent release (120 days ago) and supports current Python versions (3.10–3.14). Three runtime dependencies (cassandra-driver, pure-sasl, wcwidth) are standard and well-established.

License in practice

Licensed under the Apache License (permissive treatment), which permits commercial and private use with minimal restrictions—typical for Apache Cassandra tooling.

Quickstart

pip install cqlsh
cqlsh --help
# or connect to a running Cassandra cluster:
cqlsh 127.0.0.1 9042

Requires a running Cassandra cluster accessible at the specified host and port; cassandra-driver will fail to connect if the cluster is unavailable.

Verify before relying

  • Whether the package works as a library (importable module) or only as a command-line tool—the description mentions module packaging but does not detail the API surface.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — cassandra-driver, pure-sasl, wcwidth
Maintenance actively maintained — 120 days since the last release
Last repo commit
First released
Downloads 170,928/month — #10,384 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: cqlsh-6.2.2-py3-none-any.whl

Keywords: cql, cassandra, cqlsh

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

cassandra command line clientcql query shellcassandra cqlsh toolcassandra database clicql interactive shellcassandra cluster query client
cassandracli-tooldatabase-client

More Front-Ends packages

SQLAlchemy

SQLAlchemy is a Python SQL toolkit and Object…

permissive · top 100 on PyPI

psycopg2-binary

psycopg2-binary is a PostgreSQL database…

copyleft · top 1,000 on PyPI

alembic

Alembic generates and manages database schema…

permissive · top 1,000 on PyPI

weaviate-client

A Python client library for connecting to and…

permissive · top 1,000 on PyPI

databricks-sql-connector

A Python client library that connects to…

permissive · top 1,000 on PyPI

psycopg

Psycopg 3 is a PostgreSQL database adapter for…

copyleft · top 1,000 on PyPI

cassandra-driver

A Python client library for Apache Cassandra…

permissive · top 5,000 on PyPI

scylla-driver

A Python client library for querying and…

permissive · top 5,000 on PyPI

acsylla

Acsylla is an async Python client library for…

permissive · top 15,000 on PyPI

cassandra-sigv4

Adds AWS Signature Version 4 authentication to…

permissive · top 15,000 on PyPI

apache-airflow-providers-apache-cassandra

Integrates Apache Cassandra with Apache…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-cassandra

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI

cassio

cassIO integrates Apache Cassandra with machine…

permissive · top 15,000 on PyPI

coiled

Coiled is a Python client library that…

unclear · top 5,000 on PyPI

pygeofilter

Parses OGC filtering standards (CQL, CQL JSON,…

permissive · top 15,000 on PyPI

sfctl

A command-line interface for managing Azure…

permissive · top 15,000 on PyPI