{"library":"google-pasta","type":"library","category":null,"description":"google-pasta is an AST-based Python refactoring library (version 0.2.0). It aims to enable robust Python source code refactoring through Abstract Syntax Tree (AST) modifications, useful for tasks like renaming modules, rewriting import statements, enforcing code style, or safely migrating code between APIs. The library is currently marked as 'Pre-Alpha' on PyPI and has a slow release cadence, with the last update in March 2020.","language":"python","status":"maintenance","version":"0.2.0","tags":["AST","refactoring","code transformation","static analysis"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install google-pasta","imports":["import pasta\nsrc = 'def foo(): pass'\nast = pasta.parse(src)","import pasta\nsrc = 'def foo(): pass'\nast = pasta.parse(src)\nreconstructed_src = pasta.dump(ast)"]}],"homepage":null,"github":"https://github.com/google/pasta","docs":null,"changelog":null,"pypi":"https://pypi.org/project/google-pasta/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.6,"avg_import_s":0.02,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/google-pasta/compatibility"}}