Skip to main content

CQL kernel for Jupyter based on Cassandra CQLSH

Project description

License Downloads PyPI version

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.1.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

cqljupyter-1.0.1-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cqljupyter-1.0.1.tar.gz
  • Upload date:
  • Size: 32.8 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.1.tar.gz
Algorithm Hash digest
SHA256 5e514aabbbd04fc43ab0400d27306173e4b392f5d4a1bb0daa9d3162d06640e7
MD5 f44681541fe1a8b48cb4abf5f2a6901a
BLAKE2b-256 692430fe4eb17a9c6ce17391bf786667cf2ed4b1fd8b243e4f2f0a38e88a92fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cqljupyter-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 33.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 571cb49508b3ed06badabc58abcfb7d1b86f7a90a84878a81d332fbd147ac083
MD5 3254ad49e08f2c2f70bc04b6b7e1cf65
BLAKE2b-256 c3efb1c73d5ed9eda9966c3bac022eb9e460ec436e6de2467fd1bb689cd17a6c

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