{"library":"asttokens","type":"library","category":null,"description":"ASTTokens is a Python library that annotates Abstract Syntax Trees (ASTs) with the positions of tokens and text in the source code that generated them. This functionality is essential for tools that perform source code transformations, such as automated refactoring or syntax highlighting. The current version is 3.0.1, released on November 15, 2025. The library is actively maintained with a stable release cadence, ensuring ongoing support and updates.","language":"python","status":"active","version":"3.0.1","tags":["AST","Python","Source Code Transformation","Refactoring","Syntax Highlighting"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install asttokens","imports":["from asttokens import ASTTokens","from asttokens import ASTText","from asttokens import LineNumbers"]}],"homepage":null,"github":"https://github.com/gristlabs/asttokens","docs":"https://asttokens.readthedocs.io/en/latest/index.html","changelog":null,"pypi":"https://pypi.org/project/asttokens/","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.5,"avg_import_s":0.02,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/asttokens/compatibility"}}