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.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for tinydenticon-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bcabb3ec0896f1f18fec3652b344ecd33dbfa39c35520a9da14ee04e560f110 |
|
MD5 | da3b55b53f372d50af3133a8f8200738 |
|
BLAKE2b-256 | 22341bc313b21019f8a144b5fe8a69b8265dd5b699b602c3ea6eab226ce21534 |