Python Avatar generator library
Project Links
Meta
Author: Krzysztof Ebert
Requires Python: >=3.6
Classifiers
Development Status
- 5 - Production/Stable
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Programming Language
- Python :: Implementation
- Python
- Python :: 3
- Python :: 3.6
- Python :: 3.7
- Python :: 3.8
Topic
- Multimedia :: Graphics
- Multimedia :: Graphics :: Graphics Conversion
- Multimedia :: Graphics :: Presentation
- Software Development :: Libraries
- Software Development :: Libraries :: Python Modules
- Utilities
py-avataaars - Python component for Avataaars
Python port of https://github.com/fangpenlin/avataaars
The core React component for Avataaars Generator developed by Fang-Pen Lin, based on the Sketch library Avataaars designed by Pablo Stanley.
Features
- SVG based
- Light weight
- Easy to use
Install
pip install py-avataaars
Usage
Basic usage:
from py_avataaars import PyAvataaar
avatar = PyAvataaar()
avatar.render_png_file('<output_file.png>')
Specify each part of avatar:
import py_avataaars as pa
avatar = pa.PyAvataaar(
style=pa.AvatarStyle.CIRCLE,
skin_color=pa.SkinColor.LIGHT,
hair_color=pa.HairColor.BROWN,
facial_hair_type=pa.FacialHairType.DEFAULT,
facial_hair_color=pa.HairColor.BLACK,
top_type=pa.TopType.SHORT_HAIR_SHORT_FLAT,
hat_color=pa.Color.BLACK,
mouth_type=pa.MouthType.SMILE,
eye_type=pa.EyesType.DEFAULT,
eyebrow_type=pa.EyebrowType.DEFAULT,
nose_type=pa.NoseType.DEFAULT,
accessories_type=pa.AccessoriesType.DEFAULT,
clothe_type=pa.ClotheType.GRAPHIC_SHIRT,
clothe_color=pa.Color.HEATHER,
clothe_graphic_type=pa.ClotheGraphicType.BAT,
)
avatar.render_png_file('<output_file.png>')
1.1.2
Feb 16, 2021
1.1.0
Feb 06, 2021
1.0.2
Jul 09, 2020
1.0.1
Jul 08, 2020
1.0.0
Jul 08, 2020
0.1.14
May 05, 2020
0.1.13
Mar 17, 2020
0.1.12
Oct 22, 2019