Skip to main content

CQL kernel for Jupyter based on Cassandra CQLSH

Project description

License Downloads

A Jupyter kernel for the Apache Cassandra Database

To install:

pip install cqljupyter

To configure the Cassandra host or IP address:

python -m cqljupyter.install  [<hostname> <port>] [--ssl]

You can always rerun the above command to change the hostname. It's best to restart Jupyter after running it. You can often get away with closing your notebook, and then refreshing the main Jupyter page too, but that's error-prone.

To use it:

jupyter notebook

In the notebook interface, select CQL from the New menu

To run the sample CQL:

jupyter notebook Sample.ipynb

Syntax

All regular CQL syntax is supported.

Auto-complete

Use the TAB key to invoke auto-complete

HTML

If you start a cell with %%html, the html will be returned and rendered

Build

Build using:

python -m build

Implementation Notes

  1. The script cqlsh.py was ported from 3.11 and converted using 2to3 to python3 syntax

    https://github.com/apache/cassandra/blob/cassandra-3.11.10/bin/cqlsh.py

For details of how this works, see the Jupyter docs on

Author

This package was developed by Brad Schoening for Python 3. It is based upon earlier work by Steve Lowenthal and uses the open source Apache Cassandra CQLSH library.

License

This project is licensed under the terms of the Apache 2.0 license.

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

cqljupyter-1.0.0.tar.gz (32.4 kB view details)

Uploaded Source

Built Distribution

cqljupyter-1.0.0-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file cqljupyter-1.0.0.tar.gz.

File metadata

  • Download URL: cqljupyter-1.0.0.tar.gz
  • Upload date:
  • Size: 32.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.9

File hashes

Hashes for cqljupyter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5d2bb0348074cc8e968df319bd8c917c3aa8b54cf306cac12e4d59edfd0d4137
MD5 aa899ba9562d9cb86d137b89f991065d
BLAKE2b-256 924d2555c37ada743084da8c721c368b0d503dfdc2c9ef46b618c0b5a4b6b8a9

See more details on using hashes here.

File details

Details for the file cqljupyter-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cqljupyter-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 33.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.9

File hashes

Hashes for cqljupyter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2612e11ea4441026a94311279da4fb1a63fe5dca9aec5a69a0270d57a284300d
MD5 bf214d14123301360f9133e5b2078bfc
BLAKE2b-256 1f71328721614f2d82add9eb4615b213e526d45c942e2dd42c2e4a165f4a1d32

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