Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

feat(ingest): add Cassandra ingestor (#1627)

Saket70026f1c3b39f743
diff --git a/.gitignore b/.gitignore
index bbfe449f..cbcc9504 100644
--- a/.gitignore
+++ b/.gitignore
@@ -45,6 +45,7 @@ env/
venv/
ENV/
.venv/
+.venv-cassandra/
build/
develop-eggs/
dist/
diff --git a/docs/docs.json b/docs/docs.json
index 48a07d27..c3bf9658 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -111,6 +111,7 @@
"integrations/salesforce",
"integrations/airflow",
"integrations/redshift",
+ "integrations/cassandra",
"integrations/powerbi",
"integrations/servicenow",
"integrations/looker"
diff --git a/docs/integrations/cassandra.md b/docs/integrations/cassandra.md
new file mode 100644
index 00000000..83ceff1d
--- /dev/null
+++ b/docs/integrations/cassandra.md
@@ -0,0 +1,176 @@
+---
+title: "Apache Cassandra Integration"
+description: "Ingest structured data from Apache Cassandra tables into Semantica's KG pipeline."
+icon: "database"
+---
+
+> Extract data from Apache Cassandra tables into Semantica using the official `cassandra-driver`.
+
+## Installation
+
+```bash
+# Install with Cassandra support
+pip install "semantica[db-cassandra]"
+
+# Or install the connector separately
+pip install "cassandra-driver>=3.29.0"
+```
+
+`cassandra-driver` is an optional dependency. A plain `pip install semantica` does not install it, and the Cassandra connector is loaded lazily when first used.
+
+## Basic Usage
+
+```python
+import os
+from semantica.ingest import CassandraIngestor
+
+ingestor = CassandraIngestor(
+ hosts=os.getenv("CASSANDRA_HOSTS", "127.0.0.1").split(","),
+ port=int(os.getenv("CASSANDRA_PORT", "9042")),
+ username=os.getenv("CASSANDRA_USERNAME"),
+ password=os.getenv("CASSANDRA_PASSWORD"),
+ keyspace=os.getenv("CASSANDRA_KEYSPACE"),
+)
+
+data = ingestor.ingest_table("users")
+
+print(f"Retrieved {data.row_count} rows")
+print(f"Columns: {data.columns}")
+```
+
+<Tip>
+Use environment variables to keep Cassandra credentials out of source code.
+</Tip>
+
+## Authentication
+
+For authenticated Cassandra clusters:
+
+```python
+from semantica.ingest import CassandraIngestor
+
+ingestor = CassandraIngestor(
+ hosts=["127.0.0.1"],
+ port=9042,
+ username="cassandra",
+ password="your-password",
+ keyspace="my_keyspace",
+)
+```
+
+For clusters without authentication:
+
+```python
+from semantica.ingest import CassandraIngestor
+
+ingestor = CassandraIngestor(
+ hosts=["127.0.0.1"],
+ port=9042,
+ keyspace="my_keyspace",
+)
+```
+
+## Querying
+
+### Ingest a table
+
+```python
+data = ingestor.ingest_table("orders")
+print(f"{data.row_count} rows, columns: {data.columns}")
+```
+
+### Limit the number of rows
+
+```python
+data = ingestor.ingest_table(
+ "orders",
+ limit=1000,
+)
+```
+
+`limit` is translated into a CQL `LIMIT` clause.
+
+## Schema Discovery
+
+```python
+schema = ingestor.get_table_schema("users")
+
+for column in schema["columns"]:
+ print(
+ f"{column['name']}: "
+ f"{column['type']} "
+ f"(nullable={column['nullable']})"
+ )
+
+print("Primary keys:", schema["primary_keys"])
+```
+
+Each column contains:
+
+| Key | Type | Description |
+|---|---|---|
+| `name` | `str` | Column name |
+| `type` | `str` | Cassandra CQL type |
+| `nullable` | `bool` | Whether the column is nullable |
+| `primary_key` | `bool` | Whether the column is part of the primary key |
+| `static` | `bool` | Whether the column is static |
+
+`primary_keys` contains the table's primary-key column names in Cassandra order.
+
+## Export as Semantica Documents
+
+```python
+documents = ingestor.export_as_documents(
+ data,
+ id_field="id",
+ text_fields=["name", "city"],
+)
+
+print(f"Created {len(documents)} documents")
+```
+
+Each document contains:
+
+```python
+{
+ "id": "123",
+ "text": "Alice Delhi",
+ "metadata": {
+ "source": "cassandra",
+ "keyspace": "my_keyspace",
+ "table": "users",
+ "row_data": {}
+ }
+}
+```
+
+**ID resolution**: the configured `id_field` is converted to a string. When the field is absent, the row index is used as a deterministic fallback.
+
+**Text when `text_fields` is provided**: non-`None` values are converted to strings and joined with a single space.
+
+**Text when `text_fields=None`**: only string values are included in the document text.
+
+## Connection Test
+
+```python
+from semantica.ingest import CassandraConnector
+
+connector = CassandraConnector(
+ hosts=["127.0.0.1"],
+ port=9042,
+ keyspace="my_keyspace",
+)
+
+if connector.test_connection():
+ print("Connection OK")
+else:
+ print("Connection failed")
+```
+
+## See Also
+
+- [Ingest Module](../reference/ingest)
+- [Redshift Integration](/integrations/redshift)
+- [Databricks Integration](/integrations/databricks)
+- [Installation](../installation)
+- [Knowledge Graph](../reference/kg)
diff --git a/pyproject.toml b/pyproject.toml
index db72f6cf..256c9569 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -131,6 +131,7 @@ db-databricks = ["databricks-sdk>=0.60.0", "databricks-sql-connector>=4.0.0"]
db-arrow = ["pyarrow>=24.0.0"]
db-salesforce = ["simple-salesforce>=1.12.0"]
db-redshift = ["redshift-connector>=2.0.0"]
+db-cassandra = ["cassandra-driver>=3.29.0"]
db-bigquery = ["google-cloud-bigquery>=3.0.0"]
ingest-looker = ["looker-sdk>=24.0.0"]
ingest-parquet = ["pyarrow>=24.0.0"]
@@ -141,7 +142,7 @@ ingest-airflow = ["requests>=2.28.0"]
ingest-git = ["GitPython>=3.1.58"]
db-all = [
- "semantica[db-snowflake,db-databricks,db-salesforce,db-redshift,db-bigquery,db-arrow]"
+ "semantica[db-snowflake,db-databricks,db-salesforce,db-redshift,db-cassandra,db-bigquery,db-arrow]"
]
# ---- Embedding / Models ----
diff --git a/semantica/ingest/__init__.py b/semantica/ingest/__init__.py
index a0bc9e34..9c5e224e 100644
--- a/semantica/ingest/__init__.py
+++ b/semantica/ingest/__init__.py
@@ -275,6 +275,10 @@ _LAZY_EXPORTS: Dict[str, Tuple[str, str]] = {
"RedshiftIngestor": (".redshift_ingestor", "RedshiftIngestor"),
"RedshiftData": (".redshift_ingestor", "RedshiftData"),
"RedshiftConnector": (".redshift_ingestor", "RedshiftConnector"),
+ # Cassandra ingestion
+ "CassandraIngestor": (".cassandra_ingestor", "CassandraIngestor"),
+ "CassandraData": (".cassandra_ingestor", "CassandraData"),
+ "CassandraConnector": (".cassandra_ingestor", "CassandraConnector"),
# Power BI ingestion
"PowerBIIngestor": (".powerbi_ingestor", "PowerBIIngestor"),
"PowerBIData": (".powerbi_ingestor", "PowerBIData"),
@@ -338,6 +342,10 @@ _OPTIONAL_DEPENDENCY_MESSAGES = {
"Redshift ingestion requires optional dependency 'redshift-connector'. "
"Install it with: pip install 'semantica[db-redshift]'"
),
+ ".cassandra_ingestor": (
+ "Cassandra ingestion requires optional dependency 'cassandra-driver'. "
+ "Install it with: pip install 'semantica[db-cassandra]'"
+ ),
".bigquery_ingestor": (
"BigQuery ingestion requires optional dependency 'google-cloud-bigquery'. "
"Install it with: pip install 'semantica[db-bigquery]'"
@@ -348,7 +356,6 @@ _OPTIONAL_DEPENDENCY_MESSAGES = {
),
}
-
def __getattr__(name: str) -> Any:
"""Load optional ingestion backends only when callers request them."""
if name not in _LAZY_EXPORTS:
@@ -371,6 +378,7 @@ def __getattr__(name: str) -> Any:
"simple_salesforce",
"lxml",
"redshift_connector",
+ "cassandra",
"google",
"looker_sdk",
)
@@ -424,6 +432,15 @@ def __getattr__(name: str) -> Any:
if message:
raise ImportError(message)
+ if module_name == ".cassandra_ingestor" and name in {
+ "CassandraIngestor",
+ "CassandraConnector",
+ }:
+ if not getattr(module, "CASSANDRA_AVAILABLE", True):
+ message = _OPTIONAL_DEPENDENCY_MESSAGES.get(module_name)
+ if message:
+ raise ImportError(message)
+
if module_name == ".bigquery_ingestor" and name in {
"BigQueryIngestor",
"BigQueryConnector",
@@ -545,6 +562,10 @@ __all__ = [
"RedshiftIngestor",
"RedshiftData",
"RedshiftConnector",
+ # Cassandra ingestion
+ "CassandraIngestor",
+ "CassandraData",
+ "CassandraConnector",
# Power BI ingestion
"PowerBIIngestor",
"PowerBIData",
diff --git a/semantica/ingest/cassandra_ingestor.py b/semantica/ingest/cassandra_ingestor.py
new file mode 100644
index 00000000..3e825da1
--- /dev/null
+++ b/semantica/ingest/cassandra_ingestor.py
@@ -0,0 +1,363 @@
+"""
+Cassandra Ingestion Module
+
+Provides Cassandra data ingestion capabilities for the Semantica framework.
+"""
+
+from dataclasses import dataclass, field
+from datetime import datetime
+from typing import Any, Dict, List, Optional
+
+from ..utils.exceptions import ProcessingError, ValidationError
+from ..utils.logging import get_logger
+
+
+try:
+ import cassandra
+ from cassandra.auth import PlainTextAuthProvider
+
+ CASSANDRA_AVAILABLE = True
+except (ImportError, OSError):
+ cassandra = None
+ PlainTextAuthProvider = None
+ CASSANDRA_AVAILABLE = False
+
+
+@dataclass
+class CassandraData:
+ """Cassandra data representation."""
+
+ data: List[Dict[str, Any]]
+ row_count: int
+ columns: List[str]
+ keyspace: str
+ table_name: str
+ schema: Dict[str, Any]
+ metadata: Dict[str, Any] = field(default_factory=dict)
+ ingested_at: datetime = field(default_factory=datetime.now)
+
+
+class CassandraConnector:
+ """Manage connections to a Cassandra cluster."""
+
+ def __init__(
+ self,
+ hosts: Optional[List[str]] = None,
+ port: int = 9042,
+ username: Optional[str] = None,
+ password: Optional[str] = None,
+ keyspace: Optional[str] = None,
+ **config: Any,
+ ) -> None:
+ if not CASSANDRA_AVAILABLE:
+ raise ImportError(
+ "cassandra-driver is required for CassandraConnector. "
+ "Install it with: pip install 'semantica[db-cassandra]'"
+ )
+
+ self.logger = get_logger("cassandra_connector")
+
+ if (username and not password) or (password and not username):
+ raise ValidationError(
+ "Cassandra credentials must include both username and password, or neither"
+ )
+
+ self.hosts = hosts or ["127.0.0.1"]
+ self.port = port
+ self.username = username
+ self.password = password
+ self.keyspace = keyspace
+ self.config = config
+
+ self.cluster = None
+ self.session = None
+
+ def connect(self):
+ """Connect to Cassandra and return the session."""
+ if self.session is not None:
+ return self.session
+
+ try:
+ from cassandra.cluster import Cluster
+
+ auth_provider = None
+
+ if self.username and self.password:
+ auth_provider = PlainTextAuthProvider(
+ username=self.username,
+ password=self.password,
+ )
+
+ self.cluster = Cluster(
+ contact_points=self.hosts,
+ port=self.port,
+ auth_provider=auth_provider,
+ **self.config,
+ )
+
+ if self.keyspace:
+ self.session = self.cluster.connect(self.keyspace)
+ else:
+ self.session = self.cluster.connect()
+
+ self.logger.info("Connected to Cassandra")
+ return self.session
+
+ except Exception as exc:
+ if self.cluster is not None:
+ try:
+ self.cluster.shutdown()
+ except Exception:
+ pass
+ self.cluster = None
+ self.session = None
+ self.logger.error(
+ "Failed to connect to Cassandra: %s",
+ type(exc).__name__,
+ )
+ raise ProcessingError(
+ f"Failed to connect to Cassandra: {type(exc).__name__}"
+ ) from exc
+
+ def disconnect(self) -> None:
+ """Close the Cassandra connection."""
+ if self.session is not None:
+ try:
+ self.session.shutdown()
+ except Exception:
+ pass
+ finally:
+ self.session = None
+
+ if self.cluster is not None:
+ try:
+ self.cluster.shutdown()
+ except Exception:
+ pass
+ finally:
+ self.cluster = None
+
+ self.logger.info("Disconnected from Cassandra")
+
+ def test_connection(self) -> bool:
+ """Test whether Cassandra is reachable."""
+ already_connected = self.session is not None
+ try:
+ session = self.connect()
+ session.execute("SELECT release_version FROM system.local")
+ return True
+ except Exception as exc:
+ self.logger.debug(
+ "Cassandra connection test failed: %s",
+ type(exc).__name__,
+ )
+ return False
+ finally:
+ if not already_connected:
+ self.disconnect()
+
+def _validate_identifier(value: str, name: str) -> str:
+ """Validate a Cassandra keyspace or table identifier."""
+ if (
+ not value
+ or value[0].isdigit()
+ or not all(char.isalnum() or char == "_" for char in value)
+ ):
+ raise ValidationError(f"Invalid Cassandra {name}: {value}")
+ return value
+
+class CassandraIngestor:
+ """Cassandra data ingestion handler."""
+
+ def __init__(
+ self,
+ hosts: Optional[List[str]] = None,
+ port: int = 9042,
+ username: Optional[str] = None,
+ password: Optional[str] = None,
+ keyspace: Optional[str] = None,
+ connector: Optional[CassandraConnector] = None,
+ **config: Any,
+ ) -> None:
+ self.logger = get_logger("cassandra_ingestor")
+
+ self.connector = connector or CassandraConnector(
+ hosts=hosts,
+ port=port,
+ username=username,
+ password=password,
+ keyspace=keyspace,
+ **config,
+ )
+
+ self.keyspace = keyspace or self.connector.keyspace
+
+ def get_table_schema(
+ self,
+ table_name: str,
+ keyspace: Optional[str] = None,
+ ) -> Dict[str, Any]:
+ """Get schema information for a Cassandra table."""
+ keyspace = keyspace or self.keyspace
+
+ if not keyspace:
+ raise ValueError("keyspace is required")
+
+ _validate_identifier(keyspace, "keyspace")
+ _validate_identifier(table_name, "table name")
+
+ try:
+ if self.connector.cluster is None:
+ self.connector.connect()
+
+ keyspace_metadata = self.connector.cluster.metadata.keyspaces.get(
+ keyspace
+ )
+
+ if keyspace_metadata is None:
+ raise ValidationError(f"Keyspace not found: {keyspace}")
+
+ table_metadata = keyspace_metadata.tables.get(table_name)
+
+ if table_metadata is None:
+ raise ValidationError(
+ f"Table not found: {keyspace}.{table_name}"
+ )
+
+ primary_key_names = {
+ column.name for column in table_metadata.primary_key
+ }
+
+ columns = [
+ {
+ "name": column.name,
+ "type": str(column.cql_type),
+ "nullable": column.name not in primary_key_names,
+ "primary_key": column.name in primary_key_names,
+ "static": column.is_static,
+ }
+ for column in table_metadata.columns.values()
+ ]
+
+ return {
+ "columns": columns,
+ "primary_keys": [
+ column.name for column in table_metadata.primary_key
+ ],
+ }
+
+ except (ValidationError, ProcessingError):
+ raise
+ except Exception as exc:
+ self.logger.error(
+ "Failed to get Cassandra table schema: %s",
+ type(exc).__name__,
+ )
+ raise ProcessingError(
+ f"Failed to get Cassandra table schema: {type(exc).__name__}"
+ ) from exc
+
+ def ingest_table(
+ self,
+ table_name: str,
+ keyspace: Optional[str] = None,
+ limit: Optional[int] = None,
+ ) -> CassandraData:
+ """Ingest rows and schema information from a Cassandra table."""
+ keyspace = keyspace or self.keyspace
+
+ if not keyspace:
+ raise ValueError("keyspace is required")
+
+ _validate_identifier(keyspace, "keyspace")
+ _validate_identifier(table_name, "table name")
+
+ try:
+ session = self.connector.connect()
+
+ schema = self.get_table_schema(
+ table_name=table_name,
+ keyspace=keyspace,
+ )
+
+ columns = [column["name"] for column in schema["columns"]]
+
+ query = f"SELECT * FROM {keyspace}.{table_name}"
+
+ if limit is not None:
+ if isinstance(limit, bool) or not isinstance(limit, int) or limit <= 0:
+ raise ValidationError(
+ f"Limit must be a positive integer, got {limit!r}"
+ )
+ query += f" LIMIT {limit}"
+
+ result = session.execute(query)
+
+ rows = [
+ dict(row._asdict()) if hasattr(row, "_asdict") else dict(row)
+ for row in result
+ ]
+
+ return CassandraData(
+ data=rows,
+ row_count=len(rows),
+ columns=columns,
+ keyspace=keyspace,
+ table_name=table_name,
+ schema=schema,
+ metadata={"query": query},
+ )
+
+ except (ValidationError, ProcessingError):
+ raise
+ except Exception as exc:
+ self.logger.error(
+ "Failed to ingest Cassandra table: %s",
+ type(exc).__name__,
+ )
+ raise ProcessingError(
+ f"Failed to ingest Cassandra table: {type(exc).__name__}"
+ ) from exc
+
+ def export_as_documents(
+ self,
+ data: CassandraData,
+ id_field: str = "id",
+ text_fields: Optional[List[str]] = None,
+ ) -> List[Dict[str, Any]]:
+ """Convert Cassandra rows to Semantica document dictionaries."""
+ documents = []
+
+ for idx, row in enumerate(data.data):
+ doc = {
+ "id": str(row.get(id_field, idx)),
+ "metadata": {
+ "source": "cassandra",
+ "keyspace": data.keyspace,
+ "table": data.table_name,
+ "row_data": row,
+ },
+ }
+
+ if text_fields:
+ text_parts = [
+ str(row[field_name])
+ for field_name in text_fields
+ if field_name in row and row[field_name] is not None
+ ]
+ else:
+ text_parts = [
+ str(value)
+ for value in row.values()
+ if isinstance(value, str)
+ ]
+
+ doc["text"] = " ".join(text_parts)
+ documents.append(doc)
+
+ self.logger.debug(
+ "Exported %d Cassandra documents",
+ len(documents),
+ )
+
+ return documents
\ No newline at end of file
diff --git a/tests/test_cassandra_ingestor.py b/tests/test_cassandra_ingestor.py
new file mode 100644
index 00000000..0780eaf7
--- /dev/null
+++ b/tests/test_cassandra_ingestor.py
@@ -0,0 +1,423 @@
+"""Tests for the Cassandra ingestor."""
+
+import sys
+import types
+from unittest.mock import MagicMock, patch
+
+import pytest
+
+from semantica.utils.exceptions import ProcessingError, ValidationError
+from semantica.ingest.cassandra_ingestor import (
+ CassandraConnector,
+ CassandraData,
+ CassandraIngestor,
+)
+
+
+class TestCassandraData:
+ """Tests for CassandraData."""
+
+ def test_data_creation(self):
+ data = CassandraData(
+ data=[{"id": 1, "name": "Alice"}],
+ row_count=1,
+ columns=["id", "name"],
+ keyspace="test",
+ table_name="users",
+ schema={},
+ )
+
+ assert data.row_count == 1
+ assert data.columns == ["id", "name"]
+ assert data.keyspace == "test"
+ assert data.table_name == "users"
+
+
+class TestCassandraConnector:
+ """Tests for CassandraConnector."""
+
+ @patch("semantica.ingest.cassandra_ingestor.CASSANDRA_AVAILABLE", False)
+ def test_missing_dependency(self):
+ with pytest.raises(
+ ImportError,
+ match="cassandra-driver.*semantica\\[db-cassandra\\]",
+ ):
+ CassandraConnector()
+
+ @patch("semantica.ingest.cassandra_ingestor.CASSANDRA_AVAILABLE", True)
+ @patch("semantica.ingest.cassandra_ingestor.PlainTextAuthProvider")
+ def test_connect_without_auth(self, mock_auth):
+ mock_session = MagicMock()
+ mock_cluster_instance = MagicMock()
+ mock_cluster_instance.connect.return_value = mock_session
+
+ fake_cluster_module = types.ModuleType("cassandra.cluster")
+ mock_cluster = MagicMock(return_value=mock_cluster_instance)
+ fake_cluster_module.Cluster = mock_cluster
+
+ with patch.dict(sys.modules, {"cassandra.cluster": fake_cluster_module}):
+ connector = CassandraConnector(
+ hosts=["localhost"],
+ port=9042,
+ )
+
+ session = connector.connect()
+
+ assert session == mock_session
+ mock_cluster.assert_called_once_with(
+ contact_points=["localhost"],
+ port=9042,
+ auth_provider=None,
+ )
+ mock_auth.assert_not_called()
+
+ @patch("semantica.ingest.cassandra_ingestor.CASSANDRA_AVAILABLE", True)
+ @patch("semantica.ingest.cassandra_ingestor.PlainTextAuthProvider")
+ def test_connect_with_auth(self, mock_auth):
+ mock_session = MagicMock()
+ mock_cluster_instance = MagicMock()
+ mock_cluster_instance.connect.return_value = mock_session
+
+ fake_cluster_module = types.ModuleType("cassandra.cluster")
+ mock_cluster = MagicMock(return_value=mock_cluster_instance)
+ fake_cluster_module.Cluster = mock_cluster
+
+ with patch.dict(sys.modules, {"cassandra.cluster": fake_cluster_module}):
+ connector = CassandraConnector(
+ hosts=["localhost"],
+ username="user",
+ password="password",
+ )
+
+ session = connector.connect()
+
+ assert session == mock_session
+ mock_auth.assert_called_once_with(
+ username="user",
+ password="password",
+ )
+
+ @patch("semantica.ingest.cassandra_ingestor.CASSANDRA_AVAILABLE", True)
+ def test_disconnect(self):
+ mock_session = MagicMock()
+ mock_cluster_instance = MagicMock()
+ mock_cluster_instance.connect.return_value = mock_session
+
+ fake_cluster_module = types.ModuleType("cassandra.cluster")
+ mock_cluster = MagicMock(return_value=mock_cluster_instance)
+ fake_cluster_module.Cluster = mock_cluster
+
+ with patch.dict(sys.modules, {"cassandra.cluster": fake_cluster_module}):
+ connector = CassandraConnector(hosts=["localhost"])
+ connector.connect()
+ connector.disconnect()
+
+ mock_session.shutdown.assert_called_once()
+ mock_cluster_instance.shutdown.assert_called_once()
+ assert connector.session is None
+ assert connector.cluster is None
+
+
+class TestCassandraIngestor:
+ """Tests for CassandraIngestor."""
+
+ def test_export_as_documents(self):
+ data = CassandraData(
+ data=[
+ {"id": 1, "name": "Alice", "city": "Delhi"},
+ {"id": 2, "name": "Bob", "city": "Mumbai"},
+ ],
+ row_count=2,
+ columns=["id", "name", "city"],
+ keyspace="test",
+ table_name="users",
+ schema={},
+ )
+
+ ingestor = object.__new__(CassandraIngestor)
+ ingestor.logger = MagicMock()
+
+ documents = ingestor.export_as_documents(data)
+
+ assert len(documents) == 2
+ assert documents[0]["id"] == "1"
+ assert documents[0]["text"] == "Alice Delhi"
+ assert documents[0]["metadata"]["source"] == "cassandra"
+ assert documents[0]["metadata"]["keyspace"] == "test"
+ assert documents[0]["metadata"]["table"] == "users"
+
+ def test_export_as_documents_with_text_fields(self):
+ data = CassandraData(
+ data=[{"id": 1, "name": "Alice", "city": "Delhi"}],
+ row_count=1,
+ columns=["id", "name", "city"],
+ keyspace="test",
+ table_name="users",
+ schema={},
+ )
+
+ ingestor = object.__new__(CassandraIngestor)
+ ingestor.logger = MagicMock()
+
+ documents = ingestor.export_as_documents(
+ data,
+ text_fields=["name"],
+ )
+
+ assert documents[0]["text"] == "Alice"
+
+ def test_invalid_table_name(self):
+ connector = MagicMock()
+ connector.keyspace = "test"
+
+ ingestor = CassandraIngestor(connector=connector)
+
+ with pytest.raises(ValidationError, match="Invalid Cassandra table name"):
+ ingestor.ingest_table("users;DROP TABLE users")
+
+ @patch("semantica.ingest.cassandra_ingestor.CASSANDRA_AVAILABLE", True)
+ def test_get_table_schema(self):
+ mock_column_id = MagicMock()
+ mock_column_id.name = "id"
+ mock_column_id.cql_type = "int"
+ mock_column_id.is_static = False
+
+ mock_column_name = MagicMock()
+ mock_column_name.name = "name"
+ mock_column_name.cql_type = "text"
+ mock_column_name.is_static = False
+
+
+ mock_table = MagicMock()
+ mock_table.columns = {
+ "id": mock_column_id,
+ "name": mock_column_name,
+ }
+ mock_table.primary_key = [mock_column_id]
+
+ mock_keyspace = MagicMock()
+ mock_keyspace.tables = {"users": mock_table}
+
+ mock_cluster = MagicMock()
+ mock_cluster.metadata.keyspaces = {"test": mock_keyspace}
+
+ connector = MagicMock()
+ connector.keyspace = "test"
+ connector.cluster = mock_cluster
+ connector.connect.return_value = MagicMock()
+
+ ingestor = CassandraIngestor(connector=connector)
+
+ schema = ingestor.get_table_schema("users")
+
+ assert len(schema["columns"]) == 2
+ assert schema["primary_keys"] == ["id"]
+ assert schema["columns"][0]["name"] == "id"
+ assert schema["columns"][0]["primary_key"] is True
+ assert schema["columns"][1]["name"] == "name"
+ assert schema["columns"][1]["primary_key"] is False
+
+
+ def test_ingest_table(self):
+ mock_session = MagicMock()
+
+ mock_row1 = MagicMock()
+ mock_row1._asdict.return_value = {
+ "id": 1,
+ "name": "Alice",
+ }
+
+ mock_row2 = MagicMock()
+ mock_row2._asdict.return_value = {
+ "id": 2,
+ "name": "Bob",
+ }
+
+ mock_session.execute.return_value = [mock_row1, mock_row2]
+
+ connector = MagicMock()
+ connector.keyspace = "test"
+ connector.connect.return_value = mock_session
+
+ ingestor = CassandraIngestor(connector=connector)
+
+ schema = {
+ "columns": [
+ {"name": "id"},
+ {"name": "name"},
+ ],
+ "primary_keys": ["id"],
+ }
+
+ with patch.object(
+ ingestor,
+ "get_table_schema",
+ return_value=schema,
+ ):
+ data = ingestor.ingest_table("users")
+
+ assert data.row_count == 2
+ assert data.columns == ["id", "name"]
+ assert data.keyspace == "test"
+ assert data.table_name == "users"
+ assert data.data == [
+ {"id": 1, "name": "Alice"},
+ {"id": 2, "name": "Bob"},
+ ]
+ mock_session.execute.assert_called_once_with(
+ "SELECT * FROM test.users"
+ )
+
+
+ def test_ingest_table_with_limit(self):
+ mock_session = MagicMock()
+
+ mock_row = MagicMock()
+ mock_row._asdict.return_value = {
+ "id": 1,
+ "name": "Alice",
+ }
+
+ mock_session.execute.return_value = [mock_row]
+
+ connector = MagicMock()
+ connector.keyspace = "test"
+ connector.connect.return_value = mock_session
+
+ ingestor = CassandraIngestor(connector=connector)
+
+ schema = {
+ "columns": [
+ {"name": "id"},
+ {"name": "name"},
+ ],
+ "primary_keys": ["id"],
+ }
+
+ with patch.object(
+ ingestor,
+ "get_table_schema",
+ return_value=schema,
+ ):
+ data = ingestor.ingest_table("users", limit=10)
+
+ assert data.row_count == 1
+ mock_session.execute.assert_called_once_with(
+ "SELECT * FROM test.users LIMIT 10"
+ )
+
+ @pytest.mark.parametrize("limit", [-1, 0, True, False, 1.5, "10"])
+ def test_ingest_table_invalid_limit_raises(self, limit):
+ connector = MagicMock()
+ connector.keyspace = "test"
+ ingestor = CassandraIngestor(connector=connector)
+ with pytest.raises(ValidationError, match="Limit must be a positive integer"):
+ ingestor.ingest_table("users", limit=limit)
+
+ def test_ingest_table_preserves_validation_error(self):
+ connector = MagicMock()
+ connector.keyspace = "test"
+ ingestor = CassandraIngestor(connector=connector)
+ with patch.object(
+ ingestor,
+ "get_table_schema",
+ side_effect=ValidationError("Table not found: test.users"),
+ ):
+ with pytest.raises(ValidationError, match="Table not found: test.users"):
+ ingestor.ingest_table("users")
+
+
+class TestCassandraConnectorEdgeCases:
+ """Tests for CassandraConnector connection lifecycle, auth, and cleanup."""
+
+ @patch("semantica.ingest.cassandra_ingestor.CASSANDRA_AVAILABLE", True)
+ def test_partial_credentials_raise_validation_error(self):
+ with pytest.raises(ValidationError, match="Cassandra credentials"):
+ CassandraConnector(username="admin")
+
+ with pytest.raises(ValidationError, match="Cassandra credentials"):
+ CassandraConnector(password="secret")
+
+ @patch("semantica.ingest.cassandra_ingestor.CASSANDRA_AVAILABLE", True)
+ def test_failed_connection_shuts_down_cluster(self):
+ mock_cluster_instance = MagicMock()
+ mock_cluster_instance.connect.side_effect = RuntimeError("cluster down")
+
+ fake_cluster_module = types.ModuleType("cassandra.cluster")
+ fake_cluster_module.Cluster = MagicMock(return_value=mock_cluster_instance)
+
+ with patch.dict(sys.modules, {"cassandra.cluster": fake_cluster_module}):
+ connector = CassandraConnector(hosts=["localhost"])
+ with pytest.raises(ProcessingError, match="Failed to connect to Cassandra"):
+ connector.connect()
+
+ mock_cluster_instance.shutdown.assert_called_once()
+ assert connector.cluster is None
+ assert connector.session is None
+
+ @patch("semantica.ingest.cassandra_ingestor.CASSANDRA_AVAILABLE", True)
+ def test_test_connection_preserves_live_session(self):
+ connector = CassandraConnector(hosts=["localhost"])
+ existing_session = MagicMock()
+ connector.session = existing_session
+
+ assert connector.test_connection() is True
+ existing_session.execute.assert_called_once_with(
+ "SELECT release_version FROM system.local"
+ )
+ assert connector.session == existing_session
+ existing_session.shutdown.assert_not_called()
+
+ @patch("semantica.ingest.cassandra_ingestor.CASSANDRA_AVAILABLE", True)
+ def test_test_connection_disconnects_transient_session(self):
+ mock_session = MagicMock()
+ mock_cluster_instance = MagicMock()
+ mock_cluster_instance.connect.return_value = mock_session
+
+ fake_cluster_module = types.ModuleType("cassandra.cluster")
+ fake_cluster_module.Cluster = MagicMock(return_value=mock_cluster_instance)
+
+ with patch.dict(sys.modules, {"cassandra.cluster": fake_cluster_module}):
+ connector = CassandraConnector(hosts=["localhost"])
+ assert connector.session is None
+ assert connector.test_connection() is True
+ mock_session.shutdown.assert_called_once()
+ mock_cluster_instance.shutdown.assert_called_once()
+ assert connector.session is None
+
+
+class TestCassandraPackageExports:
+ """Tests for semantica.ingest package exports and lazy loading."""
+
+ def test_all_contains_cassandra_symbols(self):
+ import semantica.ingest as pkg
+
+ for name in ("CassandraIngestor", "CassandraConnector", "CassandraData"):
+ assert name in pkg.__all__, f"{name} missing from __all__"
+
+ def test_cassandra_data_importable_without_driver(self):
+ from semantica.ingest import CassandraData
+
+ data = CassandraData(
+ data=[],
+ row_count=0,
+ columns=[],
+ keyspace="k",
+ table_name="t",
+ schema={},
+ )
+ assert data.row_count == 0
+
+ def test_lazy_import_without_dependency_raises_clear_error(self):
+ import semantica.ingest as pkg
+
+ with patch("semantica.ingest.cassandra_ingestor.CASSANDRA_AVAILABLE", False):
+ # Clear cached attribute on pkg if present
+ pkg.__dict__.pop("CassandraIngestor", None)
+ pkg.__dict__.pop("CassandraConnector", None)
+
+ with pytest.raises(ImportError, match="pip install 'semantica\\[db-cassandra\\]'"):
+ _ = pkg.CassandraIngestor
+
+ with pytest.raises(ImportError, match="pip install 'semantica\\[db-cassandra\\]'"):
+ _ = pkg.CassandraConnector
diff --git a/uv.lock b/uv.lock
index 794f4bc6..856cddce 100644
--- a/uv.lock
+++ b/uv.lock
@@ -716,6 +716,38 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/cc/bb/1c6e7a89b11da19f137e4ef5a5c5fe47a5bb686449ba343944ccf8fb34b2/cachetools-7.2.0-py3-none-any.whl", hash = "sha256:3045213f186b89fdd95d94441354c4bd87c570b7a38d8c3fd1d9dd37f6dc90d8", size = 16918, upload-time = "2026-09-16T20:48:25.575Z" },
]
+[[package]]
+name = "cassandra-driver"
+version = "3.30.1"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "deprecated" },
+ { name = "geomet" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/bb/ed/4e16210e194660f107929ee494f1cf18557252655067d9b39029c241be2d/cassandra_driver-3.30.1.tar.gz", hash = "sha256:0c6a3e1428f7c6a9aa6c944b9c47a37cd2cdbeb5b5a82d42c33afdd56f14e398", size = 289233, upload-time = "2026-07-06T20:14:31.37Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/46/2d/7a4fba6ae9c69cffe6b13ecd44e3ceda9ce437529ca1ee9e21a854cd5ab4/cassandra_driver-3.30.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:80df7b705f71e1a6dae77aaea682cbe45fdd74b962cfcc6c6b0c05195f48b7c2", size = 3510783, upload-time = "2026-07-06T20:12:57.355Z" },
+ { url = "https://files.pythonhosted.org/packages/81/af/e5d9943bbda20d3b5e6ff82d61066c159e932449219507b4a07a9c09bf81/cassandra_driver-3.30.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:84b2cc578f542332b678fc3fcc801c6ef8110a377d3fd38c27eab5ec5f2d2b79", size = 3267883, upload-time = "2026-07-06T20:13:01.548Z" },
+ { url = "https://files.pythonhosted.org/packages/62/22/31184dab2c9bad176968b481fa03f3584bdfe78245c4fbde7d22782c6ff0/cassandra_driver-3.30.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:30686850b9e0d0d8326ee07219113170b4e1d041e4d1434521a2f342c471108e", size = 3480446, upload-time = "2026-07-06T20:13:06.087Z" },
+ { url = "https://files.pythonhosted.org/packages/4f/e3/fae61cfa426878f8b932bca0ce63a7df8b61bb2ed71a87244e7b3a9aec32/cassandra_driver-3.30.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:71f3ccc8c60f41c83306c60704f7b1ee1a8ccd312aae286bf75d318aa47d0e71", size = 3723666, upload-time = "2026-07-06T20:13:10.017Z" },
+ { url = "https://files.pythonhosted.org/packages/de/67/c3554dfdf4ad87af8810846e5c879893db9599d81860b92cb5aa114d7092/cassandra_driver-3.30.1-cp310-cp310-win_amd64.whl", hash = "sha256:222c704c72a5880cfe9c89f04b375d03d1152dbdb6ec8c25a325267b8bc2ca4e", size = 2823187, upload-time = "2026-07-06T20:13:13.276Z" },
+ { url = "https://files.pythonhosted.org/packages/d7/ac/1a26e7c9aabbf1e14556e2d2ce0f44557c2b9cd85d1057c9148c024fba1b/cassandra_driver-3.30.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:9b54f7c6cbb1d9bb6a8b9f8ab6034e6f761527e97af0603aa1e9635720df03a0", size = 3314423, upload-time = "2026-07-06T20:13:16.973Z" },
+ { url = "https://files.pythonhosted.org/packages/32/1b/d2d312b1b33ce3843bbf38df625f25760cc1ac1c11e72d9527a2e43c5fe3/cassandra_driver-3.30.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:546ad047abf96a6d7922d057010b4cfb22e9d473db7b907956bc7c6a8029f7d9", size = 3152436, upload-time = "2026-07-06T20:13:20.416Z" },
+ { url = "https://files.pythonhosted.org/packages/01/28/2cef7840b2065d6053ab46347a6f9e149719e4980937df3ec7bca75125ca/cassandra_driver-3.30.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:187bd1457e414bc019a0635603ea0001baada914942198ed23993198e44dec74", size = 3485076, upload-time = "2026-07-06T20:13:24.291Z" },
+ { url = "https://files.pythonhosted.org/packages/0e/68/dd77df0e56a275f763ee38598c21abc4fd585b8319dc38eaee398433c231/cassandra_driver-3.30.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6c5ae0218e52944f92ddde07a03cfa941fa4a10097d501a18cfa1b525c92d013", size = 3723710, upload-time = "2026-07-06T20:13:28.458Z" },
+ { url = "https://files.pythonhosted.org/packages/23/68/7cd2acd903d8c51079d63df37dd8880fd62b3c3abd3e58b382fc2cb5699a/cassandra_driver-3.30.1-cp311-cp311-win_amd64.whl", hash = "sha256:799af594364475656d9eea69606713fbaa98b10da82cc6d90286322477c72828", size = 2832680, upload-time = "2026-07-06T20:13:31.776Z" },
+ { url = "https://files.pythonhosted.org/packages/07/d4/8a80155cfe1312bb5d750e5a7b0384a1346fde2ca07cbff869f6627db071/cassandra_driver-3.30.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:9ff317f79b09eba52a44d46d8c4773e47533dfdd8b9ba4984268dc4a1fe5206e", size = 3649965, upload-time = "2026-07-06T20:13:35.813Z" },
+ { url = "https://files.pythonhosted.org/packages/3a/ed/d9bca63e72e8219243e75821e72ace3046da0fe9a8b22375cf0c0efff427/cassandra_driver-3.30.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ab853bd2806899c5612c3e4ac2a355a7811084d06692e4460255e3b0a4fa556a", size = 3475640, upload-time = "2026-07-06T20:13:39.842Z" },
+ { url = "https://files.pythonhosted.org/packages/a8/43/9bc21a9a3881c7eb9c19d0a6af8331a3fda0f18e82be83b49330f072d546/cassandra_driver-3.30.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e10784b4f7d77332dc1a5c72855977a0d797160fd8ba50785414caed07fce95b", size = 3226293, upload-time = "2026-07-06T20:13:43.675Z" },
+ { url = "https://files.pythonhosted.org/packages/89/c1/d050e11c324c0d0be7213947bed7c1cb65ef50ab4f12b3e881614217fce2/cassandra_driver-3.30.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:af5c6f5d7d5a86725b908aba12d9554df60234c15bfe053a8175b15db791ada8", size = 3483718, upload-time = "2026-07-06T20:13:48.038Z" },
+ { url = "https://files.pythonhosted.org/packages/49/ee/779b732de46608018ac90613a5fe4954a4901c6efa19f38ab2213e9cf4ef/cassandra_driver-3.30.1-cp312-cp312-win_amd64.whl", hash = "sha256:e43d873de5f8dadf4c8dcc4fab87d66a8495137e844ae3c184fbc90a54c05bc0", size = 2662678, upload-time = "2026-07-06T20:13:51.566Z" },
+ { url = "https://files.pythonhosted.org/packages/23/4f/13533a1f642213d84ae5896b85f71d0eb1b3449647ecd8a0127adba0a7f8/cassandra_driver-3.30.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:0ea769cf9925206b8458db10477b78699660fbdaed7262157e43b8f21817f838", size = 3636690, upload-time = "2026-07-06T20:13:55.901Z" },
+ { url = "https://files.pythonhosted.org/packages/54/dc/20972270725376e920d333abfb89260ebf1c1d68491e1464a064061040a2/cassandra_driver-3.30.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:8f43abccb5b5a761582e4ba6d44a7ef4274b61b0bd3f8e3159af40ca2c10c0fa", size = 3466913, upload-time = "2026-07-06T20:14:00.199Z" },
+ { url = "https://files.pythonhosted.org/packages/e4/bd/1b9d30155656ce660838440b72d1e85b3e4301d5e6facaf327a83aeca96a/cassandra_driver-3.30.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ec04eebfadc74039b1f7df84356a822539992c7dc0b013fedbb5a33d9295af86", size = 3220329, upload-time = "2026-07-06T20:14:04.196Z" },
+ { url = "https://files.pythonhosted.org/packages/f8/df/569fb36b5b9810c750c03802be23afaea52099b55e9f47379f1ced180b97/cassandra_driver-3.30.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c0995dccff3df739a1df6e10da9f3fc95bbbc8b38bacc4cfb6172655f8351cba", size = 3476643, upload-time = "2026-07-06T20:14:07.848Z" },
+ { url = "https://files.pythonhosted.org/packages/d3/af/a6eab42d55ac693f105113651951cad6830cd1230434eb8c2f241d184796/cassandra_driver-3.30.1-cp313-cp313-win_amd64.whl", hash = "sha256:eba7931a615207aab84ebaa000330024f1c614aa86ca58d119556edd338883ce", size = 2665168, upload-time = "2026-07-06T20:14:10.952Z" },
+]
+
[[package]]
name = "catalogue"
version = "2.0.10"
@@ -1695,6 +1727,18 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl", hash = "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61", size = 25604, upload-time = "2021-03-08T10:59:24.45Z" },
]
+[[package]]
+name = "deprecated"
+version = "1.3.1"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "wrapt" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/49/85/12f0a49a7c4ffb70572b6c2ef13c90c88fd190debda93b23f026b25f9634/deprecated-1.3.1.tar.gz", hash = "sha256:b1b50e0ff0c1fddaa5708a2c6b0a6588bb09b892825ab2b214ac9ea9d92a5223", size = 2932523, upload-time = "2025-10-30T08:19:02.757Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/84/d0/205d54408c08b13550c733c4b85429e7ead111c7f0014309637425520a9a/deprecated-1.3.1-py2.py3-none-any.whl", hash = "sha256:597bfef186b6f60181535a29fbe44865ce137a5079f295b479886c82729d5f3f", size = 11298, upload-time = "2025-10-30T08:19:00.758Z" },
+]
+
[[package]]
name = "deprecation"
version = "2.1.0"
@@ -2389,6 +2433,18 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/82/f3/4f8f4d478ce69af812c6002b513c5ad3242976923d172dbe5814903be22f/gensim-4.4.0-cp313-cp313-win_amd64.whl", hash = "sha256:6ecb7aed37fb92d24e15a6adbabe693074003263db0fd9ce97c9f4234a9edc1b", size = 24396932, upload-time = "2025-10-18T02:02:11.568Z" },
]
+[[package]]
+name = "geomet"
+version = "1.1.0"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "click" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/2a/8c/dde022aa6747b114f6b14a7392871275dea8867e2bd26cddb80cc6d66620/geomet-1.1.0.tar.gz", hash = "sha256:51e92231a0ef6aaa63ac20c443377ba78a303fd2ecd179dc3567de79f3c11605", size = 28732, upload-time = "2023-11-14T15:43:36.764Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/af/90/3bc780df088d439714af8295196a4332a26559ae66fd99865e36f92efa9e/geomet-1.1.0-py3-none-any.whl", hash = "sha256:4372fe4e286a34acc6f2e9308284850bd8c4aa5bc12065e2abbd4995900db12f", size = 31522, upload-time = "2023-11-14T15:43:35.305Z" },
+]
+
[[package]]
name = "gitdb"
version = "4.0.12"
@@ -8272,6 +8328,7 @@ cloud = [
{ name = "google-cloud-storage" },
]
db-all = [
+ { name = "cassandra-driver" },
{ name = "cryptography" },
{ name = "databricks-sdk" },
{ name = "databricks-sql-connector" },
@@ -8287,6 +8344,9 @@ db-arrow = [
db-bigquery = [
{ name = "google-cloud-bigquery" },
]
+db-cassandra = [
+ { name = "cassandra-driver" },
+]
db-databricks = [
{ name = "databricks-sdk" },
{ name = "databricks-sql-connector" },
@@ -8549,6 +8609,7 @@ requires-dist = [
{ name = "bertopic", marker = "extra == 'split-topic'", specifier = ">=0.15.0" },
{ name = "boto3", marker = "extra == 'cloud'", specifier = ">=1.24.0" },
{ name = "boto3", marker = "extra == 'graph-amazon-neptune'", specifier = ">=1.24.0" },
+ { name = "cassandra-driver", marker = "extra == 'db-cassandra'", specifier = ">=3.29.0" },
{ name = "celery", marker = "extra == 'infra'", specifier = ">=5.2.0" },
{ name = "chardet", specifier = ">=7.4.3" },
{ name = "click", specifier = ">=8.4.2" },
@@ -8640,7 +8701,7 @@ requires-dist = [
{ name = "scikit-learn", specifier = ">=1.7.2" },
{ name = "scipy", specifier = ">=1.13.1" },
{ name = "seaborn", marker = "extra == 'viz'", specifier = ">=0.13.2" },
- { name = "semantica", extras = ["db-snowflake", "db-databricks", "db-salesforce", "db-redshift", "db-bigquery", "db-arrow"], marker = "extra == 'db-all'" },
+ { name = "semantica", extras = ["db-snowflake", "db-databricks", "db-salesforce", "db-redshift", "db-cassandra", "db-bigquery", "db-arrow"], marker = "extra == 'db-all'" },
{ name = "semantica", extras = ["graph-neo4j", "graph-falkordb", "graph-amazon-neptune", "graph-apache-age", "graph-embeddings"], marker = "extra == 'graph-all'" },
{ name = "semantica", extras = ["llm-openai", "llm-groq", "llm-gemini", "llm-anthropic", "llm-ollama", "llm-deepseek", "llm-novita", "llm-litellm", "llm-instructor", "llm-typesafe"], marker = "extra == 'llm-all'" },
{ name = "semantica", extras = ["split-tiktoken", "split-community", "split-topic"], marker = "extra == 'split-all'" },
@@ -8668,7 +8729,7 @@ requires-dist = [
{ name = "weaviate-client", marker = "extra == 'vectorstore-weaviate'", specifier = ">=4.0.0" },
{ name = "websockets", marker = "extra == 'explorer'", specifier = ">=15.0.1" },
]
-provides-extras = ["llm-openai", "llm-groq", "llm-gemini", "llm-anthropic", "llm-ollama", "llm-deepseek", "llm-novita", "llm-litellm", "llm-instructor", "llm-typesafe", "llm-all", "documents", "parse-docling", "parse-pdf", "shacl", "db-snowflake", "db-databricks", "db-arrow", "db-salesforce", "db-redshift", "db-bigquery", "ingest-looker", "ingest-parquet", "ingest-arrow", "ingest-sap", "ingest-servicenow", "ingest-airflow", "ingest-git", "db-all", "models-huggingface", "embeddings-local", "nlp-spacy", "graph-neo4j", "graph-falkordb", "graph-amazon-neptune", "graph-apache-age", "graph-embeddings", "graph-all", "tripletstore-oxigraph", "vectorstore-faiss", "vectorstore-qdrant", "vectorstore-weaviate", "vectorstore-pinecone", "vectorstore-milvus", "vectorstore-pgvector", "vectorstore-sqlite", "vectorstore-all", "infra", "cloud", "monitoring", "viz", "media", "gpu", "agno", "langchain", "google-adk", "open-ontologies", "watch", "split-tiktoken", "split-community", "split-topic", "split-all", "explorer", "explorer-lite", "all"]
+provides-extras = ["llm-openai", "llm-groq", "llm-gemini", "llm-anthropic", "llm-ollama", "llm-deepseek", "llm-novita", "llm-litellm", "llm-instructor", "llm-typesafe", "llm-all", "documents", "parse-docling", "parse-pdf", "shacl", "db-snowflake", "db-databricks", "db-arrow", "db-salesforce", "db-redshift", "db-cassandra", "db-bigquery", "ingest-looker", "ingest-parquet", "ingest-arrow", "ingest-sap", "ingest-servicenow", "ingest-airflow", "ingest-git", "db-all", "models-huggingface", "embeddings-local", "nlp-spacy", "graph-neo4j", "graph-falkordb", "graph-amazon-neptune", "graph-apache-age", "graph-embeddings", "graph-all", "tripletstore-oxigraph", "vectorstore-faiss", "vectorstore-qdrant", "vectorstore-weaviate", "vectorstore-pinecone", "vectorstore-milvus", "vectorstore-pgvector", "vectorstore-sqlite", "vectorstore-all", "infra", "cloud", "monitoring", "viz", "media", "gpu", "agno", "langchain", "google-adk", "open-ontologies", "watch", "split-tiktoken", "split-community", "split-topic", "split-all", "explorer", "explorer-lite", "all"]
[package.metadata.requires-dev]
dev = [