Skip to main content

PyPI version

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.

Metadata

Release files for ghicon 5.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ghicon 5.2.2
File Size Uploaded
ghicon-5.2.2.tar.gz 4.5 kB Details

Release files / ghicon-5.2.2.tar.gz

Download URL ghicon-5.2.2.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9e338414d266bb37b36c24f0185cd1ce3bd14a89b13148b3ffe20a8d787e1c6e
BLAKE2b-256 checksum
How to use checksums
cdf1c20dea1fedc339fbc0fa99b403e31bbf49215e27f40c21d91a08f1d93aad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

5.2.2 This release

1 release file

5.2.1

1 release file

5.2.0

1 release file

4.2.0

1 release file

0.0.1

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page