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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ghicon-5.2.2.tar.gz | 4.5 kB | Without provenance | Details for ghicon-5.2.2.tar.gz |
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
|
Security for ghicon 5.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.