MCPcopy Index your code
hub / github.com/dataforseo/PythonClient / __init__

Method __init__

dataforseo_client/api_client.py:47–66  ·  view source on GitHub ↗
(
        self,
        configuration=None,
        header_name=None,
        header_value=None,
        cookie=None
    )

Source from the content-addressed store, hash-verified

45 _pool = None
46
47 def __init__(
48 self,
49 configuration=None,
50 header_name=None,
51 header_value=None,
52 cookie=None
53 ) -> None:
54 # use default configuration if none is provided
55 if configuration is None:
56 configuration = Configuration.get_default()
57 self.configuration = configuration
58
59 self.rest_client = rest.RESTClientObject(configuration)
60 self.default_headers = {}
61 if header_name is not None:
62 self.default_headers[header_name] = header_value
63 self.cookie = cookie
64 # Set default User-Agent.
65 self.user_agent = 'python-client/2.0.26'
66 self.client_side_validation = configuration.client_side_validation
67
68 def __enter__(self):
69 return self

Callers

nothing calls this directly

Calls 1

get_defaultMethod · 0.45

Tested by

no test coverage detected