get class from module python code example
Example: python get names of all classes
"""Returns a list of (name, value) for each class"""
import sys
import inspect
clsmembers = inspect.getmembers(sys.modules[__name__], inspect.isclass)
"""Returns a list of (name, value) for each class"""
import sys
import inspect
clsmembers = inspect.getmembers(sys.modules[__name__], inspect.isclass)