# Python Source Code Refactoring Toolkit via AST alternatives

Python Source Code Refactoring Toolkit via AST: AST-based fragmental source code refactoring toolkit for Python

24 products that do a similar job, closest first. 17 have pricing checked on their own site; 16 of those are free or have a free tier.

Page: https://nowfound.app/alternatives/python-source-code-refactoring-toolkit-via-ast
About Python Source Code Refactoring Toolkit via AST: https://nowfound.app/launch/python-source-code-refactoring-toolkit-via-ast.md

- [Refurb](https://nowfound.app/launch/refurb-a-tool-for-refurbishing-and-modernizing-python-codeba): A tool for refurbishing and modernizing Python codebases (2022-09-28, 123 votes, free, github.com)
- [Sourcery](https://nowfound.app/launch/sourcery): AI Agents that investigate and fix Sentry Issues (2021-04-13, 487 votes, free tier, from $12/mo, sourcery.ai)
- [DevSwat AST- visualizer with analyzer](https://nowfound.app/launch/devswat-ast-visualizer-with-analyzer): Turn codebases into interactive maps, graphs, and governance (2026-07-16, 81 votes, one-time $500, dev-swat.com)
- [COBOL-REKT](https://nowfound.app/launch/cobol-rekt-a-toolkit-for-analysing-and-reverse-engineering-c): This is an evolving toolkit of capabilities helpful for analysing and reverse engineering legacy Cobol code. Currently, the following capabilities are available: - Program / Section-level flowchart g… (2024-08-15, 91 votes, free, github.com)
- [Using Parsing Expression Grammars to rewrite](https://nowfound.app/launch/using-parsing-expression-grammars-to-rewrite-source-code): An example of PEG usage. (2016-09-14, 63 votes, free, github.com)
- [Anyone interested in a tool helps to explore](https://nowfound.app/launch/anyone-interested-in-a-tool-helps-to-explore-c-asts): This tool helps C++ developers perform static code analysis by providing interactive exploration of abstract syntax trees (ASTs). (2026-05-21, 49 votes, uvic-aurora.github.io)
- [ast-grep](https://nowfound.app/launch/ast-grep): It is heavily inspired by semgrep, but intends to be an AST-base searcher/linter/rewriter. https://github.com/ast-grep/ast-grep (2023-05-11, 63 votes, ast-grep.github.io)
- [Modshim](https://nowfound.app/launch/modshim-a-new-alternative-to-monkey-patching-in-python): Modshim is a Python development tool that provides an alternative to monkey-patching, forking, or vendoring packages. (2025-10-16, 109 votes, free, github.com)
- [Coerce](https://nowfound.app/launch/coerce-actor-runtime-for-rust-using-async-await-and-tokio-ch): Actor runtime and distributed systems framework for Rust (2019-12-15, 155 votes, free, github.com)
- [Copy-and-patch compiler for hard real-time](https://nowfound.app/launch/copy-and-patch-compiler-for-hard-real-time-python): Copapy is a Python compiler designed for hard real-time systems like robotics and control applications. (2026-02-11, 65 votes, free, github.com)
- [Refraction](https://nowfound.app/launch/refraction): Generate unit tests, create docs and refactor code using AI. (2023-01-13, 156 votes, refraction.dev)
- [Array](https://nowfound.app/launch/array-a-better-python-list): Like a Python list but better. (2021-01-10, 87 votes, free, github.com)
- [Refactoring](https://nowfound.app/launch/refactoring-improving-the-design-of-existing-code): Make bad design better w/o messing w ext code behavior (2015-12-29, 83 votes, amazon.com)
- [Debugger that generates video visualizations](https://nowfound.app/launch/debugger-that-generates-video-visualizations-for-algorithm-l): A simple Python debugger and profiler that generates animated visualizations of program flow, useful for algorithm learning. (2020-01-28, 102 votes, free, github.com)
- [Crespo](https://nowfound.app/launch/crespo-tree-sitter-ast-blueprints-instead-of-raw-code-for-ll): Crisp Repos, Sharp AI. (2026-06-22, 14 votes, free, github.com)
- [RepoReaper](https://nowfound.app/launch/reporeaper-ast-aware-jit-loading-code-audit-agent-python-asy): RepoReaper to solve code context fragmentation in RAG. (2026-01-07, 7 votes, free, github.com)
- [StepKit](https://nowfound.app/launch/stepkit-an-open-and-cross-platform-durable-execution-standar): StepKit is an open-source SDK and framework for building durable workflows that run across any platform—including self-hosted environments, Inngest, Cloudflare, and Netlify—without platform-specific… (2025-11-25, 36 votes)
- [Onboard-CLI](https://nowfound.app/launch/onboard-cli-a-llm-powered-and-ast-based-tool-to-visualize-co): Onboard-CLI is an AI-powered command-line tool that uses abstract syntax trees (AST) to visualize codebases. (2026-07-08, 24 votes, free, github.com)
- [FORGE](https://nowfound.app/launch/forge-st966925): Formalized Optimized Refactoring Guided by Explainable AI (2025-05-18, 9 votes, free, github.com)
- [Codegen](https://nowfound.app/launch/codegen-oss-python-library-for-advanced-code-manipulation): Codegen is an open-source Python library for programmatically manipulating Python and JavaScript/React codebases. (2025-01-29, 14 votes, docs.codegen.com)
- [Refact](https://nowfound.app/launch/refact-ai-code-assistant-with-autocomplete-ai-chat-and-code): Refact is a Copilot alternative that has an autocomplete, integrated AI chat and powerful editing. We use our own models that are fine-tuned for each language, they are smaller than the one in Copilo… (2023-03-31, 17 votes, refact.ai)
- [AST Visualizer](https://nowfound.app/launch/ast-visualizer): Understand Complex Python Codebases in Seconds (2026-02-17, 7 votes, free tier, from $21.6/mo, creview.io)
- [I canceled my AI code reviewer and wrote a free](https://nowfound.app/launch/i-canceled-my-ai-code-reviewer-and-wrote-a-free-local-one): Review the Python you changed, not the Python you inherited. Git-aware AST code review that runs in the seconds before git push. (2026-08-18, 23 votes, free, github.com)
- [Lark](https://nowfound.app/launch/lark-a-modern-parsing-library-with-earley-and-lalr-1-impleme): Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity. (2017-02-14, 15 votes, free, github.com)
