A library that provides a Python 3 interface for the Gravatar API.
Project description
A library that provides a Python 3 interface for the Gravatar API. API details: https://en.gravatar.com/site/implement/
Installation
Install via pip:
$ pip install libgravatar
Usage
See more details on https://libgravatar.readthedocs.org/
Gravatar API
Gravatar API require no authentication to get images and profiles URLs.
Getting the user profile image:
from libgravatar import Gravatar g = Gravatar('myemailaddress@example.com') g.get_image() 'http://www.gravatar.com/avatar/0bc83cb571cd1c50ba6f3e8a78ef1346'
Getting the profile URL:
from libgravatar import Gravatar g = Gravatar('myemailaddress@example.com') g.get_profile() 'http://www.gravatar.com/0bc83cb571cd1c50ba6f3e8a78ef1346'
Gravatar XML-RPC API
The XML-RPC API require authentication.
You can use your Gravatar.com password:
from libgravatar import GravatarXMLRPC g = GravatarXMLRPC('user@domain', password='1234') g.test() # test the API
or if you have an account at Wordpress.com you can use your API Key:
from libgravatar import GravatarXMLRPC g = GravatarXMLRPC('user@domain', apikey='1234') g.test() # test the API
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
libgravatar-0.2.4.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for libgravatar-0.2.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bff40a1faeb9097da01c791e310fd12a687e38c7950622abfd45d107ca524368 |
|
MD5 | 3710dc7c0e3e13ebcf361ee7cc50214c |
|
BLAKE2b-256 | 4010aea5fb4f490b684bdc59581701274bcfb1cf30d97581e62db7756a7d593e |