Gravify is a Python library to interface with Gravatar profiles and avatars.
>>> from gravify import AvatarGenerator
>>> AvatarGenerator(size=500).generate_url('hello@example.com')
'https://gravatar.com/avatar/1753bdb368271a785887ddbfb926164f2f7c6a88f609c07ff0401c5572955206?s=500'
Gravify is available on PyPI. Install it with your preferred package manager:
$ uv add gravify
$ pip install gravify
Gravify officially supports Python 3.10+.
Read the documentation to learn how to use Gravify.