MCPcopy Create free account
hub / github.com/aws/aws-cli / get_instance_public_methods

Function get_instance_public_methods

awscli/botocore/docs/method.py:28–43  ·  view source on GitHub ↗

Retrieves an objects public methods :param instance: The instance of the class to inspect :rtype: dict :returns: A dictionary that represents an instance's methods where the keys are the name of the methods and the values are the handler to the method.

(instance)

Source from the content-addressed store, hash-verified

26
27
28def get_instance_public_methods(instance):
29 """Retrieves an objects public methods
30
31 :param instance: The instance of the class to inspect
32 :rtype: dict
33 :returns: A dictionary that represents an instance's methods where
34 the keys are the name of the methods and the
35 values are the handler to the method.
36 """
37 instance_members = inspect.getmembers(instance)
38 instance_methods = {}
39 for name, member in instance_members:
40 if not name.startswith('_'):
41 if inspect.ismethod(member):
42 instance_methods[name] = member
43 return instance_methods
44
45
46def document_model_driven_signature(

Callers 2

_get_client_methodsMethod · 0.90

Calls

no outgoing calls

Tested by 1