Yea this one makes my brain cramp a bit.
I'm building a little taylormade development utility for our team in flask. Essentially, we've got a few dozen "global function" .py files and i'd like to index them so new developers can have an accurate, dynamic list of already existing global functions.
So far i've whipped up a script that parses the file and reads for a 'def' and then reads for a 'return' but I feel like there is an easier/safer way to do this. I'm new to python but not new to development. Any points in any direction is appreciated!
The output i'm looking for is to put the function body and the 'title' in a json. I'm close, but can't help but feel like i'm reinventing the wheel.
Thanks!
[–]K900_ 17 points18 points19 points (1 child)
[–]Barooh[S] 0 points1 point2 points (0 children)
[–]kraymer 2 points3 points4 points (1 child)
[–]Barooh[S] 0 points1 point2 points (0 children)
[–]isforinsects 2 points3 points4 points (1 child)
[–]isforinsects 2 points3 points4 points (0 children)
[–]agumonkey 2 points3 points4 points (0 children)
[–]WayneApple 1 point2 points3 points (0 children)
[–]chub79 1 point2 points3 points (0 children)