Skip to main content

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

  1. Name of the NFT project
  2. Base metadata uri of the tokens WITHOUT a trailing "/"
  3. The maximum tokens which are part of the collection
  4. The starting index of the collection, usually 0 or 1
  5. Suffix of the metadata uri. Maybe the location ends in a ".json"
  6. 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

  1. Name of the NFT project saved to a json file
  2. 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.7.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

pyshuii-0.0.7-py3.9.egg (26.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page