tinytengu / tinydenticon

Python 3 implementation of identicon.js-compatible Identicon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tinydenticon

Preview Preview

Python 3 implementation of Identicon.

Specifically designed to produce the same results as identicon.js

Installation:

Pip:

pip3 install tinydenticon

Usage example:

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()

License

GNU GPL v3

About

Python 3 implementation of identicon.js-compatible Identicon.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%