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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tinydenticon-0.1.2.tar.gz.
File metadata
- Download URL: tinydenticon-0.1.2.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5009fea8c7fcf9f14c3b9e062f37ade5d32d750afe319d9860dbb2ed8a2a05bd
|
|
| MD5 |
36161f0463f019fcc52c5f341f3a472d
|
|
| BLAKE2b-256 |
d3d06d1c04368b136c8f2649172803cc162380247b0605b2e2f8034c76abf7f1
|
File details
Details for the file tinydenticon-0.1.2-py3-none-any.whl.
File metadata
- Download URL: tinydenticon-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f96ca5a21d261ae4019290472c4a9c2e705013ab821349e4be7488a9e5f65cd
|
|
| MD5 |
1a7e237e6854c2b18b6125d614aabbfe
|
|
| BLAKE2b-256 |
945ba3b2cb83fbad10fd313e039cb785a5d49a46bf9595819e2e13a017b6d2fc
|