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

Method __init__

api_client/python/cdg_client.py:20–22  ·  view source on GitHub ↗
(self, parent, http_method)

Source from the content-addressed store, hash-verified

18 """ Wrap request method to facilitate queries. Supports requests signature. """
19
20 def __init__(self, parent, http_method):
21 self._parent = parent
22 self._method = getattr(parent._session, http_method)
23
24 def __call__(self, endpoint, *args, **kwargs): # full signature passed here
25 response = self._method(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected