From 76a9174f7bb5f93ed92032de66e82071b12461b9 Mon Sep 17 00:00:00 2001 From: Khari Gardner Date: Mon, 4 Mar 2024 23:05:25 -0500 Subject: [PATCH 1/2] Set additional kwargs to pass to the HTTPX client --- pyfivetran/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfivetran/client.py b/pyfivetran/client.py index c008790..e735346 100644 --- a/pyfivetran/client.py +++ b/pyfivetran/client.py @@ -28,12 +28,12 @@ class FivetranClient: Interface class for Fivetran API interactions via endpoints. """ - def __init__(self, api_key: str, api_secret: str) -> None: + def __init__(self, api_key: str, api_secret: str, **httpx_kwargs) -> None: if not api_key or not api_secret: raise ValueError("api_key and api_secret are required") self.api_key = api_key self.api_secret = api_secret - self._client = httpx.Client() + self._client = httpx.Client(**httpx_kwargs) @lazy def account_info(self) -> GeneralApiResponse: From dc8e915f614a3dd061437506971c4151fa7ea420 Mon Sep 17 00:00:00 2001 From: Khari Gardner Date: Mon, 4 Mar 2024 23:05:52 -0500 Subject: [PATCH 2/2] version bump --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index dbdb33c..ed0e374 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pyfivetran" -version = "2024.03.04.02" +version = "2024.03.04.03" description = "Pythonic interface to the fivetran API" authors = ["Khari Gardner "] license = "MIT"