Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
A simple avatar generator with the ability to export to PNG and SVG.
The whole system is built on SVG.
The idea and all the parts were taken from getavataaars.com
Developed by y0gurt-dv 2022.
Lists of all the preset parts you can import from the library.
You can specify your own colors in the color fields, but if the color is not specified, it will be selected from the preset ones.
from AvatarsGenerator import (
HAIR_COLORS,
PALETTE_COLORS,
SKIN_COLORS,
MOUTHS_NAMES,
EYEBROWS_NAMES,
EYES_NAMES,
HATS_NAMES,
FACIALHAIRS_NAMES,
GLASSES_NAMES,
ACCESORIES_NAMES,
HAIRS_NAMES,
CLOTHING_NAMES,
GRAPHICS_NAMES,
)
from AvatarsGenerator import generate_avatar
# Example of config
config = {
'eyebrow_name': '',
'eyes_name': '',
'mouth_name': '',
'skin_color': '',
"clothing_name": '',
"clothing_color": '',
'graphic_name': '',
'hat_name': '',
'hat_color': '',
'hair_name': '',
'hair_color': '',
'facial_hair_name': '',
'facial_hair_color': '',
'glasses_name': '',
'accesories_name': '',
}
png_bytes = generate_avatar(
config=config,
output_type='png_bytes',
#Optional parameter. Default True
auto_optional=True
)
with open('avatar.png', 'wb') as fp:
fp.write(png_bytes)
if auto_optional == True
All optional field will be filled in automatically
All required fields (fields that are not in OPTIONAL_FIELDS) that are not specified in the config
FAQs
Random avatars generator
We found that AvatarsGenerator 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.