Implementation:Ucbepic Docetl Pip Install Docetl
Appearance
| Knowledge Sources | |
|---|---|
| Domains | DevOps, Environment_Setup |
| Last Updated | 2026-02-08 01:40 GMT |
Overview
Concrete installation commands for the DocETL Python package and its optional extras.
Description
DocETL is distributed as a Python package installable via pip. The core package includes litellm, pydantic, pandas, rich, diskcache, pyrate-limiter, and tiktoken. Optional extras add file parsing (docling, pdfplumber, python-docx) or server capabilities (fastapi, uvicorn).
Usage
Install DocETL before using the CLI (docetl run, docetl build) or the Python API (from docetl import Pipeline). Set LLM API keys as environment variables.
Code Reference
Source Location
- Repository: docetl
- File: pyproject.toml
- Lines: L1-151
Signature
# Core installation
pip install docetl
# With file parsing support
pip install "docetl[parsing]"
# With playground server
pip install "docetl[server]"
Import
from docetl import Pipeline, Dataset, MapOp, ReduceOp, PipelineStep, PipelineOutput
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| Python environment | Python 3.10+ | Yes | Compatible Python runtime |
| OPENAI_API_KEY | env var | Conditional | Required if using OpenAI models |
| ANTHROPIC_API_KEY | env var | Conditional | Required if using Anthropic models |
Outputs
| Name | Type | Description |
|---|---|---|
| docetl package | Python package | Installed CLI and Python API |
| docetl CLI | executable | Commands: docetl run, docetl build, docetl clear-cache |
Usage Examples
# Install and configure
pip install docetl
export OPENAI_API_KEY="sk-..."
# Verify installation
docetl --help
# Run a pipeline
docetl run pipeline.yaml
Related Pages
Implements Principle
Requires Environment
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment