
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
ComfortIcons is an identicon generation module for different identicon/icon/gravatar/avatar flavors
This package is an identicon generation module for different identicon/icon/gravatar/avatar flavors.
See libravatar project and gravatar project.
This module is heavly inspired by bitverseio's PHP Identicon Generator architecture/generators and azaghal's pydenticon package (gravatar retro-like identicon generator).
This module is available on pypi.org.
pip install comforticons
preprocessors
list andgenerator
class powered identicon generation
python3 -m comforticons
from comforticons import Identicon
# Customize preprocessors and generator settings here
generator = Identicon()
# This will generate 120x120 with 0 padding PNG identicon
# with transparent background 5x5 pixel identicon (retro gravatar)
# using PixelGenerator and MD5Preprocessor as default
identicon = generator.generate("provide data here")
# Save to file
with open("image.png", "wb") as file:
file.write(identicon)
from comforticons import Identicon
from comforticons.preprocessors.hash import * # *Preprocessor
from comforticons.generators.image import * # PixelGenerator
# Customize preprocessors and generator settings here
generator = Identicon(
# First, process data with md5, then with sha1
preprocessors = [MD5Preprocessor(), SHA1Preprocessor],
generator = PixelGenerator(
size = 10, # 10x10 grid
foreground_colors = ["#ffffff"], # Only use white foreground
background = "#000000", # black, non-transparent background
image_format = "png", # PNG image format
invert = True, # This will swap bg-fg colors
)
)
# Actually generate identicon
identicon = generator.generate("provide data here")
# Save to file
with open("image.png", "wb") as file:
file.write(identicon)
MD5Preprocessor
+PixelGenerator
"identicon"
SHA1Preprocessor
+PixelGenerator
"identicon"
See LICENCE.
Also see this LICENCE.
FAQs
ComfortIcons is an identicon generation module for different identicon/icon/gravatar/avatar flavors
We found that comforticons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.