ASTTokens
JSON →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.
Traffic · last 30 days ↓14% vs prev 7d
total hits 32
actors 6 distinct systems
last hit 1d ago GPTBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇬🇧 United Kingdom · VN · 🇨🇦 Canada
Resources
API endpoints
full doc /v1/registry/asttokens
install /v1/registry/asttokens/install
compatibility /v1/registry/asttokens/compatibility