{"slug": "x-ray-your-python-codebase-in-0-2-seconds-without-an-llm", "title": "X-Ray Your Python Codebase in 0.2 Seconds — Without an LLM", "summary": "A developer released code-atlas-py, a deterministic code intelligence tool that builds a full call graph, dependency graph, and symbol index of any Python project in about 0.2 seconds. The tool scores every function for risk based on complexity, coupling, and instability, and can be used to fail PRs that introduce high-risk code. It runs locally without an LLM or cloud dependency.", "body_md": "You inherit a 50k-line Python monolith. Senior dev who wrote it left last month. No tests, no docs, no architecture diagram. Where do you even start?\n\nGrep for imports? Parse the AST yourself? Spend two days drawing boxes and arrows in Mermaid?\n\nThere's a faster way. Let me show you.\n\n`code-atlas-py`\n\n(CLI: `atlas`\n\n) is a deterministic code intelligence tool. It builds a full call graph, dependency graph, and symbol index of any Python project in ~0.2 seconds. It scores every function for risk — complexity, coupling, instability — and surfaces the most dangerous spots before you touch them.\n\nNo LLM. No cloud. No tokens. Same result every run.\n\n```\npip install code-atlas-py\n```\n\nThat's it. No config file, no server, no database. It works on any Python project out of the box.\n\n```\ncd /path/to/your/project\natlas scan\n```\n\nYou'll see output like:\n\n```\n✓ Scanned 1,247 symbols in 0.19s\n  Functions: 892 | Classes: 203 | Imports: 152\n  Top risk: payment/processor.py:process_payment (risk: 8.7)\n              - complexity: 14 | coupling: 23 | instability: 0.87\n```\n\nThe scan found your riskiest function before you opened a single file.\n\n```\natlas ask \"which functions call process_payment?\"\nprocess_payment\n  ├─ checkout.create_order (checkout/orders.py:142)\n  ├─ billing.sync_subscriptions (billing/sync.py:67)\n  └─ webhooks.stripe_handler (webhooks/stripe.py:33)\n\n3 callers, 4 callees (including 2 external API calls)\nRisk impact if changed: high (3 downstream modules affected)\natlas html --open\n```\n\nThis opens a clickable, filterable call graph in your browser. Each node is colored by risk score. Click any function to see its callers, callees, and complexity breakdown. Filter to show only functions with risk > 7 and instantly see the 5% of your codebase you should review before making any changes.\n\n```\natlas scan --fail-on-risk 8 --json > atlas-report.json\n```\n\nFail a PR if it introduces code with risk score ≥ 8. No more merges that silently add coupling. Ship an HTML artifact alongside your test results.\n\n| Tool | What it does | Deterministic? | Local? | Free? |\n|---|---|---|---|---|\n| pylint/flake8 | Style + lint + simple complexity | Yes | Yes | Yes |\n| sourcegraph | Code search with indexing server | Yes | No | Subscription |\n| LLM code review | Ask \"is this risky?\" | No | Varies | Freemium |\ncode-atlas-py |\nCall graph + risk scoring + symbol search | Yes |\nYes |\nFree tier |\n\n`getattr`\n\n-based dispatch).\n\n```\npip install code-atlas-py\ncd your-project\ndocker run -v $(pwd):/code --rm code-atlas-py atlas scan\n# or just:\natlas scan\n```\n\nRepo: [github.com/mete-dotcom/code-atlas](https://github.com/mete-dotcom/code-atlas)\n\nSite: [massiron.com/atlas](https://massiron.com/atlas)\n\nWhat's the riskiest function in your codebase right now? Run `atlas scan`\n\nand find out.", "url": "https://wpnews.pro/news/x-ray-your-python-codebase-in-0-2-seconds-without-an-llm", "canonical_source": "https://dev.to/massiron/x-ray-your-python-codebase-in-02-seconds-without-an-llm-1hi0", "published_at": "2026-06-13 08:01:29+00:00", "updated_at": "2026-06-13 08:17:29.957637+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["code-atlas-py", "mete-dotcom", "massiron.com"], "alternates": {"html": "https://wpnews.pro/news/x-ray-your-python-codebase-in-0-2-seconds-without-an-llm", "markdown": "https://wpnews.pro/news/x-ray-your-python-codebase-in-0-2-seconds-without-an-llm.md", "text": "https://wpnews.pro/news/x-ray-your-python-codebase-in-0-2-seconds-without-an-llm.txt", "jsonld": "https://wpnews.pro/news/x-ray-your-python-codebase-in-0-2-seconds-without-an-llm.jsonld"}}