{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "only-cli-oc--lookup-python-docs-symbol",
 "repo": "only-cli/oc",
 "repo_url": "https://github.com/only-cli/oc",
 "repo_slug": "only-cli-oc",
 "title": "Find a Python function's docs by exact name",
 "page_title": "How to find a Python function's docs by exact name with Oc",
 "summary": "Search the Python docs index and jump straight to the anchor for a named symbol.",
 "who": "A developer or agent writing Python code that needs the exact signature or behavior of a standard library function.",
 "problem": "Searching generic web results returns blog posts and old answers instead of the official docs entry.",
 "outcome": "A numbered result list from the official Python docs, with an exact symbol linking straight to its section.",
 "steps": [
  "Run `npm install -g @only-cli/oc`",
  "Run `oc py search json.dumps` (inferred, check the README)",
  "Run `oc do <n>` on the number of the result you want to read (inferred, check the README)"
 ],
 "agent_prompt": "Use the only-cli/oc repo: run `oc py search <symbol>` with the target symbol name. Expect a numbered list of Python docs results, with an exact match linking to its anchor. Verify that the top result names the symbol you asked for before quoting it.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The Python search index is cached on disk for a day, so a newly published docs change can take up to a day to appear.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "javascript",
 "requirements": [
  "Node.js 20 or newer and npm",
  "A terminal the agent or you can run commands in",
  "Permission to install an npm package globally, or use npx instead"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/only-cli-oc/lookup-python-docs-symbol/",
 "md": "https://dedupedai.com/use-cases/only-cli-oc/lookup-python-docs-symbol/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/only-cli-oc--lookup-python-docs-symbol.json",
 "api_version": "v1"
}
