Skip to main content

pyLibravatar

PyLibravatar is an easy way to make use of the federated Libravatar avatar hosting service from within your Python applications.

See the project page for the bug tracker and downloads.

Installation

To install using pip, simply do this:

$ pip install pylibravatar

Usage

To generate the correct avatar URL based on someone's email address, use the following:

>>> from libravatar import libravatar_url
>>> url = libravatar_url(email='person@example.com')
>>> print(f'<img src="{url}">')

Here are other options you can provide:

>>> url = libravatar_url(openid = 'http://example.org/id/Bob', https = True, size = 96, default = 'mm')

See the Libravatar documentation for more information on the special values for the "default" parameter.

License

Copyright (C) 2011, 2013, 2015 Francois Marier francois@libravatar.org

Copyright (C) 2016-2026 Oliver Falk oliver@linux-kernel.at

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Release files for pyLibravatar 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyLibravatar 2.0.2
File Size Uploaded
pylibravatar-2.0.2.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyLibravatar 2.0.2
File Interpreter ABI Platform
pylibravatar-2.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / pylibravatar-2.0.2.tar.gz

Download URL pylibravatar-2.0.2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
62dcd43148fb4d0b4d29606506cc42cdc606ee6caa4913a7287f2ff037b91a80
BLAKE2b-256 checksum
How to use checksums
bb9fed7fcf96a1ac10372696d1cbdc77f0a52c0a82eb5917d34369d9e63bf496
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / pylibravatar-2.0.2-py3-none-any.whl

Download URL pylibravatar-2.0.2-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da4c212c29119495c27de702803cb40cf26b1716ffebaecaf23a7754f4c260ac
BLAKE2b-256 checksum
How to use checksums
a4edf5c28521b8bdc94e18fa378a4da497b003559dfb8fb6cd36a28efa354120
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

2.0.2 This release

2 release files

2.0.0

2 release files

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page