skillfed

cassandra-sigv4

Implements a sigv4 authentication plugin for the open-source Datastax Python Driver for Apache Cassandra

cassandra-sigv4 v4.0.2 119.0K downloads/30d#12,094 on PyPI10
Permissive license AGING released

What it is and what it does

cassandra-sigv4 is an authentication plugin that bridges the DataStax Python Driver for Cassandra with AWS Identity and Access Management (IAM). It implements the AWS Signature Version 4 signing process, allowing applications to authenticate to Amazon Keyspaces using temporary or permanent AWS credentials instead of traditional username/password pairs. The plugin works by accepting a boto3 Session or raw AWS credentials, then signing each Cassandra request with the appropriate SigV4 signature for the target region.

The typical workflow is to configure an SSL context with Amazon's root CA certificate, instantiate a SigV4AuthProvider with your AWS credentials or session, and pass it to the Cassandra Cluster constructor. The driver then handles authentication transparently. This is useful for teams already using AWS IAM for access control, as it eliminates the need to manage separate Cassandra credentials and integrates with existing AWS credential management (environment variables, instance profiles, temporary tokens).

Use it for:

  • Authenticate Python applications to Amazon Keyspaces using AWS IAM roles instead of hardcoded credentials.
  • Enable temporary credential rotation by leveraging boto3's credential chain and STS session tokens.
  • Integrate Cassandra access into AWS-native applications that already use boto3 for other AWS services.
  • Simplify multi-region deployments by configuring region-specific SigV4 signatures per endpoint.
  • Audit and control Cassandra access through AWS IAM policies and CloudTrail logs.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Adds AWS Signature Version 4 authentication to the DataStax Python Driver for Apache Cassandra, enabling IAM-based access to Amazon Keyspaces.

Yes, if you are using Amazon Keyspaces and need IAM-based authentication. The plugin is stable (Production/Stable classifier), has no known vulnerabilities, and low install friction. However, maintenance is aging—last release was October 2020—so verify compatibility with your current versions of cassandra-driver and boto3 before adopting. Suitable for production use in AWS-native environments.

Install

cassandra-sigv4 on PyPI

pip

pip install cassandra-sigv4

uv

uv add cassandra-sigv4

poetry

poetry add cassandra-sigv4

Installing cassandra-sigv4

Before you install

Low install friction; ships as a pure-Python wheel. Maintenance is aging—last release was 2020-10-30 and last commit 2025-07-15, but the repository remains active and unarchived. Depends on cassandra-driver, boto3, and six.

License in practice

Licensed under Apache Software License (permissive). No restrictions on commercial or private use.

Quickstart

pip install cassandra-sigv4

from cassandra_sigv4 import SigV4AuthProvider
import boto3

boto_session = boto3.Session(region_name="us-east-2")
auth_provider = SigV4AuthProvider(boto_session)
cluster = Cluster(['cassandra.us-east-2.amazonaws.com'], auth_provider=auth_provider, port=9142)
session = cluster.connect()

Requires an SSL context configured with Amazon's CA certificate and a valid AWS region matching the Keyspaces endpoint.

Verify before relying

  • Whether the package works reliably with modern Python versions beyond 3.8, given the aging maintenance status.
  • Current compatibility with recent versions of cassandra-driver and boto3.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=2.7, <4)
Install friction low — pure-Python wheel
Runtime dependencies 3 — cassandra-driver, boto3, six
Maintenance aging — 2,114 days since the last release
Last repo commit
First released
Downloads 118,983/month — #12,094 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: cassandra_sigv4-4.0.2-py2.py3-none-any.whl

Keywords: cassandra, cql, aws, sigv4, authentication, auth

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules

Tags

cassandra authentication aws iamamazon keyspaces python driversigv4 cassandra pluginaws keyspaces clientcassandra-driver auth providerboto3 cassandra integrationaws iam cassandra access
aws-integrationcassandra-pluginiam-auth

More Python Modules packages