{"id":13647268,"url":"https://github.com/scylladb/scylla-cqlsh","last_synced_at":"2025-08-21T05:32:48.891Z","repository":{"id":62592970,"uuid":"476367714","full_name":"scylladb/scylla-cqlsh","owner":"scylladb","description":"A fork of the cqlsh code","archived":false,"fork":false,"pushed_at":"2024-05-22T11:58:31.000Z","size":4448,"stargazers_count":11,"open_issues_count":13,"forks_count":25,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-05-22T12:56:27.280Z","etag":null,"topics":["cql","cqlsh","python","scylladb"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scylladb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-31T15:31:27.000Z","updated_at":"2024-06-04T16:18:25.127Z","dependencies_parsed_at":"2023-02-10T14:00:19.566Z","dependency_job_id":"e9c820c8-e20f-4f45-bdf8-c3208e51906b","html_url":"https://github.com/scylladb/scylla-cqlsh","commit_stats":{"total_commits":688,"total_committers":122,"mean_commits":5.639344262295082,"dds":0.877906976744186,"last_synced_commit":"eb56813a418e2cf5e1784ded9062999bd613630f"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scylladb%2Fscylla-cqlsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scylladb%2Fscylla-cqlsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scylladb%2Fscylla-cqlsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scylladb%2Fscylla-cqlsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scylladb","download_url":"https://codeload.github.com/scylladb/scylla-cqlsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230494918,"owners_count":18235046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cql","cqlsh","python","scylladb"],"created_at":"2024-08-02T01:03:26.947Z","updated_at":"2024-12-19T20:07:38.661Z","avatar_url":"https://github.com/scylladb.png","language":"Python","funding_links":[],"categories":["Drivers and Libraries","Python"],"sub_categories":["Python"],"readme":"# scylla-cqlsh\n\nCommand line tool to connect to [scylladb](http://www.scylladb.com) (or Apache Cassandra)\n\nA fork of the cqlsh tool from https://github.com/apache/cassandra\n\n![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/pypi/scylla-cqlsh)\n![GitHub branch checks state](https://img.shields.io/github/checks-status/scylladb/scylla-cqlsh/master)\n![PyPI](https://img.shields.io/pypi/v/scylla-cqlsh)\n\n# Quickstart\n\n```bash\npip install scylla-cqlsh\n\ncqlsh ${SCYLLA_HOST} -e 'SELECT * FROM system.local'\n\n# or just using it interactively\ncqlsh ${SCYLLA_HOST} \n\n# or using it with scylla-cloud\ncqlsh --cloudconf [path to connection bundle downloaded]\n\n# running with docker image interactively\ndocker run -it scylladb/scylla-cqlsh ${SCYLLA_HOST}\n```\n\n\n\n# Contributing\n\nFeel free to open a PR/issues with suggestion and improvement\nTry covering you suggested change with a test, and the instruction \nfor running tests are below\n\n## Testing\n\nDependent \n* python 2.7/3.x (recommend virtualenv)\n* minimum java8\n\n```bash\npip install -e .\npip install -r pylib/requirements.txt\n\n# run scylla with docker\ndocker run  -d scylladb/scylla:latest --cluster-name test\n\nexport DOCKER_ID=$(docker run -d scylladb/scylla:latest --cluster-name test)\nexport CQL_TEST_HOST=$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' ${DOCKER_ID})\nwhile ! nc -z ${CQL_TEST_HOST} 9042; do   \n  sleep 0.1 # wait for 1/10 of the second before check again\ndone\n          \n \n# run scylla with CCM\nccm create cqlsh_cluster -n 1 --scylla --version unstable/master:latest\nccm start\n\npytest\n```\n\n## Build from source\n\n```bash\npip install build\n# optionally can disable the usage of cython\n# export CQLSH_NO_CYTHON=true\npython -m build -w\n...\nSuccessfully built scylla_cqlsh-6.0.24.dev0+gb09bc79361.d20240910-py3-none-any.whl\n```\n\n## Creation of the repo\n\nA reference on how this we forked out of cassandra repo\nSo we can repeat the process if we want to bring change back it\n\n```bash\ngit clone  -b trunk --single-branch git@github.com:apache/cassandra.git\nsudo apt-get install git-filter-repo\ncd cassandra\n\ngit filter-repo --path bin/cqlsh --path bin/cqlsh.py --path pylib/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscylladb%2Fscylla-cqlsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscylladb%2Fscylla-cqlsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscylladb%2Fscylla-cqlsh/lists"}