Identicons generator for python
Project description
identicons.py
Small library for generating identicons in python
Usage
from identicons import Identicon
# Create an Identicon generator
generator = Identicon(grid_size=5, cell_size=50)
# Get the identicon as bytes
image_bytes = generator.generate("Example")
print(image_bytes)
# result:
# b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\xfa\x00\x00\x00\xfa\x...........
# Generate & save the identicon to a file
generator.generate_to_file("Example", "example.png")
Install
pip install identiconspy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
identiconspy-1.0.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file identiconspy-1.0.0.tar.gz.
File metadata
- Download URL: identiconspy-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d63411dae8802102a4cc33a0659b63379333c1d40a7dd746c56cf3764b1e5d28
|
|
| MD5 |
9b0d4382c0859879616737388aee5649
|
|
| BLAKE2b-256 |
b6287d8d3b400610a8ea39135c259af36f9cd3f0cb14d0a52e0fa8a92be2df81
|
File details
Details for the file identiconspy-1.0.0-py3-none-any.whl.
File metadata
- Download URL: identiconspy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d10e117d0dea81a9fc04f0ddbd86df3f111e166ee3055e0c5986626c2d11cd9
|
|
| MD5 |
08528feea9bc820aeef93132f9ecfdda
|
|
| BLAKE2b-256 |
40e8a72ebcb0c9d6693c9349cf4e07bfe78eaaef589bed256ebc8cd2e8a1ccd1
|