I have two Python scripts, a.py and b.py. A.py is running and is not writable and I would like to have b.py being able to retrieve data from it, like a list of used variables and their values, functions, class... I am finding nothing on the Internet so is this possible ? Thanks.
Example a.py
def numberOne(var):
var1 = input('Enter a value : ')
class testClass():
def __init__(self, value)
self.var2 = value
var3 = 12345
Example b.py output
Found class :
-- testClass
Found functions :
-- numberOne
Found vars :
-- var3 : 12345