Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    avatars-io-python 0.1

    Download button

    No screenshots available
    Downloads: 66  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Alexandre Macabies | More programs
    MIT/X Consortium Lic... / FREE
    June 29th, 2012, 17:17 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    avatars-io-python description

    Avatar picker and uploader for Avatars.io

    avatars-io-python is a Python avatar picker and uploader module for Avatars.io.

    Usage

    You don't really need the lib if you just want to get user avatars from services such as Twitter of Facebook. Just use the corresponding URL as explained on avatars.io.

    The lib is useful for custom avatar upload. You need first to register an app on Chute. Then, it's quite straightforward:

    ```python
    >>> from avatarsio import AvatarsIO
    >>> avtio = AvatarsIO('my-client-id', 'my-access-token')

    # With a file name:
    >>> avtio.upload('kitten.png')
    "http://avatars.io/4fb6de143d242d44da000001/hashashash"

    # With a file object:
    >>> fobj = open('kitten.png', 'rb')
    >>> avtio.upload(fobj)
    "http://avatars.io/4fb6de143d242d44da000001/hashashash"

    # You can give a custom identifer:
    >>> avtio.upload('kitten.png', 'my-identifier')
    "http://avatars.io/4fb6de143d242d44da000001/my-identifier"

    # And obviously, build sersvice avatar URLs:
    # (but sersiouly, you don't need the lib for that)
    >>> AvatarsIO.avatar_url('twitter', 'my-identifier')
    "http://avatars.io/twitter/my-identifier"


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    avatar picker | Python library | Avatars.io uploader | Python | avatar | picker

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM