Skip to main content

CQL kernel for Jupyter based on Cassandra CQLSH

Project description

License Downloads PyPI version

A Jupyter kernel for Apache Cassandra

To install:

pip install cqljupyter

To configure the Cassandra host or IP address:

python -m cqljupyter.install  [<hostname> <port>] [--ssl] [-u user] [-p password]

You can always rerun the above command to change the connection. 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.

then start the notebook:

jupyter notebook

In the notebook interface, select CQL from the New menu

To run the sample CQL:

jupyter notebook Sample.ipynb

Syntax

All standard CQL syntax is supported since this package reuses the CQLSH python module.

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 cqlsh.py script 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

    ToDo: upgrade to Cassandra 4.0 cqlsh

For details of how this works, see these Jupyter docs:

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

Uploaded Source

Built Distribution

cqljupyter-1.0.2-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cqljupyter-1.0.2.tar.gz
  • Upload date:
  • Size: 32.6 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.2.tar.gz
Algorithm Hash digest
SHA256 cc786ae7b19ae0dc02fcf4947480bfa5636f7a537e628de93e0a1f91762e4594
MD5 2b8dbf885647b91469d95e9c21bda39b
BLAKE2b-256 51751066022510d2f5e852a6790c71a143f24d8ec2f4455158df9303db3e33ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cqljupyter-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 33.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de36f8d41f78167446d03f636a78e8680da711a64f62fb885c6a5ca30145aed7
MD5 4ce35a44ea8ce5a3d1e2531f045c090d
BLAKE2b-256 73d013c9765b3900445d04526a71c1aa59c560a954b928f45e29303be936a513

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