Python 3 wrapper for the NFTScan API
Project description
NFTScan NFT API Python 3 wrapper
A library providing Python 3 bindings for the NFTScan API
This library is in Alpha / Early Alpha state, and is untested / provided as is. Feel free to open PRs or bug reports for issues, features or extensions
Installation:
pip install nftscan-api
Usage:
Get a key and secret. Then, check out the api endpoints listed, eg (getGroupByNftContract)[https://developer.nftscan.com/doc/#operation/getAllNftByUserAddressUsingPOST] - and try to use them
from nftscan import NftScanAPI
nftScan = NftScanAPI(
apiKey=<key>,
apiSecret=<secret>)
test_wallet = "0x3becf83939f34311b6bee143197872d877501b11"
print(nftScan.getGroupByNftContract(erc="erc721", user_address=test_wallet))
If looking to also use pro api endpoints:
from nftscan import NftScanAPI
nftScanPro = NftScanProAPI(
apiKey=<key>,
apiSecret=<secret>)
test_wallet = "0x3becf83939f34311b6bee143197872d877501b11"
test_nft = "0xffe572aee5cded696f617125aa66b9746960f4ec"
print(nftScanPro.getGroupByNftContract(erc="erc721", user_address=test_wallet))
print(nftScanPro.getNftByContract(nft_address=test_nft))
Write json encoded response to a file:
nftScan.getGroupByNftContract(erc="erc721", user_address=test_wallet, export_file_name='out.txt'))
0.1.4 (2022-04-14)
Partial support for pro API Fixed missing dependencies and bad formatting for requirements.dev.stxt
0.1.3 (2022-03-31)
Moved source repo to main NFTScan github org - https://github.com/nftscan2022/nftscan-api-python-sdk
0.1.2 (2022-03-31)
Bugfixes:
- page_index should start at 1
- removed spurious "walletType" argument accidentally sent to "getAllNftByUserAddress" endpoint
0.1.1 (2022-03-31)
- Fixed a corner case for dumping response data to file
0.1.0 (2022-03-30)
- Created
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nftscan-api-0.1.4.tar.gz
.
File metadata
- Download URL: nftscan-api-0.1.4.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa9be9a80d9856164fd5f886ad17b9504795026c399183be8fc5c7889555112 |
|
MD5 | 934e0b46d96792de6167e40b3b6b7301 |
|
BLAKE2b-256 | 882f5a3ae5851e27bd1f4825a8fce653b2e38416d5862d70fbbe898c6a7199bb |
File details
Details for the file nftscan_api-0.1.4-py2.py3-none-any.whl
.
File metadata
- Download URL: nftscan_api-0.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 845cd63c98b32e6765db547134fdb3ac426ae9ecaca5729eb24436323c624f08 |
|
MD5 | 8edcc5a7d65b5ccad6543a97864fed9e |
|
BLAKE2b-256 | 8c3e4003b0f3c1ed860bdd9b723e44473640017f7ad0f39893c9f79cea815686 |