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 images called identicons.
Usage
Install ghicon using,
pip install ghicon==5.2.0
Then use the generate
function,
import ghicon
image = ghicon.generate("agzg")
image.save("agzg.png")
Note: Following v5.2.0
, you can supply and use custom hashing functions for generating identicons. Ensure the function you use only accepts a string and returns a hex-compatible hash which is more 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
ghicon-5.2.0.tar.gz
(4.3 kB
view hashes)