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.
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
Will be updated once the following PRs are merged:
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
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
Hashes for harlequin_cassandra-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23d7ad0a8568805fc75f44547b5cf126f05c1c0cd1baf8f970519e9ae495a0cb |
|
MD5 | 1738a6818d02880dd796bdbaea20c2f6 |
|
BLAKE2b-256 | 25e03cedd50097b6dd041e4d6c5ef36212ca750bb84fa089add7d24c083eb5ad |
Hashes for harlequin_cassandra-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8d4f92a1485b0765ca63dd341cd945b17f41a32b989eade066eb83472e93609 |
|
MD5 | 517f08b6a944c86075ed083a009fb364 |
|
BLAKE2b-256 | 6c5b2ca3813395076b93484ed38600fa9cd8e12e3baf31a335c5684e44a17815 |