Installation
Basic installation
Section titled “Basic installation”pip install dataspoc-lensThis installs the core package with DuckDB, the CLI, interactive shell, and SQL transforms.
Requirements
Section titled “Requirements”- Python 3.10+
- DuckDB is installed automatically as a dependency
Optional extras
Section titled “Optional extras”Install extras for additional capabilities:
# Cloud storage backendspip install dataspoc-lens[s3] # Amazon S3 support (s3fs)pip install dataspoc-lens[gcs] # Google Cloud Storage support (gcsfs)pip install dataspoc-lens[azure] # Azure Blob Storage support (adlfs)
# Notebookspip install dataspoc-lens[jupyter] # JupyterLab with SQL magicpip install dataspoc-lens[marimo] # Marimo reactive notebooks
# AI and agentspip install dataspoc-lens[ai] # AI natural language queries (Anthropic, OpenAI)pip install dataspoc-lens[mcp] # MCP server for AI agent integration
# Everythingpip install dataspoc-lens[all] # All extras includedExtras reference
Section titled “Extras reference”| Extra | What it adds | Use case |
|---|---|---|
[s3] | s3fs | Query Parquet files in Amazon S3 |
[gcs] | gcsfs | Query Parquet files in Google Cloud Storage |
[azure] | adlfs | Query Parquet files in Azure Blob Storage |
[jupyter] | jupyterlab, jupysql, duckdb-engine, ipykernel, numpy, pandas | Interactive notebooks with %%sql magic |
[marimo] | marimo, numpy, pandas | Reactive notebooks with Marimo |
[ai] | anthropic, openai | Natural language queries via LLM |
[mcp] | mcp | Model Context Protocol server for AI agents |
[all] | All of the above | Full installation |
Using uv
Section titled “Using uv”If you prefer uv as your package manager:
uv pip install dataspoc-lensuv pip install dataspoc-lens[all]Verify installation
Section titled “Verify installation”dataspoc-lens --versiondataspoc-lens 0.2.0