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

Uploaded Python 3

File details

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

File metadata

  • Download URL: harlequin_cassandra-0.1.4.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.6

File hashes

Hashes for harlequin_cassandra-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3f4d07455056606f13451ac27c148ffce7324ee65a2abc242af24443c5bcbe2d
MD5 5113c028abc965e6ea7ae9da9044fd84
BLAKE2b-256 6fb6837778b8ead437c06e0f28cc3969ef8df89d797e165ec0d6518cb34fa0e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for harlequin_cassandra-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a8c7dee546e30ea33888f614ae45dacffc462252be964f166239bc339e740e87
MD5 63d7134bd238556e490c2fda487bc62b
BLAKE2b-256 3bf096915a9a23d7f2ac404f8f580c3b1b4d6c58e68113b022ad4d6fe4776c25

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