{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/8"},{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"},{"label":"Code Generators","url":"https://skillfed.io/packages/category/software-development-code-generators"}],"enrichment":{"capability":"RedBaron is a Python library for programmatically modifying source code by parsing it into a lossless syntax tree and allowing you to navigate, query, and transform it with a BeautifulSoup-like API.","skillfed_tags":["code-generation","refactoring","ast-manipulation"],"use_cases":["Write automated refactoring scripts that safely transform Python source code while preserving formatting and comments.","Build IDE plugins or code analysis tools that need to understand and modify Python syntax trees programmatically.","Interactively explore and modify code in IPython using a higher-level abstraction than text manipulation.","Implement code generation or template-based code transformation that must preserve original structure.","Create linting or code quality tools that need to rewrite code based on syntax analysis."],"what_it_does":"RedBaron wraps Baron, a lossless abstract syntax tree (FST) for Python, to let you write code that modifies code. It guarantees that parsing and unparsing preserves the original source exactly, so you only change what you explicitly ask it to change. The API is inspired by BeautifulSoup, using intuitive navigation and query methods to find and transform nodes in the syntax tree.\n\nYou can use it to write custom refactoring tools, generic refactoring scripts, or interactively modify code in IPython without the limitations of text-based editors. The core is stable but the project is in alpha and has not been actively maintained since 2019, so it is not battle-tested for modern Python versions or edge cases.","worth_installing":"Yes, if you need lossless code transformation and can tolerate alpha-stage software. The core concept is sound and the library has been stable for years, but the lack of maintenance means Python 3.7+ compatibility is uncertain and bugs may not be fixed. Suitable for internal tools or one-off scripts; risky for production systems or new projects requiring long-term support."},"id":"redbaron","links":{"html":"https://skillfed.io/packages/redbaron","md":"https://skillfed.io/packages/redbaron.md","pypi":"https://pypi.org/project/redbaron/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-03-17","license_spdx":null,"license_treatment":"copyleft","name":"redbaron","python_support":"unspecified","summary":"Abstraction on top of baron, a FST for python to make writing refactoring code a realistic task"},"popularity":{"monthly_downloads":412795,"position":6845,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.2"}
