asttokens
The asttokens module annotates Python abstract syntax trees (ASTs) with the positions of tokens and text in the source code that generated them.
The asttokens module annotates Python abstract syntax trees (ASTs) with the positions of tokens and text in the source code that generated them.
To install this package, run one of the following:
The asttokens module annotates Python abstract syntax trees (ASTs) with the positions of tokens and text in the source code that generated them. It provides a way to access the original source code from the AST, which can be useful for debugging, code analysis, and other tasks.
Summary
The asttokens module annotates Python abstract syntax trees (ASTs) with the positions of tokens and text in the source code that generated them.
Last Updated
Mar 10, 2026 at 10:07
License
Apache-2.0
Supported Platforms
Unsupported Platforms
GitHub Repository
https://github.com/gristlabs/asttokensDocumentation
https://github.com/gristlabs/asttokens