MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / __init__

Method __init__

client-libs/python/openpipe/api_client/client.py:46–59  ·  view source on GitHub ↗
(
        self,
        *,
        base_url: typing.Optional[str] = None,
        environment: OpenPipeApiEnvironment = OpenPipeApiEnvironment.DEFAULT,
        token: typing.Union[str, typing.Callable[[], str]],
        timeout: typing.Optional[float] = 240,
        httpx_client: typing.Optional[httpx.Client] = None,
    )

Source from the content-addressed store, hash-verified

44
45class OpenPipeApi:
46 def __init__(
47 self,
48 *,
49 base_url: typing.Optional[str] = None,
50 environment: OpenPipeApiEnvironment = OpenPipeApiEnvironment.DEFAULT,
51 token: typing.Union[str, typing.Callable[[], str]],
52 timeout: typing.Optional[float] = 240,
53 httpx_client: typing.Optional[httpx.Client] = None,
54 ):
55 self._client_wrapper = SyncClientWrapper(
56 base_url=_get_base_url(base_url=base_url, environment=environment),
57 token=token,
58 httpx_client=httpx.Client(timeout=timeout) if httpx_client is None else httpx_client,
59 )
60
61 def check_cache(
62 self,

Callers

nothing calls this directly

Calls 2

SyncClientWrapperClass · 0.85
_get_base_urlFunction · 0.85

Tested by

no test coverage detected