Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

feat(ingest): add Tableau workbook/datasource connector (#1694)

Karunasagar Mohansundarfe0b6da43547
diff --git a/docs/docs.json b/docs/docs.json
index c3bf9658..cb014a4d 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -110,6 +110,7 @@
"integrations/bigquery",
"integrations/salesforce",
"integrations/airflow",
+ "integrations/tableau",
"integrations/redshift",
"integrations/cassandra",
"integrations/powerbi",
diff --git a/docs/integrations/tableau.md b/docs/integrations/tableau.md
new file mode 100644
index 00000000..cdff1c3a
--- /dev/null
+++ b/docs/integrations/tableau.md
@@ -0,0 +1,133 @@
+---
+title: "Tableau Integration"
+description: "Ingest workbook and datasource metadata from Tableau Server or Tableau Cloud into Semantica's KG pipeline."
+icon: "chart-bar"
+---
+
+> Pull workbook metadata, published datasource listings, and field schemas from Tableau into Semantica using Personal Access Token (PAT) or username/password authentication.
+
+## Installation
+
+```bash
+# Install with Tableau support
+pip install "semantica[ingest-tableau]"
+
+# Or install the connector separately
+pip install "tableauserverclient>=0.25"
+```
+
+## Basic Usage
+
+```python
+import os
+from semantica.ingest import TableauIngestor
+
+ingestor = TableauIngestor(
+ server_url=os.getenv("TABLEAU_SERVER_URL"),
+ token_name=os.getenv("TABLEAU_TOKEN_NAME"),
+ token_value=os.getenv("TABLEAU_TOKEN_VALUE"),
+ site_name=os.getenv("TABLEAU_SITE_NAME", ""), # empty = default site
+)
+
+# Ingest all workbooks
+data = ingestor.ingest_workbooks()
+print(f"Retrieved {data.row_count} workbook(s)")
+
+# Export to Semantica document format for GraphBuilder
+docs = ingestor.export_as_documents(data)
+```
+
+<Tip>
+Use environment variables (or a `.env` file with `python-dotenv`) to keep credentials out of source code. `TableauIngestor()` with no arguments reads from `TABLEAU_*` environment variables automatically.
+</Tip>
+
+## Authentication
+
+### Personal Access Token (PAT) — Recommended
+
+```python
+ingestor = TableauIngestor(
+ server_url="https://your-server.tableau.example.com",
+ site_name="your-site", # empty string = default site
+ token_name="my-pat-name",
+ token_value=os.getenv("TABLEAU_TOKEN_VALUE"),
+)
+```
+
+### Username / Password
+
+```python
+ingestor = TableauIngestor(
+ server_url="https://your-server.tableau.example.com",
+ username=os.getenv("TABLEAU_USERNAME"),
+ password=os.getenv("TABLEAU_PASSWORD"),
+)
+```
+
+## Environment Variables
+
+| Variable | Description |
+|---|---|
+| `TABLEAU_SERVER_URL` | Base URL of your Tableau Server or Cloud instance |
+| `TABLEAU_SITE_NAME` | Site name (empty string for the default site) |
+| `TABLEAU_TOKEN_NAME` | Personal Access Token name |
+| `TABLEAU_TOKEN_VALUE` | Personal Access Token value |
+| `TABLEAU_USERNAME` | Tableau username (alternative to PAT) |
+| `TABLEAU_PASSWORD` | Tableau password (alternative to PAT) |
+
+## Ingestion Methods
+
+### Workbooks
+
+```python
+# All workbooks
+data = ingestor.ingest_workbooks()
+
+# Filter by project
+data = ingestor.ingest_workbooks(project_name="Finance")
+```
+
+### Datasources
+
+```python
+data = ingestor.ingest_datasources()
+# or filter:
+data = ingestor.ingest_datasources(project_name="Finance")
+```
+
+### Fields (from a specific datasource)
+
+```python
+data = ingestor.ingest_fields(datasource_id="<luid>")
+```
+
+## Export to Documents
+
+```python
+docs = ingestor.export_as_documents(data)
+# Each doc: {"id": str, "text": str, "metadata": {"source": "tableau", "type": ..., ...}}
+```
+
+## Context Manager
+
+```python
+with TableauIngestor(
+ server_url=os.getenv("TABLEAU_SERVER_URL"),
+ token_name=os.getenv("TABLEAU_TOKEN_NAME"),
+ token_value=os.getenv("TABLEAU_TOKEN_VALUE"),
+) as t:
+ workbooks = t.ingest_workbooks()
+ datasources = t.ingest_datasources()
+```
+
+## TableauData Reference
+
+| Field | Type | Description |
+|---|---|---|
+| `workbooks` | `list[dict]` | Workbook metadata (id, name, project_name, …) |
+| `datasources` | `list[dict]` | Datasource metadata (id, name, type, …) |
+| `fields` | `list[dict]` | Field metadata when using `ingest_fields()` |
+| `server_url` | `str` | Tableau Server base URL |
+| `site_name` | `str` | Site name used for ingestion |
+| `row_count` | `int` | Total items in the result set |
+| `ingested_at` | `datetime` | Timestamp of ingestion |
diff --git a/pyproject.toml b/pyproject.toml
index faf3a36c..ccf4a60d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -136,6 +136,7 @@ db-bigquery = ["google-cloud-bigquery>=3.0.0"]
ingest-looker = ["looker-sdk>=24.0.0"]
ingest-parquet = ["pyarrow>=24.0.0"]
ingest-arrow = ["pyarrow>=24.0.0"]
+ingest-tableau = ["tableauserverclient>=0.25"]
ingest-sap = ["requests>=2.28.0"]
ingest-servicenow = ["requests>=2.28.0"]
ingest-airflow = ["requests>=2.28.0"]
diff --git a/semantica/ingest/__init__.py b/semantica/ingest/__init__.py
index 9c5e224e..07f40c4c 100644
--- a/semantica/ingest/__init__.py
+++ b/semantica/ingest/__init__.py
@@ -271,6 +271,10 @@ _LAZY_EXPORTS: Dict[str, Tuple[str, str]] = {
"SalesforceIngestor": (".salesforce_ingestor", "SalesforceIngestor"),
"SalesforceData": (".salesforce_ingestor", "SalesforceData"),
"SalesforceConnector": (".salesforce_ingestor", "SalesforceConnector"),
+ # Tableau ingestion
+ "TableauIngestor": (".tableau_ingestor", "TableauIngestor"),
+ "TableauData": (".tableau_ingestor", "TableauData"),
+ "TableauConnector": (".tableau_ingestor", "TableauConnector"),
# Redshift ingestion
"RedshiftIngestor": (".redshift_ingestor", "RedshiftIngestor"),
"RedshiftData": (".redshift_ingestor", "RedshiftData"),
@@ -336,7 +340,11 @@ _OPTIONAL_DEPENDENCY_MESSAGES = {
".airflow_ingestor": (
"Apache Airflow ingestion requires optional dependency 'requests'. "
"Install it with: "
- "pip install \"semantica[ingest-airflow]\""
+ 'pip install \"semantica[ingest-airflow]\"'
+ ),
+ ".tableau_ingestor": (
+ "Tableau ingestion requires optional dependency 'tableauserverclient'. "
+ "Install it with: pip install 'semantica[ingest-tableau]'"
),
".redshift_ingestor": (
"Redshift ingestion requires optional dependency 'redshift-connector'. "
@@ -423,6 +431,15 @@ def __getattr__(name: str) -> Any:
if message:
raise ImportError(message)
+ if module_name == ".tableau_ingestor" and name in {
+ "TableauIngestor",
+ "TableauConnector",
+ }:
+ if not getattr(module, "TABLEAU_AVAILABLE", True):
+ message = _OPTIONAL_DEPENDENCY_MESSAGES.get(module_name)
+ if message:
+ raise ImportError(message)
+
if module_name == ".redshift_ingestor" and name in {
"RedshiftIngestor",
"RedshiftConnector",
@@ -558,6 +575,10 @@ __all__ = [
"SalesforceIngestor",
"SalesforceData",
"SalesforceConnector",
+ # Tableau ingestion
+ "TableauIngestor",
+ "TableauData",
+ "TableauConnector",
# Redshift ingestion
"RedshiftIngestor",
"RedshiftData",
diff --git a/semantica/ingest/tableau_ingestor.py b/semantica/ingest/tableau_ingestor.py
new file mode 100644
index 00000000..30a3a925
--- /dev/null
+++ b/semantica/ingest/tableau_ingestor.py
@@ -0,0 +1,736 @@
+"""
+Tableau Ingestion Module
+
+This module provides Tableau workbook and datasource metadata ingestion for
+the Semantica framework, enabling extraction of workbooks, published data
+sources, and field definitions from Tableau Server or Tableau Cloud via the
+Tableau REST API.
+
+Key Features:
+ - Personal Access Token (PAT) and username/password authentication
+ - Workbook and datasource metadata ingestion
+ - Field-level schema discovery for published datasources
+ - Progress tracking and structured error handling
+ - Connection management with context-manager support
+
+Main Classes:
+ - TableauConnector: Manages the tableauserverclient authentication lifecycle
+ - TableauData: Dataclass representing ingested Tableau metadata
+ - TableauIngestor: Orchestrates ingestion operations
+
+Optional Dependency:
+ Install via the ``ingest-tableau`` extra::
+
+ pip install "semantica[ingest-tableau]"
+
+ or directly::
+
+ pip install tableauserverclient>=0.25
+
+Example Usage::
+
+ >>> import os
+ >>> from semantica.ingest import TableauIngestor
+ >>> ingestor = TableauIngestor(
+ ... server_url=os.getenv("TABLEAU_SERVER_URL"),
+ ... token_name=os.getenv("TABLEAU_TOKEN_NAME"),
+ ... token_value=os.getenv("TABLEAU_TOKEN_VALUE"),
+ ... )
+
+Author: Semantica Contributors
+License: MIT
+"""
+
+import os
+from dataclasses import dataclass, field
+from datetime import datetime
+from typing import Any
+
+from typing_extensions import Self
+
+from ..utils.exceptions import ProcessingError, ValidationError
+from ..utils.logging import get_logger
+from ..utils.progress_tracker import get_progress_tracker
+from .ssrf import validate_url_for_request
+
+# ---------------------------------------------------------------------------
+# Optional-dependency guard — mirrors the pattern in salesforce_ingestor.
+# The module always imports cleanly; the guard fires at instantiation time
+# via the TABLEAU_AVAILABLE check in __init__.
+# ---------------------------------------------------------------------------
+try:
+ import tableauserverclient as TSC # type: ignore[import]
+
+ TABLEAU_AVAILABLE = True
+except (ImportError, OSError):
+ TSC = None # type: ignore[assignment]
+ TABLEAU_AVAILABLE = False
+
+
+logger = get_logger("tableau_ingestor")
+
+
+# ---------------------------------------------------------------------------
+# TableauData
+# ---------------------------------------------------------------------------
+
+
+@dataclass
+class TableauData:
+ """Metadata ingested from Tableau Server or Tableau Cloud.
+
+ Attributes:
+ workbooks: List of workbook metadata dictionaries. Each entry
+ contains at minimum ``id``, ``name``, ``project_name``,
+ ``owner_id``, and ``content_url``.
+ datasources: List of published datasource metadata dictionaries.
+ Each entry contains at minimum ``id``, ``name``,
+ ``project_name``, and ``content_url``.
+ fields: List of field metadata dictionaries when a specific
+ datasource was introspected (via :meth:`TableauIngestor.ingest_fields`).
+ Empty list otherwise.
+ server_url: Tableau Server / Cloud base URL used for the ingestion.
+ site_name: Tableau site name (empty string for the default site).
+ row_count: Total number of items across ``workbooks``,
+ ``datasources``, and ``fields`` combined.
+ metadata: Arbitrary extra metadata populated by ingestion methods.
+ ingested_at: Timestamp recorded when this object was created.
+ """
+
+ workbooks: list[dict[str, Any]] = field(default_factory=list)
+ datasources: list[dict[str, Any]] = field(default_factory=list)
+ fields: list[dict[str, Any]] = field(default_factory=list)
+ server_url: str | None = None
+ site_name: str | None = None
+ row_count: int = 0
+ metadata: dict[str, Any] = field(default_factory=dict)
+ ingested_at: datetime = field(default_factory=datetime.now)
+
+
+# ---------------------------------------------------------------------------
+# TableauConnector
+# ---------------------------------------------------------------------------
+
+
+class TableauConnector:
+ """Manages the tableauserverclient authentication lifecycle.
+
+ Supports two authentication modes:
+
+ **Personal Access Token (PAT)** — recommended for production::
+
+ connector = TableauConnector(
+ server_url="https://prod.tableau.example.com",
+ site_name="", # empty string = default site
+ token_name="my-pat",
+ token_value=os.getenv("TABLEAU_TOKEN_VALUE"),
+ )
+
+ **Username / Password**::
+
+ connector = TableauConnector(
+ server_url="https://prod.tableau.example.com",
+ username=os.getenv("TABLEAU_USERNAME"),
+ password=os.getenv("TABLEAU_PASSWORD"),
+ )
+
+ Environment Variables
+ ----------------------
+ Every constructor parameter has an environment-variable fallback:
+
+ * ``TABLEAU_SERVER_URL``
+ * ``TABLEAU_SITE_NAME`` (default: ``""``)
+ * ``TABLEAU_TOKEN_NAME``
+ * ``TABLEAU_TOKEN_VALUE``
+ * ``TABLEAU_USERNAME``
+ * ``TABLEAU_PASSWORD``
+
+ Raises:
+ ImportError: If ``tableauserverclient`` is not installed.
+ ValidationError: If no usable credential set is provided.
+ """
+
+ def __init__(
+ self,
+ server_url: str | None = None,
+ site_name: str | None = None,
+ token_name: str | None = None,
+ token_value: str | None = None,
+ username: str | None = None,
+ password: str | None = None,
+ allow_private_ips: bool = False,
+ ) -> None:
+ if not TABLEAU_AVAILABLE:
+ raise ImportError(
+ "tableauserverclient is required for TableauConnector. "
+ 'Install it with: pip install "semantica[ingest-tableau]" '
+ "or: pip install tableauserverclient>=0.25"
+ )
+
+ self.logger = get_logger("tableau_connector")
+
+ self.server_url: str | None = server_url or os.getenv("TABLEAU_SERVER_URL")
+ self.site_name: str = (
+ site_name
+ if site_name is not None
+ else os.getenv("TABLEAU_SITE_NAME", "")
+ )
+ self._token_name: str | None = token_name or os.getenv("TABLEAU_TOKEN_NAME")
+ self._token_value: str | None = token_value or os.getenv("TABLEAU_TOKEN_VALUE")
+ self._username: str | None = username or os.getenv("TABLEAU_USERNAME")
+ self._password: str | None = password or os.getenv("TABLEAU_PASSWORD")
+ self._allow_private_ips: bool = allow_private_ips or os.getenv(
+ "TABLEAU_ALLOW_PRIVATE_IPS", ""
+ ).lower() in ("1", "true", "yes")
+
+ # Internal server reference — None until connect() is called.
+ self._server: Any | None = None
+
+ self._validate_auth()
+
+ self.logger.debug(
+ "Tableau connector initialised: server_url=%s site_name=%s",
+ self.server_url or "<unset>",
+ self.site_name or "<default>",
+ )
+
+ # ------------------------------------------------------------------
+ # Internal helpers
+ # ------------------------------------------------------------------
+
+ def _validate_auth(self) -> None:
+ """Raise ValidationError if no usable authentication path is present."""
+ has_pat = bool(self._token_name and self._token_value)
+ has_password = bool(self._username and self._password)
+
+ if not self.server_url:
+ raise ValidationError(
+ "Tableau server_url is required. Pass it directly or set "
+ "TABLEAU_SERVER_URL in the environment."
+ )
+ validate_url_for_request(
+ self.server_url, allow_private_ips=self._allow_private_ips
+ )
+ if not (has_pat or has_password):
+ raise ValidationError(
+ "Tableau authentication requires either a Personal Access Token "
+ "(token_name + token_value) or username/password credentials. "
+ "Pass them directly or set TABLEAU_TOKEN_NAME + TABLEAU_TOKEN_VALUE "
+ "or TABLEAU_USERNAME + TABLEAU_PASSWORD in the environment."
+ )
+
+ # ------------------------------------------------------------------
+ # Public lifecycle methods
+ # ------------------------------------------------------------------
+
+ def connect(self) -> Any:
+ """Authenticate to Tableau and return the active server client.
+
+ Returns the existing client immediately if already connected.
+
+ Returns:
+ An authenticated ``tableauserverclient.Server`` instance.
+
+ Raises:
+ ProcessingError: If authentication fails.
+ """
+ if self._server is not None:
+ return self._server
+
+ try:
+ server = TSC.Server(self.server_url, use_server_version=True)
+
+ if self._token_name and self._token_value:
+ auth = TSC.PersonalAccessTokenAuth(
+ self._token_name,
+ self._token_value,
+ site_id=self.site_name,
+ )
+ else:
+ auth = TSC.TableauAuth(
+ self._username,
+ self._password,
+ site_id=self.site_name,
+ )
+
+ server.auth.sign_in(auth)
+ self._server = server
+ self.logger.debug("Tableau authentication successful.")
+ return self._server
+
+ except Exception as exc:
+ raise ProcessingError(
+ f"Failed to authenticate to Tableau: {type(exc).__name__}"
+ ) from exc
+
+ def disconnect(self) -> None:
+ """Sign out from Tableau and release the client."""
+ if self._server is not None:
+ try:
+ self._server.auth.sign_out()
+ except Exception: # noqa: BLE001
+ pass
+ self._server = None
+ self.logger.debug("Tableau connection closed.")
+
+ def test_connection(self) -> bool:
+ """Return True if a connection can be established, False otherwise."""
+ already_connected = self._server is not None
+ try:
+ server = self.connect()
+ return server is not None
+ except Exception: # noqa: BLE001
+ return False
+ finally:
+ if not already_connected:
+ self.disconnect()
+
+
+# ---------------------------------------------------------------------------
+# TableauIngestor
+# ---------------------------------------------------------------------------
+
+
+class TableauIngestor:
+ """Ingests workbook and datasource metadata from Tableau Server or Cloud.
+
+ Args:
+ server_url: Tableau Server or Cloud base URL.
+ site_name: Tableau site name (empty string for the default site).
+ token_name: Personal Access Token name.
+ token_value: Personal Access Token value.
+ username: Tableau username (alternative to PAT).
+ password: Tableau password (alternative to PAT).
+ config: Optional extra configuration.
+ **kwargs: Additional keyword arguments merged into ``config``.
+
+ Example::
+
+ import os
+ from semantica.ingest import TableauIngestor
+
+ with TableauIngestor(
+ server_url=os.getenv("TABLEAU_SERVER_URL"),
+ token_name=os.getenv("TABLEAU_TOKEN_NAME"),
+ token_value=os.getenv("TABLEAU_TOKEN_VALUE"),
+ ) as t:
+ data = t.ingest_workbooks()
+ docs = t.export_as_documents(data)
+ """
+
+ def __init__(
+ self,
+ server_url: str | None = None,
+ site_name: str | None = None,
+ token_name: str | None = None,
+ token_value: str | None = None,
+ username: str | None = None,
+ password: str | None = None,
+ allow_private_ips: bool = False,
+ config: dict[str, Any] | None = None,
+ connector: TableauConnector | None = None,
+ **kwargs: Any,
+ ) -> None:
+ self.logger = get_logger("tableau_ingestor")
+ self.config: dict[str, Any] = config or {}
+ self.config.update(kwargs)
+
+ if connector is not None:
+ self.connector = connector
+ else:
+ # Fallback to self.config if kwargs are empty
+ self.connector = TableauConnector(
+ server_url=server_url or self.config.get("server_url"),
+ site_name=site_name or self.config.get("site_name"),
+ token_name=token_name or self.config.get("token_name"),
+ token_value=token_value or self.config.get("token_value"),
+ username=username or self.config.get("username"),
+ password=password or self.config.get("password"),
+ allow_private_ips=allow_private_ips
+ or self.config.get("allow_private_ips", False),
+ )
+
+ self.progress_tracker = get_progress_tracker()
+ if not self.progress_tracker.enabled:
+ self.progress_tracker.enabled = True
+
+ self.logger.debug("Tableau ingestor initialised.")
+
+ # ------------------------------------------------------------------
+ # Context-manager support
+ # ------------------------------------------------------------------
+
+ def __enter__(self) -> Self:
+ self.connector.connect()
+ return self
+
+ def __exit__(
+ self,
+ exc_type: type[BaseException] | None,
+ exc_val: BaseException | None,
+ exc_tb: object,
+ ) -> None:
+ self.close()
+
+ # ------------------------------------------------------------------
+ # Lifecycle
+ # ------------------------------------------------------------------
+
+ def close(self) -> None:
+ """Sign out from Tableau and release the connection."""
+ self.connector.disconnect()
+
+ # ------------------------------------------------------------------
+ # Ingestion methods
+ # ------------------------------------------------------------------
+
+ def ingest_workbooks(
+ self,
+ project_name: str | None = None,
+ ) -> TableauData:
+ """Fetch metadata for all accessible workbooks.
+
+ Args:
+ project_name: Optional project filter. When provided, only
+ workbooks belonging to that project are returned.
+
+ Returns:
+ :class:`TableauData` with ``workbooks`` populated.
+
+ Raises:
+ ProcessingError: If the Tableau API call fails.
+ """
+ tracking_id = self.progress_tracker.start_tracking(
+ module="ingest",
+ submodule="TableauIngestor",
+ message="Fetching workbooks…",
+ )
+
+ try:
+ already_connected = self.connector._server is not None
+ server = self.connector.connect()
+
+ try:
+ self.progress_tracker.update_tracking(
+ tracking_id, message="Listing workbooks from Tableau…"
+ )
+
+ all_workbooks = list(TSC.Pager(server.workbooks))
+ workbooks = []
+ for wb in all_workbooks:
+ if project_name and wb.project_name != project_name:
+ continue
+ workbooks.append(
+ {
+ "id": wb.id,
+ "name": wb.name,
+ "project_name": wb.project_name,
+ "owner_id": wb.owner_id,
+ "content_url": wb.content_url,
+ "show_tabs": wb.show_tabs,
+ "size": wb.size,
+ "created_at": str(wb.created_at) if wb.created_at else None,
+ "updated_at": str(wb.updated_at) if wb.updated_at else None,
+ }
+ )
+
+ self.progress_tracker.stop_tracking(
+ tracking_id,
+ status="completed",
+ message=f"Fetched {len(workbooks)} workbooks",
+ )
+ self.logger.info(
+ "Workbook ingestion completed: %d workbook(s)",
+ len(workbooks),
+ )
+
+ return TableauData(
+ workbooks=workbooks,
+ server_url=self.connector.server_url,
+ site_name=self.connector.site_name,
+ row_count=len(workbooks),
+ metadata={"project_filter": project_name},
+ )
+
+ finally:
+ if not already_connected:
+ self.connector.disconnect()
+
+ except (ValidationError, ProcessingError):
+ self.progress_tracker.stop_tracking(
+ tracking_id, status="failed", message="Failed"
+ )
+ raise
+ except Exception as exc:
+ self.progress_tracker.stop_tracking(
+ tracking_id, status="failed", message=str(exc)
+ )
+ self.logger.error("Failed to ingest workbooks: %s", type(exc).__name__)
+ raise ProcessingError(
+ f"Failed to ingest Tableau workbooks: {type(exc).__name__}"
+ ) from exc
+
+ def ingest_datasources(
+ self,
+ project_name: str | None = None,
+ ) -> TableauData:
+ """Fetch metadata for all accessible published datasources.
+
+ Args:
+ project_name: Optional project filter.
+
+ Returns:
+ :class:`TableauData` with ``datasources`` populated.
+
+ Raises:
+ ProcessingError: If the Tableau API call fails.
+ """
+ tracking_id = self.progress_tracker.start_tracking(
+ module="ingest",
+ submodule="TableauIngestor",
+ message="Fetching datasources…",
+ )
+
+ try:
+ already_connected = self.connector._server is not None
+ server = self.connector.connect()
+
+ try:
+ self.progress_tracker.update_tracking(
+ tracking_id, message="Listing datasources from Tableau…"
+ )
+
+ all_datasources = list(TSC.Pager(server.datasources))
+ datasources = []
+ for ds in all_datasources:
+ if project_name and ds.project_name != project_name:
+ continue
+ datasources.append(
+ {
+ "id": ds.id,
+ "name": ds.name,
+ "project_name": ds.project_name,
+ "content_url": ds.content_url,
+ "type": ds.datasource_type,
+ "created_at": str(ds.created_at) if ds.created_at else None,
+ "updated_at": str(ds.updated_at) if ds.updated_at else None,
+ }
+ )
+
+ self.progress_tracker.stop_tracking(
+ tracking_id,
+ status="completed",
+ message=f"Fetched {len(datasources)} datasources",
+ )
+ self.logger.info(
+ "Datasource ingestion completed: %d datasource(s)", len(datasources)
+ )
+
+ return TableauData(
+ datasources=datasources,
+ server_url=self.connector.server_url,
+ site_name=self.connector.site_name,
+ row_count=len(datasources),
+ metadata={"project_filter": project_name},
+ )
+
+ finally:
+ if not already_connected:
+ self.connector.disconnect()
+
+ except (ValidationError, ProcessingError):
+ self.progress_tracker.stop_tracking(
+ tracking_id, status="failed", message="Failed"
+ )
+ raise
+ except Exception as exc:
+ self.progress_tracker.stop_tracking(
+ tracking_id, status="failed", message=str(exc)
+ )
+ self.logger.error("Failed to ingest datasources: %s", type(exc).__name__)
+ raise ProcessingError(
+ f"Failed to ingest Tableau datasources: {type(exc).__name__}"
+ ) from exc
+
+ def ingest_fields(self, datasource_id: str) -> TableauData:
+ """Fetch field-level metadata for a specific published datasource.
+
+ Calls the Tableau REST API datasource connections/fields endpoint to
+ enumerate fields, their data types, and descriptions.
+
+ Args:
+ datasource_id: The LUID of the published datasource.
+
+ Returns:
+ :class:`TableauData` with ``fields`` populated.
+
+ Raises:
+ ValidationError: If *datasource_id* is empty or not a string.
+ ProcessingError: If the Tableau API call fails.
+ """
+ if not datasource_id or not isinstance(datasource_id, str):
+ raise ValidationError("datasource_id must be a non-empty string.")
+
+ tracking_id = self.progress_tracker.start_tracking(
+ module="ingest",
+ submodule="TableauIngestor",
+ message=f"Fetching fields for datasource {datasource_id}…",
+ )
+
+ try:
+ already_connected = self.connector._server is not None
+ server = self.connector.connect()
+
+ try:
+ self.progress_tracker.update_tracking(
+ tracking_id, message="Querying datasource fields…"
+ )
+
+ ds_item = TSC.DatasourceItem(project_id="")
+ ds_item._id = datasource_id
+
+ # populate_fields() calls the Metadata API and attaches field
+ # metadata directly to ds_item.fields — connections.get() only
+ # returns database connection objects, which never carry field
+ # data, so it silently returned nothing for every datasource.
+ server.datasources.populate_fields(ds_item)
+ fields: list[dict[str, Any]] = []
+ for field_item in getattr(ds_item, "fields", []) or []:
+ fields.append(
+ {
+ "name": getattr(field_item, "name", None),
+ "type": getattr(field_item, "data_type", None),
+ "description": getattr(field_item, "description", None),
+ "connection_id": datasource_id,
+ }
+ )
+
+ self.progress_tracker.stop_tracking(
+ tracking_id,
+ status="completed",
+ message=f"Fetched {len(fields)} field(s)",
+ )
+ self.logger.info("Field ingestion completed: %d field(s)", len(fields))
+
+ return TableauData(
+ fields=fields,
+ server_url=self.connector.server_url,
+ site_name=self.connector.site_name,
+ row_count=len(fields),
+ metadata={"datasource_id": datasource_id},
+ )
+
+ finally:
+ if not already_connected:
+ self.connector.disconnect()
+
+ except (ValidationError, ProcessingError):
+ self.progress_tracker.stop_tracking(
+ tracking_id, status="failed", message="Failed"
+ )
+ raise
+ except Exception as exc:
+ self.progress_tracker.stop_tracking(
+ tracking_id, status="failed", message=str(exc)
+ )
+ self.logger.error(
+ "Failed to ingest fields for datasource %s: %s",
+ datasource_id,
+ type(exc).__name__,
+ )
+ raise ProcessingError(
+ f"Failed to ingest Tableau datasource fields for '{datasource_id}': "
+ f"{type(exc).__name__}"
+ ) from exc
+
+ def export_as_documents(
+ self,
+ data: TableauData,
+ ) -> list[dict[str, Any]]:
+ """Convert :class:`TableauData` to the Semantica document format.
+
+ Produces the ``{id, text, metadata}`` shape used by other ingestors,
+ making :class:`TableauData` directly usable with ``GraphBuilder``.
+
+ Workbooks and datasources are each converted to one document; fields
+ are each converted individually.
+
+ Args:
+ data: A :class:`TableauData` object returned by one of the
+ ingestion methods.
+
+ Returns:
+ List of document dictionaries::
+
+ [
+ {
+ "id": str,
+ "text": str,
+ "metadata": {
+ "source": "tableau",
+ "type": "workbook" | "datasource" | "field",
+ "server_url": ...,
+ "site_name": ...,
+ "row_data": {...},
+ },
+ },
+ ...
+ ]
+ """
+ documents: list[dict[str, Any]] = []
+
+ for wb in data.workbooks:
+ doc_id = str(wb.get("id", ""))
+ text_parts = [wb.get("name", ""), wb.get("project_name", "")]
+ documents.append(
+ {
+ "id": doc_id,
+ "text": " ".join(p for p in text_parts if p),
+ "metadata": {
+ "source": "tableau",
+ "type": "workbook",
+ "server_url": data.server_url,
+ "site_name": data.site_name,
+ "row_data": wb,
+ },
+ }
+ )
+
+ for ds in data.datasources:
+ doc_id = str(ds.get("id", ""))
+ text_parts = [ds.get("name", ""), ds.get("project_name", "")]
+ documents.append(
+ {
+ "id": doc_id,
+ "text": " ".join(p for p in text_parts if p),
+ "metadata": {
+ "source": "tableau",
+ "type": "datasource",
+ "server_url": data.server_url,
+ "site_name": data.site_name,
+ "row_data": ds,
+ },
+ }
+ )
+
+ for f in data.fields:
+ doc_id = f"{f.get('connection_id', '')}_{f.get('name', '')}"
+ text_parts = [f.get("name", ""), f.get("description", "")]
+ documents.append(
+ {
+ "id": doc_id,
+ "text": " ".join(p for p in text_parts if p),
+ "metadata": {
+ "source": "tableau",
+ "type": "field",
+ "server_url": data.server_url,
+ "site_name": data.site_name,
+ "row_data": f,
+ },
+ }
+ )
+
+ self.logger.debug(
+ "export_as_documents: exported %d document(s)", len(documents)
+ )
+ return documents
diff --git a/tests/test_tableau_ingestor.py b/tests/test_tableau_ingestor.py
new file mode 100644
index 00000000..d6488b75
--- /dev/null
+++ b/tests/test_tableau_ingestor.py
@@ -0,0 +1,468 @@
+"""
+Unit tests for TableauConnector and TableauIngestor.
+
+All Tableau API calls are mocked — no real Tableau Server or Cloud account
+is required.
+
+Test structure mirrors tests/test_salesforce_ingestor.py:
+ - autouse fixture mocks tableauserverclient when not installed
+ - @patch("...TABLEAU_AVAILABLE", True) guards every test that needs
+ the library to appear installed
+ - credentials are always supplied so secrets are never logged or
+ embedded in assertions
+"""
+
+from datetime import datetime
+from unittest.mock import MagicMock, patch
+
+import pytest
+
+# Check whether tableauserverclient is available in this environment.
+try:
+ import tableauserverclient # noqa: F401
+
+ TSC_LIB_AVAILABLE = True
+except ImportError:
+ TSC_LIB_AVAILABLE = False
+
+
+# ---------------------------------------------------------------------------
+# autouse fixture: mock tableauserverclient when not installed
+# ---------------------------------------------------------------------------
+
+
[email protected](autouse=True)
+def _mock_tsc_if_needed(request):
+ """If tableauserverclient is absent, inject a minimal stub for most tests."""
+ _is_import_behaviour_test = (
+ getattr(request.node.cls, "__name__", "") == "TestImportBehaviourWithoutLib"
+ )
+
+ if not TSC_LIB_AVAILABLE and not _is_import_behaviour_test:
+ tsc_mod = MagicMock()
+
+ with patch.dict(
+ "sys.modules",
+ {"tableauserverclient": tsc_mod},
+ ):
+ # Clear any cached lazy exports from semantica.ingest
+ import semantica.ingest as _ingest_mod
+
+ for _name in ("TableauIngestor", "TableauData", "TableauConnector"):
+ _ingest_mod.__dict__.pop(_name, None)
+
+ yield
+ # Cleanup
+ for _name in ("TableauIngestor", "TableauData", "TableauConnector"):
+ _ingest_mod.__dict__.pop(_name, None)
+ else:
+ yield
+
+
+# ---------------------------------------------------------------------------
+# Helpers
+# ---------------------------------------------------------------------------
+
+
+def _make_mock_workbook(wb_id="wb-001", name="Sales Dashboard", project_name="Finance"):
+ wb = MagicMock()
+ wb.id = wb_id
+ wb.name = name
+ wb.project_name = project_name
+ wb.owner_id = "owner-001"
+ wb.content_url = "SalesDashboard"
+ wb.show_tabs = True
+ wb.size = 1
+ wb.created_at = datetime(2026, 1, 1)
+ wb.updated_at = datetime(2026, 6, 1)
+ return wb
+
+
+def _make_mock_datasource(ds_id="ds-001", name="Orders DS", project_name="Finance"):
+ ds = MagicMock()
+ ds.id = ds_id
+ ds.name = name
+ ds.project_name = project_name
+ ds.content_url = "OrdersDS"
+ ds.datasource_type = "postgres"
+ ds.created_at = datetime(2026, 1, 1)
+ ds.updated_at = datetime(2026, 6, 1)
+ return ds
+
+
+# ---------------------------------------------------------------------------
+# Import behaviour (without lib)
+# ---------------------------------------------------------------------------
+
+
+class TestImportBehaviourWithoutLib:
+ """Verify that a clear ImportError is raised when TSC is not installed."""
+
+ def test_tableau_ingestor_raises_import_error_without_tsc(self):
+ with patch(
+ "semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", False
+ ):
+ with pytest.raises(ImportError, match="tableauserverclient"):
+ from semantica.ingest.tableau_ingestor import TableauConnector
+
+ TableauConnector(
+ server_url="https://tableau.example.com",
+ token_name="t",
+ token_value="v",
+ )
+
+
+# ---------------------------------------------------------------------------
+# TableauConnector
+# ---------------------------------------------------------------------------
+
+
+class TestTableauConnector:
+ """Unit tests for TableauConnector authentication and lifecycle."""
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ def test_init_with_pat_credentials(self, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauConnector
+
+ connector = TableauConnector(
+ server_url="https://tableau.example.com",
+ site_name="mysite",
+ token_name="my-token",
+ token_value="secret-value",
+ )
+ assert connector.server_url == "https://tableau.example.com"
+ assert connector.site_name == "mysite"
+ assert connector._server is None
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ def test_init_raises_without_server_url(self):
+ from semantica.ingest.tableau_ingestor import TableauConnector
+ from semantica.utils.exceptions import ValidationError
+
+ with pytest.raises(ValidationError, match="server_url"):
+ TableauConnector(token_name="t", token_value="v")
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ def test_init_raises_without_credentials(self, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauConnector
+ from semantica.utils.exceptions import ValidationError
+
+ with pytest.raises(ValidationError, match="authentication"):
+ TableauConnector(server_url="https://tableau.example.com")
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ def test_connect_uses_pat_auth(self, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauConnector
+ import semantica.ingest.tableau_ingestor as _mod
+
+ mock_server = MagicMock()
+ mock_tsc = MagicMock()
+ mock_tsc.Server.return_value = mock_server
+ mock_tsc.PersonalAccessTokenAuth.return_value = MagicMock()
+
+ with patch.object(_mod, "TSC", mock_tsc):
+ connector = TableauConnector(
+ server_url="https://tableau.example.com",
+ token_name="my-token",
+ token_value="secret-value",
+ )
+ result = connector.connect()
+
+ assert result is mock_server
+ mock_tsc.PersonalAccessTokenAuth.assert_called_once()
+ mock_server.auth.sign_in.assert_called_once()
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ def test_connect_returns_existing_client(self, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauConnector
+
+ connector = TableauConnector(
+ server_url="https://tableau.example.com",
+ token_name="t",
+ token_value="v",
+ )
+ mock_server = MagicMock()
+ connector._server = mock_server # pre-set
+ result = connector.connect()
+ assert result is mock_server
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ def test_disconnect_clears_server(self, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauConnector
+
+ connector = TableauConnector(
+ server_url="https://tableau.example.com",
+ token_name="t",
+ token_value="v",
+ )
+ connector._server = MagicMock()
+ connector.disconnect()
+ assert connector._server is None
+
+
+# ---------------------------------------------------------------------------
+# TableauIngestor.ingest_workbooks
+# ---------------------------------------------------------------------------
+
+
+class TestTableauIngestorWorkbooks:
+ """Unit tests for TableauIngestor.ingest_workbooks."""
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ @patch("semantica.ingest.tableau_ingestor.TSC")
+ def test_ingest_workbooks_returns_tableau_data(self, mock_tsc, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauData, TableauIngestor
+
+ mock_wb = _make_mock_workbook()
+ mock_server = MagicMock()
+ mock_tsc.Pager.return_value = [mock_wb]
+
+ ingestor = TableauIngestor(
+ server_url="https://tableau.example.com",
+ token_name="t",
+ token_value="v",
+ )
+ ingestor.connector._server = mock_server
+
+ data = ingestor.ingest_workbooks()
+
+ assert isinstance(data, TableauData)
+ assert len(data.workbooks) == 1
+ assert data.workbooks[0]["id"] == "wb-001"
+ assert data.workbooks[0]["name"] == "Sales Dashboard"
+ assert data.row_count == 1
+ assert data.server_url == "https://tableau.example.com"
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ @patch("semantica.ingest.tableau_ingestor.TSC")
+ def test_ingest_workbooks_filters_by_project(self, mock_tsc, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauIngestor
+
+ wb_finance = _make_mock_workbook(wb_id="wb-001", project_name="Finance")
+ wb_sales = _make_mock_workbook(wb_id="wb-002", project_name="Sales")
+ mock_server = MagicMock()
+ mock_tsc.Pager.return_value = [wb_finance, wb_sales]
+
+ ingestor = TableauIngestor(
+ server_url="https://tableau.example.com",
+ token_name="t",
+ token_value="v",
+ )
+ ingestor.connector._server = mock_server
+
+ data = ingestor.ingest_workbooks(project_name="Finance")
+ assert len(data.workbooks) == 1
+ assert data.workbooks[0]["id"] == "wb-001"
+
+
+# ---------------------------------------------------------------------------
+# TableauIngestor.ingest_datasources
+# ---------------------------------------------------------------------------
+
+
+class TestTableauIngestorDatasources:
+ """Unit tests for TableauIngestor.ingest_datasources."""
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ @patch("semantica.ingest.tableau_ingestor.TSC")
+ def test_ingest_datasources_returns_tableau_data(self, mock_tsc, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauData, TableauIngestor
+
+ mock_ds = _make_mock_datasource()
+ mock_server = MagicMock()
+ mock_tsc.Pager.return_value = [mock_ds]
+
+ ingestor = TableauIngestor(
+ server_url="https://tableau.example.com",
+ token_name="t",
+ token_value="v",
+ )
+ ingestor.connector._server = mock_server
+
+ data = ingestor.ingest_datasources()
+
+ assert isinstance(data, TableauData)
+ assert len(data.datasources) == 1
+ assert data.datasources[0]["id"] == "ds-001"
+ assert data.datasources[0]["name"] == "Orders DS"
+
+
+# ---------------------------------------------------------------------------
+# TableauIngestor.ingest_fields
+# ---------------------------------------------------------------------------
+
+
+class TestTableauIngestorFields:
+ """Unit tests for TableauIngestor.ingest_fields."""
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ @patch("semantica.ingest.tableau_ingestor.TSC")
+ def test_ingest_fields_returns_tableau_data(self, mock_tsc, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauData, TableauIngestor
+
+ mock_field = MagicMock()
+ mock_field.name = "order_id"
+ mock_field.data_type = "integer"
+ mock_field.description = "Unique order identifier"
+
+ mock_ds_item = MagicMock()
+ mock_ds_item.fields = [mock_field]
+ mock_tsc.DatasourceItem.return_value = mock_ds_item
+
+ mock_server = MagicMock()
+
+ def _populate_fields(ds_item):
+ ds_item.fields = [mock_field]
+
+ mock_server.datasources.populate_fields.side_effect = _populate_fields
+
+ ingestor = TableauIngestor(
+ server_url="https://tableau.example.com",
+ token_name="t",
+ token_value="v",
+ )
+ ingestor.connector._server = mock_server
+
+ data = ingestor.ingest_fields("ds-001")
+
+ assert isinstance(data, TableauData)
+ assert len(data.fields) == 1
+ assert data.fields[0]["name"] == "order_id"
+ assert data.fields[0]["type"] == "integer"
+ assert data.fields[0]["description"] == "Unique order identifier"
+ assert data.fields[0]["connection_id"] == "ds-001"
+ mock_server.datasources.populate_fields.assert_called_once()
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ def test_ingest_fields_raises_on_empty_datasource_id(self, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauIngestor
+ from semantica.utils.exceptions import ValidationError
+
+ ingestor = TableauIngestor(
+ server_url="https://tableau.example.com",
+ token_name="t",
+ token_value="v",
+ )
+ with pytest.raises(ValidationError, match="datasource_id"):
+ ingestor.ingest_fields("")
+
+
+# ---------------------------------------------------------------------------
+# TableauIngestor.export_as_documents
+# ---------------------------------------------------------------------------
+
+
+class TestTableauIngestorExportDocuments:
+ """Unit tests for TableauIngestor.export_as_documents."""
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ def test_export_workbooks_document_shape(self, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauData, TableauIngestor
+
+ data = TableauData(
+ workbooks=[
+ {
+ "id": "wb-001",
+ "name": "Sales Dashboard",
+ "project_name": "Finance",
+ }
+ ],
+ server_url="https://tableau.example.com",
+ site_name="mysite",
+ row_count=1,
+ )
+
+ ingestor = TableauIngestor(
+ server_url="https://tableau.example.com",
+ token_name="t",
+ token_value="v",
+ )
+ docs = ingestor.export_as_documents(data)
+
+ assert len(docs) == 1
+ doc = docs[0]
+ assert doc["id"] == "wb-001"
+ assert "Sales Dashboard" in doc["text"]
+ assert doc["metadata"]["source"] == "tableau"
+ assert doc["metadata"]["type"] == "workbook"
+ assert doc["metadata"]["server_url"] == "https://tableau.example.com"
+ assert doc["metadata"]["site_name"] == "mysite"
+ assert "row_data" in doc["metadata"]
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ def test_export_datasources_document_shape(self, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauData, TableauIngestor
+
+ data = TableauData(
+ datasources=[
+ {"id": "ds-001", "name": "Orders DS", "project_name": "Finance"}
+ ],
+ server_url="https://tableau.example.com",
+ site_name="",
+ row_count=1,
+ )
+ ingestor = TableauIngestor(
+ server_url="https://tableau.example.com",
+ token_name="t",
+ token_value="v",
+ )
+ docs = ingestor.export_as_documents(data)
+
+ assert len(docs) == 1
+ assert docs[0]["metadata"]["type"] == "datasource"
+ assert docs[0]["id"] == "ds-001"
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ def test_export_fields_document_shape(self, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauData, TableauIngestor
+
+ data = TableauData(
+ fields=[
+ {
+ "name": "order_id",
+ "type": "integer",
+ "description": "Unique order identifier",
+ "connection_id": "conn-1",
+ }
+ ],
+ server_url="https://tableau.example.com",
+ site_name="",
+ row_count=1,
+ )
+ ingestor = TableauIngestor(
+ server_url="https://tableau.example.com",
+ token_name="t",
+ token_value="v",
+ )
+ docs = ingestor.export_as_documents(data)
+
+ assert len(docs) == 1
+ assert docs[0]["metadata"]["type"] == "field"
+ assert "order_id" in docs[0]["text"]
+
+ @patch("semantica.ingest.tableau_ingestor.TABLEAU_AVAILABLE", True)
+ @patch("semantica.ingest.tableau_ingestor.validate_url_for_request")
+ def test_export_empty_data_returns_empty_list(self, mock_validate):
+ from semantica.ingest.tableau_ingestor import TableauData, TableauIngestor
+
+ data = TableauData(server_url="https://tableau.example.com", row_count=0)
+ ingestor = TableauIngestor(
+ server_url="https://tableau.example.com",
+ token_name="t",
+ token_value="v",
+ )
+ docs = ingestor.export_as_documents(data)
+ assert docs == []
diff --git a/uv.lock b/uv.lock
index 09a1d2ce..382a695b 100644
--- a/uv.lock
+++ b/uv.lock
@@ -8456,6 +8456,9 @@ ingest-sap = [
ingest-servicenow = [
{ name = "requests" },
]
+ingest-tableau = [
+ { name = "tableauserverclient" },
+]
langchain = [
{ name = "langchain-core" },
]
@@ -8730,6 +8733,7 @@ requires-dist = [
{ name = "streamlit", marker = "extra == 'explorer-lite'", specifier = ">=1.25.0" },
{ name = "streamlit-agraph", marker = "extra == 'explorer-lite'", specifier = ">=0.0.45" },
{ name = "structlog", specifier = ">=22.1.0" },
+ { name = "tableauserverclient", marker = "extra == 'ingest-tableau'", specifier = ">=0.25" },
{ name = "tiktoken", marker = "extra == 'split-tiktoken'", specifier = ">=0.5.0" },
{ name = "tokenizers", marker = "extra == 'embeddings-local'", specifier = ">=0.15.0" },
{ name = "toml", specifier = ">=0.10.0" },
@@ -8743,7 +8747,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-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", "nlp-langdetect", "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-tableau", "ingest-sap", "ingest-servicenow", "ingest-airflow", "ingest-git", "db-all", "models-huggingface", "embeddings-local", "nlp-spacy", "nlp-langdetect", "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 = [
@@ -9332,6 +9336,22 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/a2/09/77d55d46fd61b4a135c444fc97158ef34a095e5681d0a6c10b75bf356191/sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5", size = 6299353, upload-time = "2025-04-27T18:04:59.103Z" },
]
+[[package]]
+name = "tableauserverclient"
+version = "0.41"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "defusedxml" },
+ { name = "packaging" },
+ { name = "requests" },
+ { name = "typing-extensions" },
+ { name = "urllib3" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/6e/28/7a2263194b8aca4efb77705c1255370c0cb2dc94b3b62ed16e01d659a028/tableauserverclient-0.41.tar.gz", hash = "sha256:e491975b9f0e19467fb6423b814511a9f549c22bce78c868079a25fbe81a0e95", size = 639331, upload-time = "2026-06-25T23:41:19.292Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/8b/b6/3a91c755bf64c07f29a50bad69006a98606da122491894e047a475c81979/tableauserverclient-0.41-py3-none-any.whl", hash = "sha256:c1d5bed75d22899847f44c7ee0fdf9b12cf8f4a855c49d6100f2f6c6ea4fe2a3", size = 214856, upload-time = "2026-06-25T23:41:18.095Z" },
+]
+
[[package]]
name = "tabulate"
version = "0.10.0"