I need to find all classes and their methods(with arguments/signature) in a .py file. There are some restrictions:
Should work under python2 and python3(the files to be scanned are python2).
The files are not in python/system path and module dependencies may be not satisfied (import may fail)
As far as I understand such modules like ast
, inspect
, pyclbr
can not be used here for the reasons given above(different python versions etc).
What else can be helpful expect of re
module?