Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 6d3ac52462d5ca0dbf5bce93657fac8b > files > 7

python-pylibravatar-1.6-2.fc18.noarch.rpm

# pyLibravatar

PyLibravatar is an easy way to make use of the federated [Libravatar](http://www.libravatar.org) 
avatar hosting service from within your Python applications.

See the [project page](https://launchpad.net/pylibravatar) 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 '<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](http://wiki.libravatar.org/api) for more
information on the special values for the "default" parameter.

## License

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

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.