GitHubesque identicon generator.
Project description
ghicon
ghicon is a GitHubesque identicon generator. It uses seed text and a hashing function, MD5 by default, to create unique icons called identicons.
Usage
Install ghicon using,
pip install ghicon==5.2.2
Then use the generate function,
import ghicon
image = ghicon.generate("agzg")
image.save("agzg.png")
Note: Following v5.2.0, you can use custom hashing functions to generate identicons via the hasher argument. Ensure the function you use only accepts a single string argument, and returns a hexadecimal string hash which is longer than 15 characters.
Tip: You can also invert the colours of the identicon to mix things up! Use the invert argument to do so.
Examples
License
Governed under the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ghicon-5.2.2.tar.gz.
File metadata
- Download URL: ghicon-5.2.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e338414d266bb37b36c24f0185cd1ce3bd14a89b13148b3ffe20a8d787e1c6e
|
|
| MD5 |
25554e0e17b3d7aaa1d7b2646dfcd7bd
|
|
| BLAKE2b-256 |
cdf1c20dea1fedc339fbc0fa99b403e31bbf49215e27f40c21d91a08f1d93aad
|