{ "info": { "author": "Free TNT & Umbresp", "author_email": "darksoulgamer5852@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Idiotic-Wrapper (Python edition)\nThis is an API wrapper for the [idiot's guide api](https://api.anidiots.guide)\nThe wrapper is asynchronous and is hightly compatible with [discord.py](https://github.com/Rapptz/discord.py) Being built with aiohttp that comes with discord.py you don't have to add extra dependencies!\n\n## Example\nRetrieving image in a regular code\n```python\nimport idioticapi\nimport asyncio\n\nclient = idioticapi.Client(\"Your api key\", dev=True)\n\nasync def main():\n img = open(\"test.png\", \"wb\")\n img.write(await client.blame(\"This person\"))\n # untested though that's just what i think how it works shrug, its recommended to use it as a discord.py cog\n \nasyncio.get_event_loop().run_until_complete(main())\n```\nDiscord.py example\n```python\nimport idioticapi\n# you want easy access to it so maybe attach it to your bot # object, this allowes access to cogs as well and you don't have to remake the class everywhere.\nbot.api = idioticapi.Client(\"Your api key\", dev=True)\n\n@bot.command()\nasync def blame(ctx, *, text):\n await ctx.send(file=discord.File(await bot.api.blame(text), \"blame.png\"))\n# a simple example, change it to whatever you like to fit in a cog etc, also works with old d.py 0.16.x just change the way i sent things, i didn't test though but SHOULD work\n```\nMore info\nClient takes a session as third argument, which you can reuse another session if you have one or leave it to create a new aiohttp.ClientSession()\n\n## Requirements.\nPython Minimum version: 3.5\nDependencies:\n- aiohttp\n\n## Contributing\nContributing is allowed anytime just open a Pull Request with your changes, pretty straight forward right?\n\n## License\nReleased under MIT License.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/freetnt5852/idioticapi", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "idioticapi", "package_url": "https://pypi.org/project/idioticapi/", "platform": "", "project_url": "https://pypi.org/project/idioticapi/", "project_urls": { "Homepage": "https://github.com/freetnt5852/idioticapi" }, "release_url": "https://pypi.org/project/idioticapi/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "A simple idiot's guide api wrapper in python", "version": "1.0.1" }, "last_serial": 3655606, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "bdb7819690db6cfbd6ea09d3b9e5f3d7", "sha256": "8e51198e3512386c099b0324e8719b8fa3a53a73ea3ce814c0457861c2666e84" }, "downloads": -1, "filename": "idioticapi-1.0.0.tar.gz", "has_sig": false, "md5_digest": "bdb7819690db6cfbd6ea09d3b9e5f3d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4593, "upload_time": "2018-03-07T23:54:16", "url": "https://files.pythonhosted.org/packages/0f/d7/13e228c45e8be24134bd4c636797432c4bb0fba79c44228aec7d43e99a7f/idioticapi-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "31aa10256bcd45428d1d05b53e7fd8b3", "sha256": "77c2f68863d0d9efabcf09c9e1f57f7a694e84283d1281504f923d79aa89c670" }, "downloads": -1, "filename": "idioticapi-1.0.1.tar.gz", "has_sig": false, "md5_digest": "31aa10256bcd45428d1d05b53e7fd8b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4659, "upload_time": "2018-03-09T21:42:51", "url": "https://files.pythonhosted.org/packages/5c/99/9beaa6c807c5b0558a9e8bb8a44a11b72da9382ba5dc6c3c3fc3f2815a5d/idioticapi-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "31aa10256bcd45428d1d05b53e7fd8b3", "sha256": "77c2f68863d0d9efabcf09c9e1f57f7a694e84283d1281504f923d79aa89c670" }, "downloads": -1, "filename": "idioticapi-1.0.1.tar.gz", "has_sig": false, "md5_digest": "31aa10256bcd45428d1d05b53e7fd8b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4659, "upload_time": "2018-03-09T21:42:51", "url": "https://files.pythonhosted.org/packages/5c/99/9beaa6c807c5b0558a9e8bb8a44a11b72da9382ba5dc6c3c3fc3f2815a5d/idioticapi-1.0.1.tar.gz" } ] }