Python doesn't have an easy to use customisable heap module and there is no support for max heap although you can make it work by negating the element . there is also no support for custom heap nodes like dictionaries and class objects. I have made a single heap class
You can simply copy paste the contents of https://github.com/gekco/heapy/blob/master/heapy/heap.py
or if you want to use it in a project
pip install heapsI have done enough documentation for it to be helpful
If anyone has any comments/suggestions they are welcome.
I know there are a lot such libraries, but i think i tried to make it as flexible as i could. Also if you go ahead and decide to use it please star it It would be a really big help. :)
Thanks.