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.2.tar.gz (7.8 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.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: harlequin_cassandra-0.1.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Linux/6.13.0-arch1-1

File hashes

Hashes for harlequin_cassandra-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6ff7350fb05e6bc6d1112c2ada4fe279323d955c2fd8a976041857858b16d108
MD5 a0bb6b0cbd4594a25e853204621e79b5
BLAKE2b-256 3b8b4b88c0a2d075e4701f131efa7ec1d6155b0b10c86741f4042a0a6fc0207a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: harlequin_cassandra-0.1.2-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.1 Linux/6.13.0-arch1-1

File hashes

Hashes for harlequin_cassandra-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb87a451e459f98d0f15f7b94fe9c31c53c20a9b841fbcb829a2ae21ec886be6
MD5 5ddb7955ebdea9c48733d193408899ac
BLAKE2b-256 a55c112c39306ae1b080d81ea00a92ccd1cd5dd7dad195b76fdc1f243efaceb6

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