Multi-chain NFT metadata aggregator
Project description
Rarity Scanner
Aggregate metadata info on NFTs
Accuracy on par w/ legitimate tools afaik
aggregate.py
description
Responsible for gathering info on collection, weighing rarities, and spitting into json file
how-to
Modify the main() function towards the bottom of the file (wrapped in asyncio's run method)
asyncio.run(main(
"NFT project",
"https://gateway.ipfs.io/ipfs/some_hash",
limit=10000,
starting_index=0,
suffix='',
retry_limit=500
))
The main
function takes in 6 parameters
- Name of the NFT project
- Base metadata uri of the tokens WITHOUT a trailing "/"
- The maximum tokens which are part of the collection
- The starting index of the collection, usually 0 or 1
- Suffix of the metadata uri. Maybe the location ends in a ".json"
- How many times should a request be repeated on a retrieval error before moving on to the next token
execute
python3 aggregate.py
retrieve.py
description
Get the info on a specific token id.
how-to
No modification is needed. If you wish to hardcode the collection and tokenId values, uncomment out the last line
#print(main("blankface", 3535))
The main
function takes in 2 parameters
- Name of the NFT project saved to a json file
- The token ID you are looking to inspect
execute
python3 retrieve.py --name 'NFT project' --tokenid 3
Whats left
- Get rarity by rarity ID
- Interface to visualize
- containerize
- improve efficiency
- work around brute force retry method
Eth address - 0xbA842b7DA417Ba762D75e8F99e11c2980a8F8051
python3 setup.py install
python3 -m twine upload --repository pypi dist/*
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
pyshuii-0.0.5.tar.gz
(8.6 kB
view hashes)
Built Distribution
pyshuii-0.0.5-py3.9.egg
(24.0 kB
view hashes)