Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

opencode-python-docs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

opencode-python-docs

OpenCode plugin for Python documentation lookup via DevDocs

unpublished
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

python-docs

OpenCode plugin for Python documentation lookup via DevDocs.

Quick Start

Add to ~/.config/opencode/opencode.json:

{ "plugin": ["python-docs"] }

Or use a local path during development:

{ "plugin": ["~/Dump/python-docs"] }

Features

  • Search Python stdlib, language reference, tutorials, and more
  • Fetch full documentation as clean Markdown
  • Cache with intelligent TTL-based garbage collection
  • Multiple versions supported: 3.14, 3.13, 3.12, 3.11, 3.10, 3.9

Tools

python_docs

Search Python documentation index.

ArgumentTypeDescription
querystringSearch query (e.g., 'asyncio', 'pathlib')
versionstring?Python version (default: 3.14)
typestring?Filter by doc type
limitnumber?Max results (default: 20)

Example:

python_docs query="asyncio" version="3.12"

fetch_python_doc

Fetch full documentation as Markdown.

ArgumentTypeDescription
pathstringDoc path from search results
versionstring?Python version (default: 3.14)

Example:

fetch_python_doc path="library/asyncio"

Caching

  • Index cache: 24 hours TTL
  • Doc cache: 7 days TTL
  • Location: ~/.cache/opencode/plugins/python-docs/
  • Garbage collection: Runs on startup and reconnect

Development

git clone <repo> ~/Dump/python-docs
cd ~/Dump/python-docs
bun install
bun run build

Scripts

CommandDescription
bun run buildBuild the plugin
bun run typecheckRun TypeScript type checking
bun run lintRun Biome linter
bun run formatFormat code with Biome

License

MIT

Keywords

opencode

FAQs

Package last updated on 01 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts