From e95f6748872ab87e30923d897277bf56942df59a Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Mon, 24 Mar 2025 13:53:09 +0100 Subject: [PATCH] Fix Async Constructor Args --- dune_client/api/base.py | 2 +- dune_client/client.py | 2 +- dune_client/client_async.py | 14 +++++++++++--- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/dune_client/api/base.py b/dune_client/api/base.py index 79abddf..e2a93a8 100644 --- a/dune_client/api/base.py +++ b/dune_client/api/base.py @@ -1,4 +1,4 @@ -"""" +""" " Basic Dune Client Class responsible for refreshing Dune Queries Framework built on Dune's API Documentation https://docs.dune.com/api-reference/overview/introduction diff --git a/dune_client/client.py b/dune_client/client.py index 6d322cb..6881f7a 100644 --- a/dune_client/client.py +++ b/dune_client/client.py @@ -1,4 +1,4 @@ -"""" +""" " Basic Dune Client Class responsible for refreshing Dune Queries Framework built on Dune's API Documentation https://docs.dune.com/api-reference/overview/introduction diff --git a/dune_client/client_async.py b/dune_client/client_async.py index 39e24fa..276a92e 100644 --- a/dune_client/client_async.py +++ b/dune_client/client_async.py @@ -1,4 +1,4 @@ -"""" +""" " Async Dune Client Class responsible for refreshing Dune Queries Framework built on Dune's API Documentation https://docs.dune.com/api-reference/overview/introduction @@ -73,14 +73,22 @@ class AsyncDuneClient(BaseDuneClient): _connection_limit = 3 def __init__( - self, api_key: str, connection_limit: int = 3, performance: str = "medium" + self, + api_key: str, + base_url: str = "https://api.dune.com", + request_timeout: float = 10, + client_version: str = "v1", + performance: str = "medium", + connection_limit: int = 3, ): """ api_key - Dune API key connection_limit - number of parallel requests to execute. For non-pro accounts Dune allows only up to 3 requests but that number can be increased. """ - super().__init__(api_key=api_key, performance=performance) + super().__init__( + api_key, base_url, request_timeout, client_version, performance + ) self._connection_limit = connection_limit self._session: Optional[ClientSession] = None