From 0da084d6860c2ebb067ef970d0cf69f0778bf2ba Mon Sep 17 00:00:00 2001 From: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> Date: Thu, 21 Dec 2023 10:24:07 +0100 Subject: [PATCH] Python: add optional `max_parallel_api_requests` to `Client` constructor (#1802) * Python: add optional `max_parallel_api_requests` to `Client` constructor * Update bindings/python/CHANGELOG.md Co-authored-by: Thibault Martinez --------- Co-authored-by: Thibault Martinez --- bindings/python/CHANGELOG.md | 6 ++++++ bindings/python/iota_sdk/client/client.py | 3 +++ 2 files changed, 9 insertions(+) diff --git a/bindings/python/CHANGELOG.md b/bindings/python/CHANGELOG.md index c6d3977a89..2a8c08886f 100644 --- a/bindings/python/CHANGELOG.md +++ b/bindings/python/CHANGELOG.md @@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Security --> +## 1.1.3 - 202Y-MM-DD + +### Added + +- Optional `max_parallel_api_requests` to `Client` constructor; + ## 1.1.2 - 2023-12-01 ### Added diff --git a/bindings/python/iota_sdk/client/client.py b/bindings/python/iota_sdk/client/client.py index 95dfa3726c..9623b65043 100644 --- a/bindings/python/iota_sdk/client/client.py +++ b/bindings/python/iota_sdk/client/client.py @@ -55,6 +55,7 @@ def __init__( local_pow: Optional[bool] = None, fallback_to_local_pow: Optional[bool] = None, pow_worker_count: Optional[int] = None, + max_parallel_api_requests: Optional[int] = None, client_handle=None ): """Initialize the IOTA Client. @@ -92,6 +93,8 @@ def __init__( Fallback to local proof of work if the node doesn't support remote PoW. pow_worker_count : The amount of threads to be used for proof of work. + max_parallel_api_requests : + Set maximum parallel API requests. client_handle : An instance of a node client. """