MCPcopy Create free account
hub / github.com/bundesAPI/smard-api / __init__

Method __init__

python-client/deutschland/smard/api_client.py:66–85  ·  view source on GitHub ↗
(
        self,
        configuration=None,
        header_name=None,
        header_value=None,
        cookie=None,
        pool_threads=1,
    )

Source from the content-addressed store, hash-verified

64 _pool = None
65
66 def __init__(
67 self,
68 configuration=None,
69 header_name=None,
70 header_value=None,
71 cookie=None,
72 pool_threads=1,
73 ):
74 if configuration is None:
75 configuration = Configuration.get_default_copy()
76 self.configuration = configuration
77 self.pool_threads = pool_threads
78
79 self.rest_client = rest.RESTClientObject(configuration)
80 self.default_headers = {}
81 if header_name is not None:
82 self.default_headers[header_name] = header_value
83 self.cookie = cookie
84 # Set default User-Agent.
85 self.user_agent = "OpenAPI-Generator/0.1.0/python"
86
87 def __enter__(self):
88 return self

Callers

nothing calls this directly

Calls 1

get_default_copyMethod · 0.80

Tested by

no test coverage detected