Python 3 implementation of Identicon.
Specifically designed to produce the same results as identicon.js
pip3 install tinydenticon
from PIL import Image
from tinydenticon import Identicon
def main():
text = "tinytengu"
size = 500
rounds = 1337
identicon = Identicon(text.encode(), hash_rounds=rounds, image_side=size)
image = Image.new("RGB", (size, size))
image.putdata(identicon.get_pixels())
image.show()
if __name__ == "__main__":
main()