Skip to main content

Identiconify

Identiconify is a Python library that generates identicons based on a given string input. An identicon is a visual representation of a hash value, often used to create unique avatars or icons for users.

Installation

You can install the library using pip:

pip install identiconify

Usage

from identiconify import PilIdenticon

# Create an identicon object
identicon = PilIdenticon()

# Generate an identicon from a string
identicon_image = identicon.generate("example_string")

# Save the identicon to a file
identicon_image.save("identicon.png")

Customization

You can customize the identicon generation by modifying the parameters of the PilIdenticon class.

Example

from identiconify import PilIdenticon

# Create an identicon object with custom parameters
identicon = PilIdenticon(dimensions=6, size=512, padding=False, background_color="#B4DA55", block_color="#FF5733")

# Generate an identicon from a string
identicon_image = identicon.generate("custom_string")

# Save the identicon to a file
identicon_image.save("custom_identicon.png")

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, please open an issue or submit a pull request.

Metadata

Release files for identiconify 0.1.0

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

Source distribution (sdist)

Source distribution for identiconify 0.1.0
File Size Uploaded
identiconify-0.1.0.tar.gz 15.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for identiconify 0.1.0
File Interpreter ABI Platform
identiconify-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.8 kB

Release files / identiconify-0.1.0.tar.gz

Download URL identiconify-0.1.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
51ce099b8bb0de73d53c6a5f9c47b1ed286220b2e9d5c053fd38a64e4b167c7b
BLAKE2b-256 checksum
How to use checksums
cb876c04c9c39491a1e2a3396e4178ece2d7e50489895a71069816da610d55ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.20

Release files / identiconify-0.1.0-py3-none-any.whl

Download URL identiconify-0.1.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aef0d3b6877cd716a2b39f2291ce7860f249ce8aefc531f723d4ea4657a1504d
BLAKE2b-256 checksum
How to use checksums
41b4ff8575411dab454b4678332a2839d8d405a7e2a9e6ce7cb4e7e2688850f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.20

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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