Skip to main content

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

Getting user profile image:

from libgravatar import Gravatar
g = Gravatar('myemailaddress@example.com')
g.get_image()
'http://www.gravatar.com/avatar/0bc83cb571cd1c50ba6f3e8a78ef1346.jpg?size=80'

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

Or you can use your Gravatar.com password:

from libgravatar import GravatarXMLRPC
g = GravatarXMLRPC('user@domain', password='1234')
g.test() # test the API

Project details


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.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page