identicon.js compatible Identicon implementation in Python 3
Project description
tinydenticon
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tinydenticon-0.1.2.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for tinydenticon-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f96ca5a21d261ae4019290472c4a9c2e705013ab821349e4be7488a9e5f65cd |
|
MD5 | 1a7e237e6854c2b18b6125d614aabbfe |
|
BLAKE2b-256 | 945ba3b2cb83fbad10fd313e039cb785a5d49a46bf9595819e2e13a017b6d2fc |