{ "info": { "author": "Alexandre `Zopieux` Macabies", "author_email": "web@zopieux.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries" ], "description": "avatars-io-python\n=================\n\nPython avatar picker and uploader for Avatars.io.\n\nCurrent version of **avatarsio** is **0.1**; it's stable.\n\nRequirements, dependencies\n--------------------------\n\n`avatarsio` supports both Python 2 and Python 3 and is on\n[PyPi](http://pypi.python.org/pypi/avatarsio/).\n\nAs described in `requirements.txt`, the only dependency is\n[`requests`](http://docs.python-requests.org) (HTTP for humans, because, well,\nit is awesome and should be built-in).\n\nYou can install it from source or using `pip` (eg. in a virtualenv):\n\n pip install avatarsio\n\nUsage\n-----\n\nYou don't really need the lib if you just want to get user avatars from\nservices such as Twitter of Facebook. Just use the corresponding URL as\nexplained on [avatars.io](http://avatars.io/).\n\nThe lib is useful for custom avatar upload. You need first to\n[register an app](http://apps.getchute.com/apps/new) on Chute. Then, it's quite\nstraightforward:\n\n```python\n>>> from avatarsio import AvatarsIO\n>>> avtio = AvatarsIO('my-client-id', 'my-access-token')\n\n# With a file name:\n>>> avtio.upload('kitten.png')\n\"http://avatars.io/4fb6de143d242d44da000001/hashashash\"\n\n# With a file object:\n>>> fobj = open('kitten.png', 'rb')\n>>> avtio.upload(fobj)\n\"http://avatars.io/4fb6de143d242d44da000001/hashashash\"\n\n# You can give a custom identifer:\n>>> avtio.upload('kitten.png', 'my-identifier')\n\"http://avatars.io/4fb6de143d242d44da000001/my-identifier\"\n\n# And obviously, build sersvice avatar URLs:\n# (but sersiouly, you don't need the lib for that)\n>>> AvatarsIO.avatar_url('twitter', 'my-identifier')\n\"http://avatars.io/twitter/my-identifier\"\n```\n\nLicence\n-------\nMIT\n\nExtra stuff\n-----------\nFeel free to submit bug reports and improvements on the\n[bug tracker](https://github.com/Zopieux/avatars-io-python/issues).", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Zopieux/avatars-io-python", "keywords": "avatars avatarsio twitter facebook instagram gravatar", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "avatarsio", "package_url": "https://pypi.org/project/avatarsio/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/avatarsio/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Zopieux/avatars-io-python" }, "release_url": "https://pypi.org/project/avatarsio/0.1/", "requires_dist": null, "requires_python": null, "summary": "Avatar picker and uploader for Avatars.io", "version": "0.1" }, "last_serial": 439783, "releases": { "0.1": [] }, "urls": [] }