{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/8"},{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/5"},{"label":"Code Generators","url":"https://skillfed.io/packages/category/software-development-code-generators"}],"enrichment":{"capability":"Baron parses Python source code into a Full Syntax Tree (FST) that preserves all formatting, comments, and whitespace, and can be converted back to identical source code.","skillfed_tags":["syntax-tree","code-refactoring","abandoned"],"use_cases":["Rename variables in source files without accidentally modifying strings or comments containing the same text","Inline functions or methods while preserving original code formatting and structure","Extract code blocks into separate functions or modules with exact formatting preservation","Implement custom refactoring operations not available in standard IDE tools or rope","Analyze and transform code while maintaining exact source formatting for version control diffs"],"what_it_does":"Baron is a Full Syntax Tree library that parses Python source code into a JSON-like structure while preserving all formatting details\u2014comments, whitespace, and line breaks\u2014that a standard AST discards. Unlike Python's built-in ast module, Baron guarantees that converting code to FST and back produces identical source code. The library outputs trees similar to Python AST but with modifications to be more human-intuitive, making it suitable for code transformation tasks like variable renaming, function inlining, and refactoring operations where formatting must be preserved.\n\nThe package depends only on rply and installs with low friction. However, it is no longer actively maintained\u2014the last release was in December 2021 and the project is marked abandoned. Baron is positioned as a low-level tool; the documentation explicitly recommends using RedBaron (a higher-level abstraction built on Baron) for most use cases. Support covers Python 2 grammar and up to Python 3.7.","worth_installing":"No\u2014unless you are working with a frozen Python 2 or 3.7 codebase and have no alternative. The project is abandoned (last commit 2021-12-09, 1709 days ago), and the documentation recommends RedBaron as the usable layer instead. If you need FST parsing for modern Python or active maintenance, look elsewhere; if you need it for legacy code and can accept a frozen dependency, proceed with caution."},"id":"baron","links":{"html":"https://skillfed.io/packages/baron","md":"https://skillfed.io/packages/baron.md","pypi":"https://pypi.org/project/baron/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2021-12-09","license_spdx":null,"license_treatment":"copyleft","name":"baron","python_support":"unspecified","summary":"Full Syntax Tree for python to make writing refactoring code a realist task"},"popularity":{"monthly_downloads":414063,"position":6837,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.10.1"}
