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.5.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for libgravatar-0.2.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b46cb34946df41fffecdaf0f9e5b32a8e6a1b87cd104d58f0af324f2ba5ae937 |
|
MD5 | 44a24f2787edef906bfc9cb0993049b6 |
|
BLAKE2b-256 | e9e7826ded74f0cb652914f1c83524ad25a6bc6b1a6607bf0b31ec5b4e4d7043 |