News for hackers. Stuff that matters.
Re:CSS as a Query Language by spookylukey on Friday April 24, 2026 @03:19PM (#47894630)
The project pyastgrep https://pyastgrep.readthedocs.io/en/latest/ can use CSS selectors as a query language for Python syntax (default is XPath).

e.g.:

pyastgrep --css 'Call > func > Name#main'

Re:CSS as a Query Language by evnc on Friday April 24, 2026 @03:37PM (#47894823)
oh this is neat! Feels like exactly the sort of thing I was gesturing towards. Thanks :)