r/Python • u/RomfordNavy • Oct 29 '26
Discussion Alternative to libCST
Looking for a suggestion of an alternative CST parser to libcst. Have been trying to install libcst for over two days now but still unable to do so, I think the issue might be that there is no PyYaml `wheel` for Python 3.15.
So now wondering if there might be some other alternative CST parser available. I need to parse comments as well as other code so standard AST won't work as far as I know.
14
Upvotes
View all comments
Show parent comment
0
u/RomfordNavy Oct 29 '26
Been working with lazy imports for a few months now on earlier non-final releases of 3.15. In order to avoid cyclical imports much of the code relies upon lazy imports, really don't want to have to revert to the previous way I was doing things as much has changed since then.