Skip to main content

oneport-context

Code Contextualizer — NotebookLM for your codebase, that never leaves your machine.

Point it at any repo (however large — no upload) and it builds a hierarchical understanding locally, then turns it into a narrated architecture walkthrough, a narrated MP4 video, a PDF handbook, a chat that knows your code, and hover-to-explain in your editor. Runs on your own model key (Google Gemini free tier) or fully local — your code never leaves the machine.

Try it in 60 seconds (no setup)

pip install oneport-context
oneport-context demo

Opens a narrated, animated walkthrough of a bundled sample repo in your browser — no API key needed.

Use it on your own repo

export GEMINI_API_KEY=            # free key at aistudio.google.com/apikey

oneport-context index ./my-repo    # build the understanding (cached in .context/)
oneport-context show  ./my-repo    # narrated walkthrough in the browser
oneport-context video ./my-repo    # narrated MP4 (>= 8 min)   -> needs [video]
oneport-context pdf   ./my-repo    # PDF handbook, opens in browser -> needs [pdf]
oneport-context chat  ./my-repo    # ask questions in the terminal
oneport-context lsp   ./my-repo    # editor hover-to-explain -> needs [lsp]

Without a key it still works in heuristic mode (structure + docstrings) — free and offline, just less prose.

Commands

Command What it does Extra
demo Zero-config narrated walkthrough of a bundled repo
index ./repo Build the hierarchical understanding (cached)
show ./repo Localhost narrated architecture walkthrough
video ./repo Narrated MP4 (--minutes, --voice) [video]
pdf ./repo Styled PDF handbook, served in the browser [pdf]
chat ./repo Terminal Q&A grounded in your code
lsp ./repo Hover-to-explain Language Server (VS Code / Neovim / JetBrains) [lsp]

Install with the features you want

pip install 'oneport-context[video,pdf,lsp]'
  • [video] — pillow, moviepy (ffmpeg), gTTS voice
  • [pdf] — reportlab
  • [lsp] — pygls

Why CLI, not upload

Big repos don't fit an upload box. The CLI walks the tree locally and builds a file -> module -> repo summary (module summaries are batched, so a large repo costs only a handful of model calls). Everything is cached in .context/; your code never leaves the machine.

Notes

  • video/pdf/chat produce their best output with GEMINI_API_KEY set; heuristic mode works without it.
  • Prefer local/air-gapped? Set ONEPORT_MODE=local and run against Ollama.
  • Have an Anthropic key? Set ANTHROPIC_API_KEY and it takes priority automatically.

License

Apache-2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oneport_context-0.2.0.tar.gz (43.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oneport_context-0.2.0-py3-none-any.whl (60.4 kB view details)

Uploaded Python 3

File details

Details for the file oneport_context-0.2.0.tar.gz.

File metadata

  • Download URL: oneport_context-0.2.0.tar.gz
  • Upload date:
  • Size: 43.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.0

File hashes

Hashes for oneport_context-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8545bcbd33962452a7974e76fb3f29fcc755abb137bcdb57c1641a7429853c5d
MD5 5ded0c53620df2d80abfda5bbded9807
BLAKE2b-256 7e093d8c717f689d6a047bb1a5f0c4f18553b3eeef0a727265104d5a79dc1b35

See more details on using hashes here.

File details

Details for the file oneport_context-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for oneport_context-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4552560fadc25ac2680177d25641bc2c1a85abfb7842a1f8107b5d4eef2aa78
MD5 4810b84a745e78ac57decfd6bcf20c0e
BLAKE2b-256 8632365085838ab94b9c5dac56771664a4b7ec0cae5f09eff45ee4ac6c5c8b58

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page