symbex: search Python code for functions and classes, then pipe them into a LLM
symbex: search Python code for functions and classes, then pipe them into a LLM
simonwillison.net
symbex: search Python code for functions and classes, then pipe them into a LLM
I just released a new Python CLI tool called symbex. It’s a search tool, loosely inspired by ripgrep, which lets you search Python code for functions and classes by name …

cross-posted from: https://programming.dev/post/107386
From the article:
symbex inspect_hash | llm --system 'explain succinctly'Output:
This function calculates the hash of a database file efficiently by reading the file in blocks and updating the hash object using SHA256 algorithm from the hashlib module. The resulting hash value is returned as a hexadecimal string.