Pydenticon implements an identicon generator in Python. The implementation is a port of identicion implementation written in Go language from https://github.com/cupcake/sigil with some extra flexibility in the code being generated.