Below is a class decorator did_you_mean
that will, when applied to a class, catch undefined methods on that class and return y
ou a recommendation of methods to call instead.
from fuzzywuzzy.process import extractOne
def get_class_methods(cls_instance):
return [name for name in dir(cls_instance) if not name.startswith('__')]