Pytonapi

Latest version: v0.4.1

Safety actively analyzes 665909 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 4

0.1.1

What's Changed

- Fixed method parameters from `start_data` and `end_data` to `start_date` and `end_date`.

0.1.0

What's Changed
Updated requirements packages:

- Updated **pydantic** to version 2.* but still uses version 1 from pydantic.v1.
- Updated **aiohttp** to version >=3.8.5.
- Updated **requests** to version >=2.31.0.

Added limit exceeding processing:
The Tonapi now returns a 429 response with a rate limit error when limits are exceeded.
To deal with this, it was added:
- **TONAPITooManyRequestsError** - raised if the limit is exceeded.
- **max_retries** - parameter for Tonapi and AsyncTonapi (default 3), For repeated requests in case of exceeding the rate limit.
If all retries fail, a TONAPITooManyRequestsError exception is thrown.

Added methods:
Accounts
- get_jettons_history (**passed!**) - "/v2/accounts/{account_id}/jettons/history"
- get_jettons_history_by_jetton (**passed!**) - "/v2/accounts/{account_id}/jettons/{jetton_id}/history"
- get_event (**passed!**) - "/v2/accounts/{account_id}/events/{event_id}"
- get_events (**passed!**) - "/v2/accounts/{account_id}/events"
- get_nft_history (**passed!**) - "v2/accounts/{account_id}/nfts/history"
- search_by_domain (**passed!**) - "/v2/accounts/search"
- get_subscriptions (**passed!**) - "/v2/accounts/{account_id}/subscriptions"
- get_expiring_dns (**passed!**) - "/v2/accounts/{account_id}/dns/expiring"
- get_public_key (**passed!**) - "/v2/accounts/{account_id}/publickey"
- get_balance_change (**passed!**) - "/v2/accounts/{account_id}/diff"
- reindex (**passed!**) - "/v2/accounts/{account_id}/reindex"
Blockchain
- get_transaction_by_message (**passed!**) - "/v2/blockchain/messages/{msg_id}/transaction"
- get_validators (_not implemented_) - "/v2/blockchain/validators"
- get_last_masterchain_block (**passed!**) - "/v2/blockchain/masterchain-head"
- get_account_info (**passed!**) - "/v2/blockchain/accounts/{account_id}"
- inspect_account (**passed!**) - "/v2/blockchain/accounts/{account_id}/inspect"
- execute_get_method (**passed!**) - "/v2/blockchain/accounts/{account_id}/methods/{method_name}"
DNS
- get_info (**passed!**) - "/v2/dns/{domain_name}"
- get_auctions (**passed!**) - "/v2/dns/auctions"
Events
- get_event (**passed!**) - "/v2/events/{event_id}"
NFT
- get_nft_history (**passed!**) - "v2/nfts/{account_id}/history"
Rates
- get_chart (**passed!**) - "/v2/rates/chart"
Staking
- get_pool_info (**passed!**) - "/v2/staking/pool/{account_id}"
- get_pool_history (**passed!**) - "/v2/staking/pool/{account_id}/history"
- get_participating_pools (**passed!**) - "/v2/staking/nominator/{account_id}/pools"
- get_all_network_pools (**passed!**) - "/v2/staking/pools"
Storage
- get_providers (**passed!**) - "/v2/storage/providers"
Updated schemas:
- Collection - added optional **description** field
- NftCollection - added optional **previews** field

Page 4 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.