cassandra-sigv4
Implements a sigv4 authentication plugin for the open-source Datastax Python Driver for Apache Cassandra
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-sigv4uv
uv add cassandra-sigv4poetry
poetry add cassandra-sigv4Installing 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
cassandra-driverA Python client library for Apache Cassandra…
permissive · top 5,000 on PyPI
requests-sigv4Adds AWS Signature Version 4 signing to…
permissive · top 5,000 on PyPI
aws-requests-authAdds AWS Signature Version 4 authentication to…
permissive · top 1,000 on PyPI
requests-aws-signAdds AWS V4 request signing to the requests…
permissive · top 5,000 on PyPI
requests-auth-aws-sigv4Adds AWS Signature Version 4 authentication to…
permissive · top 5,000 on PyPI
aws-request-signerSigns HTTP requests using AWS Signature V4,…
permissive · top 15,000 on PyPI
aws-sdk-signersProvides standalone SigV4 request signing for…
permissive · top 15,000 on PyPI
cqlshcqlsh is a command-line client for executing…
permissive · top 15,000 on PyPI
acsyllaAcsylla is an async Python client library for…
permissive · top 15,000 on PyPI
aws-advanced-python-wrapperWraps Python database drivers to add Aurora…
permissive · top 15,000 on PyPI