This is an application that I created just for fun using Flask with Python a little CSS and most importantly Opensea API, There are many things missing I will (hopefully) fix them over time.
1 / (Count of particular trait in the collection) / (Total trait count for the trait type)
You can reach deployed app here
https://nft-rarity-flask.herokuapp.com/