diff --git a/CHANGES b/CHANGES index 1e149c5..c8fdcb7 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +1.19.4 +------ +- Add global API custom instance setter. + 1.19.3 ------ - Add file name to hash analysis. diff --git a/intezer_sdk/__init__.py b/intezer_sdk/__init__.py index 7056930..d81ac8e 100644 --- a/intezer_sdk/__init__.py +++ b/intezer_sdk/__init__.py @@ -1 +1 @@ -__version__ = '1.19.3' +__version__ = '1.19.4' diff --git a/intezer_sdk/alerts.py b/intezer_sdk/alerts.py index 095801d..d6a6cef 100644 --- a/intezer_sdk/alerts.py +++ b/intezer_sdk/alerts.py @@ -1,11 +1,11 @@ import hashlib import json import time +import datetime from io import BytesIO from typing import BinaryIO import requests -import datetime from typing import Dict from typing import List from typing import Tuple diff --git a/intezer_sdk/api.py b/intezer_sdk/api.py index b559924..7afeaf9 100644 --- a/intezer_sdk/api.py +++ b/intezer_sdk/api.py @@ -733,5 +733,16 @@ def set_global_api(api_key: str = None, proxies=proxies) return _global_api +def set_global_api_custom_instance(api: IntezerApiClient) -> IntezerApiClient: + """ + Configure the global api with a custom instance + + :param api: The api instance + :return: The configured api + """ + global _global_api + _global_api = api + return _global_api + IntezerProxy = IntezerApiClient