Overview of Bowler
mainBowler is a refactoring tool for manipulating Python at the syntax tree level. It is designed for safe, large-scale code modifications, ensuring that the resulting code compiles and runs.
It provides two primary ways to interact with it:
- A command line interface.
- A fluent Python API for generating complex code modifications.
Bowler uses a Query API to build refactoring scripts through a series of selectors, filters, and modifiers. You can use built-in tools or provide custom selectors, filters, and modifiers for complex refactorings.