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.1.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for tinydenticon-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dad2b8221c5f5ea1853d3345c2aa1278b584fc95be3af59620e915d94c9c3f4 |
|
MD5 | d9de26371aac3138e2ed5fb9d8a3c592 |
|
BLAKE2b-256 | 5efb0dbf1501b4286ee3fe50efb0ae4e790694d1767c75feacaf8276a5f76dc0 |