Here are some fun and potentially useful tricks you can do using the inspect module. Get a list of currently imported modules: import inspect myglobals = dict() myglobals.update(globals()) modules = [value for key, value in myglobals.items() if inspect.ismodule(value)] Get a list of classes in a [...]
