{ "info": { "author": "Matthias Bussonnier", "author_email": "bussonniermatthias@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "IPython Async\\_magic\n====================\n\nAsync at the top level repl !\n\n.. code:: python\n\n In [1]: import aiohttp\n\n In [2]: res = await aiohttp.get('https://api.github.com')\n File \"\", line 1\n res = await aiohttp.get('https://api.github.com')\n ^\n SyntaxError: invalid syntax\n\n\n In [3]: %load_ext async_magic\n\n In [4]: res = %await aiohttp.get('https://api.github.com')\n\n In [5]: await res.json()\n Out[5]:\n {'authorizations_url': 'https://api.github.com/authorizations',\n 'code_search_url': 'https://api.github.com/search/code?q={query}{&page,per_page,sort,order}',\n 'commit_search_url': 'https://api.github.com/search/commits?q={query}{&page,per_page,sort,order}',\n 'current_user_authorizations_html_url': 'https://github.com/settings/connections/applications{/client_id}',\n 'current_user_repositories_url': 'https://api.github.com/user/repos{?type,page,per_page,sort}',\n 'current_user_url': 'https://api.github.com/user',\n 'emails_url': 'https://api.github.com/user/emails',\n 'emojis_url': 'https://api.github.com/emojis',\n ...\n }\n\nNote the ``%`` on assignments in\n``res = %await aiohttp.get('https://api.github.com')``\n\nChange loop:\n============\n\nUse ``%loop ``\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Carreau/async_magic", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "async_magic", "package_url": "https://pypi.org/project/async_magic/", "platform": "", "project_url": "https://pypi.org/project/async_magic/", "project_urls": { "Homepage": "https://github.com/Carreau/async_magic" }, "release_url": "https://pypi.org/project/async_magic/0.0.1/", "requires_dist": null, "requires_python": ">=3.5", "summary": "Define an async_magic for IPython that fake the async keyword at top level", "version": "0.0.1" }, "last_serial": 2693417, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "9f3d814553d8d9350d0f2e9aad9b765d", "sha256": "b06816f8acbb6fed85436ae15853bb076cf48efa8a61db28bcdeb4a95dbf2915" }, "downloads": -1, "filename": "async_magic-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9f3d814553d8d9350d0f2e9aad9b765d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 30963, "upload_time": "2017-03-09T07:39:27", "url": "https://files.pythonhosted.org/packages/4a/35/a75af81d556c59e9dc66cd84062cb9c2b84712d67dfd277e7f8e2b992cd0/async_magic-0.0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9f3d814553d8d9350d0f2e9aad9b765d", "sha256": "b06816f8acbb6fed85436ae15853bb076cf48efa8a61db28bcdeb4a95dbf2915" }, "downloads": -1, "filename": "async_magic-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9f3d814553d8d9350d0f2e9aad9b765d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 30963, "upload_time": "2017-03-09T07:39:27", "url": "https://files.pythonhosted.org/packages/4a/35/a75af81d556c59e9dc66cd84062cb9c2b84712d67dfd277e7f8e2b992cd0/async_magic-0.0.1-py3-none-any.whl" } ] }