ast-comments

JSON →
library 1.3.0 ·python
verified May 24, 2026

ast-comments is an extension to Python's built-in `ast` module that preserves comments in the Abstract Syntax Tree. It finds comments in source code and includes them as nodes in the parsed AST, which the standard `ast` module discards. The library is currently active, at version 1.3.0, and maintains a regular release cadence to support new Python features and address issues.

total hits 53
actors 10 distinct systems
last hit 1d ago Amazonbot
ChatGPT-User
26
Amazonbot
4
ByteDance
4
MetaBot
4
GPTBot
2
Script
2
Search engines
2

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada