{
  "id": "aiohttp",
  "name": "aiohttp",
  "description": "HTTP client module for MicroPython asyncio module",
  "version": "0.0.8",
  "author": "",
  "license": "MIT",
  "tags": [
    "python-ecosys"
  ],
  "status": "HUMAN_REVIEWED",
  "official": true,
  "source": "https://github.com/micropython/micropython-lib/tree/master/python-ecosys/aiohttp",
  "updatedAt": "2026-08-11T03:55:17.965Z",
  "page": "https://checkmim.com/packages/aiohttp",
  "createdAt": "2025-05-27T04:19:19.510Z",
  "install": {
    "mpremote": "mpremote mip install aiohttp",
    "mip": "import mip; mip.install(\"aiohttp\")"
  },
  "readme": "aiohttp is an HTTP client module for MicroPython asyncio module,\nwith API mostly compatible with CPython [aiohttp](https://github.com/aio-libs/aiohttp)\nmodule.\n\n> [!NOTE]\n> Only client is implemented.\n\nSee `examples/client.py`\n```py\nimport aiohttp\nimport asyncio\n\nasync def main():\n\n    async with aiohttp.ClientSession() as session:\n        async with session.get('http://micropython.org') as response:\n\n            print(\"Status:\", response.status)\n            print(\"Content-Type:\", response.headers['Content-Type'])\n\n            html = await response.text()\n            print(\"Body:\", html[:15], \"...\")\n\nasyncio.run(main())\n```\n```\n$ micropython examples/client.py\nStatus: 200\nContent-Type: text/html; charset=utf-8\nBody: <!DOCTYPE html> ...\n\n```\n"
}