Skip to main content

Python identicon generator

Project description

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.

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

identiconify-0.1.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

identiconify-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file identiconify-0.1.0.tar.gz.

File metadata

  • Download URL: identiconify-0.1.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.20

File hashes

Hashes for identiconify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 51ce099b8bb0de73d53c6a5f9c47b1ed286220b2e9d5c053fd38a64e4b167c7b
MD5 7b36caa91defe524a01ac56ffbd07d59
BLAKE2b-256 cb876c04c9c39491a1e2a3396e4178ece2d7e50489895a71069816da610d55ce

See more details on using hashes here.

File details

Details for the file identiconify-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: identiconify-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.20

File hashes

Hashes for identiconify-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aef0d3b6877cd716a2b39f2291ce7860f249ce8aefc531f723d4ea4657a1504d
MD5 ed3453971fc1f14fa0c60a129b7e7cb1
BLAKE2b-256 41b4ff8575411dab454b4678332a2839d8d405a7e2a9e6ce7cb4e7e2688850f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page