pytonapi 0.2.4__tar.gz → 0.2.4b1__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.
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/PKG-INFO +1 -1
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/client.py +7 -3
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi.egg-info/PKG-INFO +1 -1
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/setup.py +1 -1
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/LICENSE +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/README.md +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/__init__.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/__init__.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/__init__.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/accounts.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/blockchain.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/dns.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/emulate.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/events.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/inscriptions.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/jettons.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/liteserver.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/nft.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/rates.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/sse.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/staking.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/storage.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/tonconnect.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/traces.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/wallet.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/async_tonapi/methods/websocket.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/exceptions.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/__init__.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/_address.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/_balance.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/accounts.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/blockchain.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/dns.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/domains.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/events.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/inscriptions.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/jettons.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/liteserver.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/nft.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/rates.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/staking.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/storage.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/tonconnect.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/schema/traces.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/__init__.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/client.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/__init__.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/accounts.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/blockchain.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/dns.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/emulate.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/events.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/inscriptions.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/jettons.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/liteserver.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/nft.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/rates.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/sse.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/staking.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/storage.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/tonconnect.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/traces.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/tonapi/methods/wallet.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi/utils.py +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi.egg-info/SOURCES.txt +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi.egg-info/dependency_links.txt +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi.egg-info/requires.txt +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/pytonapi.egg-info/top_level.txt +0 -0
- {pytonapi-0.2.4 → pytonapi-0.2.4b1}/setup.cfg +0 -0
|
@@ -61,9 +61,13 @@ class AsyncTonapiClient:
|
|
|
61
61
|
:return: The response content.
|
|
62
62
|
"""
|
|
63
63
|
try:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
data = await response.aread()
|
|
65
|
+
try:
|
|
66
|
+
content = json.loads(data.decode())
|
|
67
|
+
except json.JSONDecodeError:
|
|
68
|
+
content = data.decode()
|
|
69
|
+
except httpx.ResponseNotRead:
|
|
70
|
+
content = response.text
|
|
67
71
|
except Exception as e:
|
|
68
72
|
raise TONAPIError(f"Failed to read response content: {e}")
|
|
69
73
|
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|