Skip to main content

py-retricon

Library to create identicons similar to Github avatars.

Port of node-retricon https://github.com/sehrgut/node-retricon to python.

Usage

from retricon import retricon

img = retricon("Hello World!")
img.save('hello.png', 'PNG')

Parameters

style           Predefined style (Default: None)
tile_size       Size of a tile (Default: 1)
tile_color      Tiles color (Default: 0)
tile_padding    Padding of each tiles (Default: 0)
bg_color        Background color (Default: None)
image_padding   Padding of the icon (Default: 0)
tiles           Number of tiles that make the width of the icon (Default: 5)
min_fill        Minimum ratio of tile in the image (Default: 0.3)
max_fill        Maximum ratio of tile in the image (Default: 0.9)
vertical_sym    Use vertical symmetry (Default: True)
horizontal_sym  Use horizontal symmetry (Default: False)
width           Width of the output image in pixels (Default: 500)

Predefined styles

'github'
'gravatar'
'mono'
'mosaic'
'mini'
'window'

Valid color value

None -> transparent
0 -> the lighter color chosen for you from the hash
1 -> the darker color chosen for you from the hash
An array describing the RGB(A) color (e.g. [125, 75, 250])
An hexadecimal representation of the color (e.g. "0fd5e4")

Metadata

Release files for retricon 1.3.3

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

Source distribution (sdist)

Source distribution for retricon 1.3.3
File Size Uploaded Provenance Actions
retricon-1.3.3.tar.gz 4.9 kB Without provenance Details for retricon-1.3.3.tar.gz

Built distribution (wheel)

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

Total release size: 10.1 kB

Release files / retricon-1.3.3.tar.gz

Download URL retricon-1.3.3.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
554bdec59d6222828b9cc8e35abb3934ed0fdd79701dfcbd0c10fe6921db6acb
BLAKE2b-256 checksum
How to use checksums
67aaa98dcb1bcb2d5056f2d71f59ba2cb8a385211d8f3560eb3c0ae65bbd9ab7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / retricon-1.3.3-py3-none-any.whl

Download URL retricon-1.3.3-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d5f456234094bd3a6a358935b9366f7c2741f2341cb138616dc441dcfb38c68
BLAKE2b-256 checksum
How to use checksums
91bf0a4c1d8380d707b4f6b0d14cd4ab147ad92f4b53c6bf96aeb0090bcae242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for retricon 1.3.3

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.

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