Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Graphify
✓ import graphify
✗ from graphify import Graphify
Quickstart: instantiate Graphify, extract a directory, query, and export.
import os
from graphify import Graphify
# API keys can be set via environment variables (ANTHROPIC_API_KEY, GEMINI_API_KEY, etc.)
g = Graphify()
# Extract a codebase into a knowledge graph
g.extract('./my_project', backend='claude')
# Query the graph
results = g.query('What API endpoints are in the auth module?')
print(results)
# Export as Obsidian vault
g.export('obsidian', output='./vault')
Debug
Known issues
breakingOlder graph JSON files may have 'edges' key instead of 'links'. Loading such files with v0.7.10 will raise KeyError: 'links'.fixRe-extract the graph using v0.7.10 or patch the JSON manually (replace 'edges' with 'links').
affects: >=0.7.10 (fixed in 0.7.10)
breaking.tsx files were previously parsed with language_typescript grammar, which silently dropped all JSX-specific nodes. This is fixed in 0.7.10 but existing graphs may be incomplete.fixRe-extract .tsx files with graphify 0.7.10+.
affects: <0.7.10
deprecatedThe Python snippet workflow for export is deprecated. Use graphify export <format> CLI subcommands instead.fixUse CLI: 'graphify export html' or 'graphify export obsidian'.
affects: >=0.7.2
gotchaSensitive files (e.g., tokenizer.py, password_verification.py, SecretManager.java) may be silently dropped due to false-positive word-boundary matching in _is_sensitive(). Fixed in 0.7.6, but old graphs may be missing files.fixUpgrade to 0.7.6+ and re-extract.
affects: <0.7.6
gotchatsconfig.json path aliases defined in extended configs (via 'extends') are not resolved unless using v0.7.1+. Even then, JSONC parsing could fail silently before v0.7.4.fixUpgrade to 0.7.4+ and ensure tsconfig files are valid JSONC.
affects: <0.7.4
Upgrade
Version history
0.7.10latest on PyPI · released May 7, 2026
Audit
Dependencies
anthropicoptionalDefault LLM backend (Claude)
google-genaioptionalGemini backend support
openaioptionalOpenAI backend support
ollamaoptionalOllama local backend support