{"library":"ast-grep-py","type":"library","category":null,"description":"ast-grep-py provides Python bindings for ast-grep, a powerful structural code search and rewrite engine. It enables developers to query and transform code using abstract syntax tree (AST) patterns, supporting multiple programming languages. The current version is 0.42.1, and the library maintains a rapid release cadence with frequent minor and patch updates, often multiple times a month.","language":"python","status":"active","version":"0.42.1","tags":["ast","code-analysis","refactoring","static-analysis","code-transformation","pattern-matching"],"last_verified":"Fri May 22","install":[{"cmd":"pip install ast-grep-py","imports":["from ast_grep_py import SgRoot","from ast_grep_py import SgNode","from ast_grep_py import SgMatch","from ast_grep_py import SgPattern"]}],"homepage":null,"github":"https://github.com/ast-grep/ast-grep","docs":"https://ast-grep.github.io/","changelog":"https://github.com/ast-grep/ast-grep/blob/main/CHANGELOG.md","pypi":"https://pypi.org/project/ast-grep-py/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":40,"avg_install_s":1.9,"avg_import_s":0.02,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/ast-grep-py/compatibility"}}