safeheron-api-sdk-python 1.1.17__tar.gz → 1.1.18__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/PKG-INFO +12 -2
- safeheron_api_sdk_python-1.1.18/safeheron_api_sdk_python/api/api_key_management_api.py +18 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python.egg-info/PKG-INFO +12 -2
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python.egg-info/SOURCES.txt +1 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/setup.py +1 -1
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/LICENSE +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/README.rst +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/api/account_api.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/api/coin_api.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/api/gas_api.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/api/mpc_sign_api.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/api/tools_api.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/api/transaction_api.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/api/web3_api.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/api/webhook_api.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/api/whitelist_api.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/client.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/cosigner/co_signer_converter.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/tools.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python/webhook/webhook_converter.py +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python.egg-info/dependency_links.txt +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python.egg-info/requires.txt +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/safeheron_api_sdk_python.egg-info/top_level.txt +0 -0
- {safeheron_api_sdk_python-1.1.17 → safeheron_api_sdk_python-1.1.18}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: safeheron_api_sdk_python
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.18
|
|
4
4
|
Summary: Python for Safeheron API
|
|
5
5
|
Home-page: https://github.com/Safeheron/safeheron-api-sdk-python
|
|
6
6
|
Author: safeheron
|
|
@@ -13,5 +13,15 @@ License-File: LICENSE
|
|
|
13
13
|
Requires-Dist: pycryptodomex
|
|
14
14
|
Requires-Dist: requests
|
|
15
15
|
Requires-Dist: cryptography
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: home-page
|
|
21
|
+
Dynamic: license
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
Dynamic: platform
|
|
24
|
+
Dynamic: requires-dist
|
|
25
|
+
Dynamic: summary
|
|
16
26
|
|
|
17
27
|
# Python SDK for Safeheron API
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from safeheron_api_sdk_python.client import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ApiKeyManagementApi:
|
|
5
|
+
|
|
6
|
+
def __init__(self, config):
|
|
7
|
+
self.api_client = Client(config)
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
# Deactivate API Key
|
|
11
|
+
# This interface is used to apply to deactivate the currently used API Key (this can also be done in the Web Console). After the application is submitted, it will only take effect once a team administrator approves it in the Safeheron App. Once an API Key is deactivated, it will no longer be able to access any interfaces. For example, you can apply to deactivate an API Key in the following situations to protect your assets:
|
|
12
|
+
#
|
|
13
|
+
# The API Key is no longer in use and should be deactivated promptly to avoid risk;
|
|
14
|
+
# The API Key's private key is suspected of being leaked, and it needs to be deactivated immediately to ensure fund security;
|
|
15
|
+
# You receive an Illegal IP Request Event via Webhook and, after evaluation, need to deactivate the API Key (Event Type: ILLEGAL_IP_REQUEST);
|
|
16
|
+
# To resume using it, you can submit an activation request through the Web Console. This will also require approval from a team administrator before the API Key can be reactivated.
|
|
17
|
+
def disable_apikey(self):
|
|
18
|
+
return self.api_client.send_request(None, '/v1/apikey/disable')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: safeheron_api_sdk_python
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.18
|
|
4
4
|
Summary: Python for Safeheron API
|
|
5
5
|
Home-page: https://github.com/Safeheron/safeheron-api-sdk-python
|
|
6
6
|
Author: safeheron
|
|
@@ -13,5 +13,15 @@ License-File: LICENSE
|
|
|
13
13
|
Requires-Dist: pycryptodomex
|
|
14
14
|
Requires-Dist: requests
|
|
15
15
|
Requires-Dist: cryptography
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: home-page
|
|
21
|
+
Dynamic: license
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
Dynamic: platform
|
|
24
|
+
Dynamic: requires-dist
|
|
25
|
+
Dynamic: summary
|
|
16
26
|
|
|
17
27
|
# Python SDK for Safeheron API
|
|
@@ -9,6 +9,7 @@ safeheron_api_sdk_python.egg-info/dependency_links.txt
|
|
|
9
9
|
safeheron_api_sdk_python.egg-info/requires.txt
|
|
10
10
|
safeheron_api_sdk_python.egg-info/top_level.txt
|
|
11
11
|
safeheron_api_sdk_python/api/account_api.py
|
|
12
|
+
safeheron_api_sdk_python/api/api_key_management_api.py
|
|
12
13
|
safeheron_api_sdk_python/api/coin_api.py
|
|
13
14
|
safeheron_api_sdk_python/api/gas_api.py
|
|
14
15
|
safeheron_api_sdk_python/api/mpc_sign_api.py
|
|
@@ -3,7 +3,7 @@ from setuptools import find_packages
|
|
|
3
3
|
with open("README.rst", "r") as f:
|
|
4
4
|
long_description = f.read()
|
|
5
5
|
setup(name='safeheron_api_sdk_python',
|
|
6
|
-
version='1.1.
|
|
6
|
+
version='1.1.18',
|
|
7
7
|
description='Python for Safeheron API',
|
|
8
8
|
long_description=long_description,
|
|
9
9
|
author='safeheron',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|