boringavatars is a Python port of the boring-avatars JS library.
pip install boringavatars
from boringavatars import avatar
# returns the string corresponding to the generated SVG
avatar(
"Maria Mitchell",
variant="marble",
colors=["92A1C6", "146A7C", "F0AB3D", "C271B4", "C20D90"],
title=False,
size=40,
square=True,
)
MIT