PPLX Research
A monolithic, versatile research CLI powered by Perplexity's Sonar API. Features auto-classification, iterative gap analysis, multi-perspective synthesis, and comprehensive output formats.
Why This Exists
Other Perplexity wrappers are simple API clients. PPLX Research is a research orchestration layer that adds:
- Auto-classification: Analyzes your query and picks the optimal mode/depth/sources
- Gap analysis: Iteratively identifies and fills knowledge gaps (deep mode)
- Multi-perspective synthesis: Gathers insights from academic, news, forums, docs, and code sources
- Full API coverage: All Perplexity features including
search_domain_filter,reasoning_effort,return_images, etc.
Installation
pip install pplx-research
Quick Start
# Set your API key
export PERPLEXITY_API_KEY="pplx-..."
# Basic research
pplx-research "what is quantum computing"
# Let AI pick the best approach
pplx-research "React vs Vue performance" --auto
# Deep academic research
pplx-research "transformer architecture" --mode deep --sources academic --depth 4
# Multi-perspective analysis
pplx-research "microservices pros and cons" --mode synthesis
Modes
| Mode | Description | Best For |
|---|---|---|
quick |
Single query, fast response | Facts, definitions, current events |
deep |
Iterative gap analysis | Complex topics, research reports |
synthesis |
Multi-source perspectives | Comparisons, debates, pros/cons |
Options
pplx-research <query> [options]
Modes:
-m, --mode {quick,deep,synthesis} Research mode (default: quick)
Scope:
-s, --site DOMAIN Constrain to specific domain
-e, --exclude DOMAIN Exclude domain (can use multiple times)
-t, --time-range {hour,day,week,month,year}
-r, --region CODE Country/region code (US, UK, JP)
--sources TYPES academic,news,docs,forums,code,all
Output:
-f, --format {markdown,json,summary,plain}
-d, --depth 1-5 Iteration depth (default: 3)
Automation:
-a, --auto Auto-classify query
-o, --output PATH Save to file
-q, --quiet Suppress progress
Python API
from pplx_research import ResearchEngine, PerplexitySDK
# High-level research
engine = ResearchEngine(query="quantum computing", mode="deep", sources=["academic"])
report = engine.run()
# Low-level SDK
sdk = PerplexitySDK()
result = sdk.chat("Hello", model="sonar-pro")
License
MIT License - see LICENSE for details.
Release files for pplx-research 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pplx_research-1.0.2.tar.gz | 18.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pplx_research-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.2 kB
Release files / pplx_research-1.0.2.tar.gz
| Download URL | pplx_research-1.0.2.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0db002481a9d5dceaae1905d769756538a0498984652ad68276c09c42dc2609d
|
|
BLAKE2b-256 checksum How to use checksums |
b2152edb704d98f9fca18b20cd41b542c8bf24815d8b12821ecd643ae831d531
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / pplx_research-1.0.2-py3-none-any.whl
| Download URL | pplx_research-1.0.2-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4494ca08149bce93c1563634fa2db79bb1b282be3530548fdcc21fcbb2e6657a
|
|
BLAKE2b-256 checksum How to use checksums |
9d3d69ce6cc3576f4d4d444c77183f1083db6e33fc77b7bee73ab9ee57d7cce0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|