# apache/cassandra-python-driver

Python Driver for Apache Cassandra®

Repository: https://github.com/apache/cassandra-python-driver
Canonical: https://ross.abutalabs.com/products/cassandra-python-driver
Homepage: https://docs.datastax.com/en/developer/python-driver/3.29/index.html
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-07-21T19:31:11+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 35, longevity 100
- inputs: {"age_days": 4804, "days_push": 43, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1427, forks 585 (observed 2026-08-28T04:04:41.881779+00:00)

## What it is
The official Python client driver for Apache Cassandra (and DataStax Enterprise/Astra), communicating via Cassandra's binary protocol and CQL3. It provides sync/async execution, prepared and batch statements, connection pooling, load balancing, retry policies, and an integrated object mapper (cqlengine).

## Use cases
- connect to cassandra from python
- run cql queries from a python application
- execute async queries against cassandra
- map python classes to cassandra tables
- connect to datastax astra cloud database
- tune load balancing and retry policies for cassandra
- use prepared statements with cassandra in python

## When to choose
- your application is written in Python and talks to Apache Cassandra 2.1+ or DSE 4.7+
- you need async IO, connection pooling, and tunable load-balancing/retry policies
- you want an object mapper (cqlengine) for Cassandra tables
- you connect to DataStax Astra or use DSE features like Graph or GSSAPI auth

## When to avoid
- you use a different database (e.g. MongoDB, PostgreSQL) - use its dedicated driver
- you need a non-Python language - use the Java, C++, C#, or Node.js drivers
- you run on big-endian systems, which are not supported

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, orm, serialization, caching
- domain: databases, developer-tools, backend, big-data
- platform: python, windows, cross-platform
- tags: cassandra, cql, nosql, datastax, asyncio, connection-pooling, object-mapper, linux, macos

## Member repositories
- apache/cassandra-python-driver (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:41.881779+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:37:21.447307+00:00, confidence not recorded.
  - readme: https://github.com/apache/cassandra-python-driver (fetched 2026-08-28T04:04:41.881779+00:00, sha ab1931e32ae3)
  - homepage: https://docs.datastax.com/en/developer/python-driver/3.29/index.html (fetched 2026-08-29T11:49:12.910954+00:00, sha 58c7e818880e)
  - site_page: https://docs.datastax.com/en/developer/python-driver/3.29/installation (fetched 2026-08-29T11:49:12.913972+00:00, sha 15d8ed7c02ad)
  - site_page: https://docs.datastax.com/en/developer/python-driver/3.29/CHANGELOG (fetched 2026-08-29T11:49:12.916305+00:00, sha aea025d6756f)
  - site_page: https://docs.datastax.com/en/developer/python-driver/3.29/faq (fetched 2026-08-29T11:49:12.919849+00:00, sha 80f8d20d8085)
  - site_page: https://docs.datastax.com/en/developer/python-driver/3.29/api (fetched 2026-08-29T11:49:12.921525+00:00, sha 41fd7c7b8bf4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
