CQL kernel for Jupyter based on Cassandra CQLSH
Project description
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
-
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
- wrapper kernels,
- Making kernels for Jupyter
- Pexpect's docs on the replwrap module
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e514aabbbd04fc43ab0400d27306173e4b392f5d4a1bb0daa9d3162d06640e7 |
|
MD5 | f44681541fe1a8b48cb4abf5f2a6901a |
|
BLAKE2b-256 | 692430fe4eb17a9c6ce17391bf786667cf2ed4b1fd8b243e4f2f0a38e88a92fe |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 571cb49508b3ed06badabc58abcfb7d1b86f7a90a84878a81d332fbd147ac083 |
|
MD5 | 3254ad49e08f2c2f70bc04b6b7e1cf65 |
|
BLAKE2b-256 | c3efb1c73d5ed9eda9966c3bac022eb9e460ec436e6de2467fd1bb689cd17a6c |