Skip to main content

A Harlequin adapter for Cassandra.

Project description

harlequin-cassandra

[!CAUTION] This adapter is unstable and experimental.

Proceed with caution!

[!WARNING] This adapter does not aim to support Scylla.

[!NOTE] This adapter currently does not support execution profiles, load-balancing polices.

This is a Cassandra adapter for Harlequin.
It is based on Datastax' cassandra-driver.

Integration With Harlequin

Some quirks are to be expected.

Cassandra doesn't use cursor(s), thus HarlequinCursor and HarlequinConnection behave differently in this adapter.

A manual translation of cassandra-driver objects types to Python types is required for Apache Arrow to work correctly.

In this adapter, Transaction Modes refers to Cassandra's consistency levels.

Transaction Modes GIF

Installation

harlequin-cassandra depends on harlequin, so installing this package will also install Harlequin.

Using pip

To install this adapter into an activated virtual environment:

pip install harlequin-cassandra

Using poetry

poetry add harlequin-cassandra

Using pipx

If you do not already have Harlequin installed:

pip install harlequin-cassandra

If you would like to add the Cassandra adapter to an existing Harlequin installation:

pipx inject harlequin harlequin-cassandra

As an Extra

pip install harlequin[cassandra]

Usage and Configuration

You can open Harlequin with the Cassandra adapter by selecting it with the -a option and passing an initial hostname and credentials(if required).

harlequin -a cassandra "localhost" --username "cassandra" --password "cassandra"

Many more options are available; to see the full list, run:

harlequin --help

Things To Explore

Missing advanced configuration that may be of interest:

  • Add an option to support execution profiles.
  • Add an option to support load-balancing policies.

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

harlequin_cassandra-0.1.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

harlequin_cassandra-0.1.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file harlequin_cassandra-0.1.3.tar.gz.

File metadata

  • Download URL: harlequin_cassandra-0.1.3.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.3 Linux/6.14.3-arch1-1

File hashes

Hashes for harlequin_cassandra-0.1.3.tar.gz
Algorithm Hash digest
SHA256 990244e426f9631c5b7291be02965423d855ef8f82d2d269fc6d43c291250ea9
MD5 b6ba5915a21289fb9d94bf3b583f9009
BLAKE2b-256 20520df763a5ee7a2fe29e8368a122749b9a56cd2cecf4426a0cfd9178531b3c

See more details on using hashes here.

File details

Details for the file harlequin_cassandra-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: harlequin_cassandra-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.3 Linux/6.14.3-arch1-1

File hashes

Hashes for harlequin_cassandra-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef2acd1398833d3229b064de3eeba0fce4f5c16e132b4d930b828daf5e2e25a3
MD5 971da6cf88ae092edb65a5d8ea105c32
BLAKE2b-256 ed3814c889bd8a9e3a882ede9d85e46f9703397503d1358083f78ff72ea181f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page