pytonapi 0.2.9__tar.gz → 0.3.1__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.9 → pytonapi-0.3.1}/PKG-INFO +1 -1
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/client.py +2 -2
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/jettons.py +1 -1
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/jettons.py +1 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/client.py +2 -2
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/jettons.py +1 -1
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi.egg-info/PKG-INFO +1 -1
- {pytonapi-0.2.9 → pytonapi-0.3.1}/setup.py +1 -1
- {pytonapi-0.2.9 → pytonapi-0.3.1}/LICENSE +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/README.md +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/__init__.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/__init__.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/__init__.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/accounts.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/blockchain.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/dns.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/emulate.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/events.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/inscriptions.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/liteserver.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/nft.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/rates.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/sse.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/staking.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/storage.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/tonconnect.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/traces.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/wallet.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/async_tonapi/methods/websocket.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/exceptions.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/py.typed +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/__init__.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/_address.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/_balance.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/accounts.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/blockchain.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/dns.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/domains.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/events.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/inscriptions.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/liteserver.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/nft.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/rates.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/staking.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/storage.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/tonconnect.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/schema/traces.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/__init__.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/__init__.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/accounts.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/blockchain.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/dns.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/emulate.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/events.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/inscriptions.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/liteserver.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/nft.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/rates.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/sse.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/staking.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/storage.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/tonconnect.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/traces.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/tonapi/methods/wallet.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi/utils.py +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi.egg-info/SOURCES.txt +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi.egg-info/dependency_links.txt +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi.egg-info/requires.txt +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/pytonapi.egg-info/top_level.txt +0 -0
- {pytonapi-0.2.9 → pytonapi-0.3.1}/setup.cfg +0 -0
|
@@ -97,8 +97,8 @@ class AsyncTonapiClient:
|
|
|
97
97
|
501: TONAPINotImplementedError,
|
|
98
98
|
}
|
|
99
99
|
error_class = error_map.get(response.status_code, TONAPIError)
|
|
100
|
-
|
|
101
|
-
raise error_class(
|
|
100
|
+
error_message = content.get("error") if isinstance(content, dict) else content
|
|
101
|
+
raise error_class(error_message)
|
|
102
102
|
|
|
103
103
|
return content
|
|
104
104
|
|
|
@@ -54,7 +54,7 @@ class JettonsMethod(AsyncTonapiClient):
|
|
|
54
54
|
if len(result.addresses) != limit:
|
|
55
55
|
break
|
|
56
56
|
|
|
57
|
-
return JettonHolders(addresses=jetton_holders)
|
|
57
|
+
return JettonHolders(addresses=jetton_holders, total=result.total)
|
|
58
58
|
|
|
59
59
|
async def get_all_jettons(self, limit: int = 100, offset: int = 0) -> Jettons:
|
|
60
60
|
"""
|
|
@@ -86,8 +86,8 @@ class TonapiClient:
|
|
|
86
86
|
501: TONAPINotImplementedError,
|
|
87
87
|
}
|
|
88
88
|
error_class = error_map.get(response.status_code, TONAPIError)
|
|
89
|
-
|
|
90
|
-
raise error_class(
|
|
89
|
+
error_message = content.get("error") if isinstance(content, dict) else content
|
|
90
|
+
raise error_class(error_message)
|
|
91
91
|
|
|
92
92
|
return content
|
|
93
93
|
|
|
@@ -55,7 +55,7 @@ class JettonsMethod(TonapiClient):
|
|
|
55
55
|
if len(result.addresses) != limit:
|
|
56
56
|
break
|
|
57
57
|
|
|
58
|
-
return JettonHolders(addresses=jetton_holders)
|
|
58
|
+
return JettonHolders(addresses=jetton_holders, total=result.total)
|
|
59
59
|
|
|
60
60
|
def get_all_jettons(self, limit: int = 100, offset: int = 0) -> Jettons:
|
|
61
61
|
"""
|
|
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
|