Parallel Tools: CLI and data enrichment utilities for the Parallel API
Project description
Parallel-Web-Tools
CLI and data enrichment utilities for the Parallel API.
Note: This package provides the
parallel-clicommand-line tool and data enrichment utilities in theparallel-web-toolspackage. It depends onparallel-web, the official Parallel Python SDK, but does not contain it. Installparallel-webseparately if you need direct SDK access.
Features
- CLI for Humans & AI Agents - Works interactively or fully via command-line arguments
- Web Search - AI-powered search with domain filtering and date ranges
- Content Extraction - Extract clean markdown from any URL
- Data Enrichment - Enrich CSV, DuckDB, and BigQuery data with AI
- AI-Assisted Planning - Use natural language to define what data you want
- Multiple Integrations - Polars, DuckDB, Snowflake, BigQuery, Spark
Installation
Standalone CLI (Recommended)
Install the standalone parallel-cli binary for search, extract, enrichment, and deep research (no Python required):
curl -fsSL https://raw.githubusercontent.com/parallel-web/parallel-web-tools/main/install-cli.sh | bash
This automatically detects your platform (macOS/Linux, x64/arm64) and installs to ~/.local/bin.
Note: The standalone binary includes core CLI features. For deployment commands (
enrich deploy), use pip:pip install parallel-web-tools[snowflake]or[bigquery].
Python Package
For programmatic usage or data enrichment integrations:
# Full install with CLI and all connectors
pip install parallel-web-tools[all]
# Library only (minimal dependencies)
pip install parallel-web-tools
# With specific connectors
pip install parallel-web-tools[cli] # CLI only
pip install parallel-web-tools[polars] # Polars DataFrame
pip install parallel-web-tools[duckdb] # DuckDB
pip install parallel-web-tools[bigquery] # BigQuery
pip install parallel-web-tools[spark] # Apache Spark
CLI Overview
parallel-cli
├── auth # Check authentication status
├── login # OAuth login (or use PARALLEL_API_KEY env var)
├── logout # Remove stored credentials
├── search # Web search
├── extract # Extract content from URLs
└── enrich # Data enrichment commands
├── run # Run enrichment
├── plan # Create YAML config
├── suggest # AI suggests output columns
└── deploy # Deploy to cloud systems (requires pip install)
Quick Start
1. Authenticate
# Interactive OAuth login
parallel-cli login
# Or set environment variable
export PARALLEL_API_KEY=your_api_key
2. Search the Web
# Natural language search
parallel-cli search "What is Anthropic's latest AI model?" --json
# Keyword search with filters
parallel-cli search -q "bitcoin price" --after-date 2024-01-01 --json
# Search specific domains
parallel-cli search "SEC filings for Apple" --include-domains sec.gov --json
3. Extract Content from URLs
# Extract content as markdown
parallel-cli extract https://example.com --json
# Extract with a specific focus
parallel-cli extract https://company.com --objective "Find pricing info" --json
# Get full page content
parallel-cli extract https://example.com --full-content --json
4. Enrich Data
# Let AI suggest what columns to add
parallel-cli enrich suggest "Find the CEO and annual revenue" --json
# Create a config file (interactive)
parallel-cli enrich plan -o config.yaml
# Create a config file (non-interactive, for AI agents)
parallel-cli enrich plan -o config.yaml \
--source-type csv \
--source companies.csv \
--target enriched.csv \
--source-columns '[{"name": "company", "description": "Company name"}]' \
--intent "Find the CEO and annual revenue"
# Run enrichment from config
parallel-cli enrich run config.yaml
# Run enrichment directly (no config file needed)
parallel-cli enrich run \
--source-type csv \
--source companies.csv \
--target enriched.csv \
--source-columns '[{"name": "company", "description": "Company name"}]' \
--intent "Find the CEO and annual revenue"
5. Deploy to Cloud Systems
# Deploy to BigQuery for SQL-native enrichment
parallel-cli enrich deploy --system bigquery --project my-gcp-project
Non-Interactive Mode (for AI Agents & Scripts)
All commands support --json output and can be fully controlled via CLI arguments:
# Search with JSON output
parallel-cli search "query" --json
# Extract with JSON output
parallel-cli extract https://url.com --json
# Suggest columns with JSON output
parallel-cli enrich suggest "Find CEO" --json
# Plan without prompts (provide all args)
parallel-cli enrich plan -o config.yaml \
--source-type csv \
--source input.csv \
--target output.csv \
--source-columns '[{"name": "company", "description": "Company name"}]' \
--enriched-columns '[{"name": "ceo", "description": "CEO name"}]'
# Or use --intent to let AI determine the columns
parallel-cli enrich plan -o config.yaml \
--source-type csv \
--source input.csv \
--target output.csv \
--source-columns '[{"name": "company", "description": "Company name"}]' \
--intent "Find CEO, revenue, and headquarters"
Integrations
| Integration | Type | Install | Documentation |
|---|---|---|---|
| Polars | Python DataFrame | pip install parallel-web-tools[polars] |
Setup Guide |
| DuckDB | SQL + Python | pip install parallel-web-tools[duckdb] |
Setup Guide |
| Snowflake | SQL UDF | pip install parallel-web-tools[snowflake] |
Setup Guide |
| BigQuery | Cloud Function | pip install parallel-web-tools[bigquery] |
Setup Guide |
| Spark | SQL UDF | pip install parallel-web-tools[spark] |
Demo Notebook |
Quick Integration Examples
Polars:
import polars as pl
from parallel_web_tools.integrations.polars import parallel_enrich
df = pl.DataFrame({"company": ["Google", "Microsoft"]})
result = parallel_enrich(
df,
input_columns={"company_name": "company"},
output_columns=["CEO name", "Founding year"],
)
print(result.result)
DuckDB:
import duckdb
from parallel_web_tools.integrations.duckdb import enrich_table
conn = duckdb.connect()
conn.execute("CREATE TABLE companies AS SELECT 'Google' as name")
result = enrich_table(
conn,
source_table="companies",
input_columns={"company_name": "name"},
output_columns=["CEO name", "Founding year"],
)
print(result.result.fetchdf())
Programmatic Usage
from parallel_web_tools import run_enrichment, run_enrichment_from_dict
# From YAML file
run_enrichment("config.yaml")
# From dictionary
run_enrichment_from_dict({
"source": "data.csv",
"target": "enriched.csv",
"source_type": "csv",
"source_columns": [{"name": "company", "description": "Company name"}],
"enriched_columns": [{"name": "ceo", "description": "CEO name"}]
})
YAML Configuration Format
source: input.csv
target: output.csv
source_type: csv # csv, duckdb, or bigquery
processor: core-fast # lite, base, core, pro, ultra (add -fast for speed)
source_columns:
- name: company_name
description: The name of the company
enriched_columns:
- name: ceo
description: The CEO of the company
type: str # str, int, float, bool
- name: revenue
description: Annual revenue in USD
type: float
Environment Variables
| Variable | Description |
|---|---|
PARALLEL_API_KEY |
API key for authentication (alternative to parallel-cli login) |
DUCKDB_FILE |
Default DuckDB file path |
BIGQUERY_PROJECT |
Default BigQuery project ID |
Related Packages
parallel-web- Official Parallel Python SDK (this package depends on it)
Development
git clone https://github.com/parallel-web/parallel-web-tools.git
cd parallel-web-tools
uv sync --all-extras
uv run pytest tests/ -v
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parallel_web_tools-0.0.6.tar.gz.
File metadata
- Download URL: parallel_web_tools-0.0.6.tar.gz
- Upload date:
- Size: 51.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bf5acedf8b8322fafd794814134d21fd35f133b3fc07c2c69e8906604dc7d25
|
|
| MD5 |
8b9049cf48c7fe7b45b3bc42262d4fc2
|
|
| BLAKE2b-256 |
fb5b88a05cafc49082ae35420f4b2c0a01c44bcc6cae7929b35b9180589e82d8
|
Provenance
The following attestation bundles were made for parallel_web_tools-0.0.6.tar.gz:
Publisher:
publish.yml on parallel-web/parallel-web-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parallel_web_tools-0.0.6.tar.gz -
Subject digest:
5bf5acedf8b8322fafd794814134d21fd35f133b3fc07c2c69e8906604dc7d25 - Sigstore transparency entry: 856214598
- Sigstore integration time:
-
Permalink:
parallel-web/parallel-web-tools@02af1f341f91d1992e060c2b6e7fa8b1b1dcec2a -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/parallel-web
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@02af1f341f91d1992e060c2b6e7fa8b1b1dcec2a -
Trigger Event:
release
-
Statement type:
File details
Details for the file parallel_web_tools-0.0.6-py3-none-any.whl.
File metadata
- Download URL: parallel_web_tools-0.0.6-py3-none-any.whl
- Upload date:
- Size: 69.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84760da49ac131aa924573ef3e74921d3b7f9d2ee7e0f23d5ee2a90d2e1a63a2
|
|
| MD5 |
b121c6a840a5e35625afa88bb5f60093
|
|
| BLAKE2b-256 |
0a752925217216cf1f3b57abf5352e37562a8323187879c228e6f8ba3aca2596
|
Provenance
The following attestation bundles were made for parallel_web_tools-0.0.6-py3-none-any.whl:
Publisher:
publish.yml on parallel-web/parallel-web-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parallel_web_tools-0.0.6-py3-none-any.whl -
Subject digest:
84760da49ac131aa924573ef3e74921d3b7f9d2ee7e0f23d5ee2a90d2e1a63a2 - Sigstore transparency entry: 856214661
- Sigstore integration time:
-
Permalink:
parallel-web/parallel-web-tools@02af1f341f91d1992e060c2b6e7fa8b1b1dcec2a -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/parallel-web
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@02af1f341f91d1992e060c2b6e7fa8b1b1dcec2a -
Trigger Event:
release
-
Statement type: