Read-only CLI for a research data API (wiki, graph, memos, raw, coverage, eval). Self-documenting; an agent can drive it without a skill.
Project description
data-cli
CLI for a research data API. Gives an agent (or you) access to every research surface — memos, company wiki, knowledge graph, raw primary-source files, coverage, and eval — to analyze a stock, and can trigger research (gather a ticker, refetch a source, comment on a memo) through one self-documenting tool.
The key grants read access to every surface plus a small set of action POSTs (gather/new symbol, re-run a phase, refetch/repair/fetch-missing a source, refresh people radar, comment on a memo). It cannot upload externally-built content, edit events, run model bakeoffs/simulations, or run grounded chat — those return 403. It is an actions API, not a content writer.
This tool talks to a private data API. You need two values, provided to you separately: the API base URL and a key. Without both, the tool does nothing.
Install
pip install cpe-data-cli
# or, isolated:
pipx install cpe-data-cli
Upgrade
pip install --upgrade cpe-data-cli
# or, with pipx:
pipx upgrade cpe-data-cli
Configure
export CPE_API_BASE=<base url you were given>
export CPE_API_KEY=<key you were given>
data-cli auth check # verify base + key + connectivity
Both are required. The tool makes no network call until both are set.
Version & completion
data-cli --version # or -V
data-cli --install-completion # install shell completion (bash/zsh/fish)
Analyze a stock
Read the synthesized dossier, then pull the specific primary-source figures you want to cite. Every command prints the next commands to run.
data-cli memo get NVDA # START HERE: the full verified dossier (markdown)
data-cli wiki get NVDA # synthesized company page (business, segments, model)
data-cli ticker NVDA # one-line orientation (latest run, coverage%, raw count)
data-cli raw NVDA source_map.json # provenance map: read FIRST to find Tier-1 files
data-cli raw NVDA latest_10k.json # a specific primary source (10-K, financials, ...)
data-cli graph ticker NVDA # supply/customer/competitor/segment web
More surfaces:
data-cli memo list NVDA # other runs/dossiers for the ticker
data-cli wiki list # all covered companies
data-cli raw NVDA # list every primary-source file
data-cli coverage NVDA # source-completeness (check before quoting a number)
data-cli eval NVDA # quality verdict + contradiction tally
data-cli graph search "TSMC" # find nodes by NAME (companies/people, not concepts)
data-cli graph all # the full knowledge graph
data-cli guide # this workflow, any time
Read the trust layer as a citation check, not the story: build the analysis from the memo + Tier-1 sources, glance at coverage/eval before quoting a specific number, and don't lead with contradicted claims.
Trigger research
These spend real compute; use them deliberately.
data-cli gather NVDA # gather/refresh a ticker (works for a new symbol too)
data-cli gather NVDA --model opus # pick a model
data-cli gather NVDA --phase analyze # re-run a single pipeline phase
data-cli refetch NVDA financials # refetch one source category
data-cli fetch-missing NVDA # fetch all missing sources
data-cli repair <source_name> # repair a specific source
data-cli people-radar refresh # refresh the people radar
data-cli comment <RUN_ID> --section <s> --issue-type <t> --note "..." # comment on a memo
Output
- Markdown-native surfaces (
wiki,memo, raw.md) print markdown by default.coverageandevalprint a human-readable summary by default (the trust layer, scannable at a glance); add--jsonfor the full payload. Other structured surfaces (ticker,graph, lists) print JSON. --jsonon any data command for structured output (with_nextbreadcrumbs in the body).-o FILEwrites the content to a file (confirmation goes to stderr). Plain> file.mdworks too — diagnostics and breadcrumbs go to stderr, so a redirected or-ofile holds only clean content. (auth checkandguideare diagnostics and ignore-o.)
For AI agents
This tool ships with an agent skill that teaches the right way to drive it (analyze a stock from the memo + Tier-1 sources, read the trust layer as a citation check, and the common pitfalls):
data-cli skill # print the skill
data-cli skill --path # print its path — point your agent's skills dir at it
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 cpe_data_cli-0.4.0.tar.gz.
File metadata
- Download URL: cpe_data_cli-0.4.0.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0df44bd560043134957b8931f2235371517650ab41f997947bae047ddc4aa222
|
|
| MD5 |
a4926878199b598aa6c9ad947b54f9b8
|
|
| BLAKE2b-256 |
64009e1fe4f788e110af4f0045f94f67695303c80afb7696d7030b4b62676c8b
|
Provenance
The following attestation bundles were made for cpe_data_cli-0.4.0.tar.gz:
Publisher:
publish.yml on cpe-research/data-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cpe_data_cli-0.4.0.tar.gz -
Subject digest:
0df44bd560043134957b8931f2235371517650ab41f997947bae047ddc4aa222 - Sigstore transparency entry: 1822924111
- Sigstore integration time:
-
Permalink:
cpe-research/data-cli@09a8d7fbf960b52c4b246f3fa650c04d192b22db -
Branch / Tag:
refs/heads/main - Owner: https://github.com/cpe-research
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@09a8d7fbf960b52c4b246f3fa650c04d192b22db -
Trigger Event:
push
-
Statement type:
File details
Details for the file cpe_data_cli-0.4.0-py3-none-any.whl.
File metadata
- Download URL: cpe_data_cli-0.4.0-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d37f214c55597ca51efea635f95c65ff8db3b582c7450b038cac21cb8aafb89
|
|
| MD5 |
cec856fe674fc25268057f335228d9ba
|
|
| BLAKE2b-256 |
b45386c9457c70c2276e478599d05b8e0914750c35f6e2cf20a84523c1d47e91
|
Provenance
The following attestation bundles were made for cpe_data_cli-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on cpe-research/data-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cpe_data_cli-0.4.0-py3-none-any.whl -
Subject digest:
2d37f214c55597ca51efea635f95c65ff8db3b582c7450b038cac21cb8aafb89 - Sigstore transparency entry: 1822924197
- Sigstore integration time:
-
Permalink:
cpe-research/data-cli@09a8d7fbf960b52c4b246f3fa650c04d192b22db -
Branch / Tag:
refs/heads/main - Owner: https://github.com/cpe-research
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@09a8d7fbf960b52c4b246f3fa650c04d192b22db -
Trigger Event:
push
-
Statement type: