MCPcopy Create free account
hub / github.com/LibraryOfCongress/api.congress.gov / __getattr__

Method __getattr__

api_client/python/cdg_client.py:57–61  ·  view source on GitHub ↗

Find the session method dynamically and cache for later.

(self, method_name)

Source from the content-addressed store, hash-verified

55 }
56
57 def __getattr__(self, method_name):
58 """Find the session method dynamically and cache for later."""
59 method = _MethodWrapper(self, method_name)
60 self.__dict__[method_name] = method
61 return method

Callers

nothing calls this directly

Calls 1

_MethodWrapperClass · 0.70

Tested by

no test coverage detected