/ tech-note

How to get a list of methods in an object in Python?

It is simple:

[method for method in dir(object) if callable(getattr(object, method))]

Source: https://stackoverflow.com/questions/34439/finding-what-methods-an-object-has