{ "info": { "author": "Paul Sokolovsky", "author_email": "micropython-lib@googlegroups.com", "bugtrack_url": null, "classifiers": [], "description": "HTTP clients in micropython-lib\n===============================\n\nmicropython-lib currently offers 4 HTTP client modules:\n\n* ``urllib.urequest``\n* ``urequests``\n* ``uurequests``\n* ``uaiohttpclient``\n\nThis README is intended to describe differences among them and help\nto choose the right module for a particular use.\n\n* ``urllib.urequest`` implements a subset of API CPython standard library\n module urllib.request. This module is intended to be the most minimal\n of all three and provide an efficient, stream-based API. It doesn't\n support automatic redirects or chunked transfer encoding.\n* ``urequests`` implements a subset of API of the popular 3rd-party package\n ``requests``. ``requests`` brags itself as \"HTTP for Humans\", which\n means that its API is not ideal, and implementation is inefficient.\n ``urequests`` implements only a subset of it, and tries to mend some\n poor defaults of the prototype module. Still, it's less efficient\n than ``urllib.urequest``. Redirects are handled, but not chunked\n transfer encoding.\n* ``uurequests`` is capture of the version 0.8 of ``urequests``, before\n opening the door for adding more features to the latter. It's provided\n for very small systems which still would like requests-like API.\n* ``uaiohttpclient`` is an HTTP client for ``uasyncio`` module. It's\n the only of all 3 which supports chunked transfer encoding.\n\nThus, the selection guide:\n\n* Whenever possible, use ``urllib.urequest``.\n* If you write a once-off, throw-away app where you don't care about\n efficiency, you can use ``urequests``.\n* If you wrote that for very small system and above didn't work, can\n give ``uurequests`` a try.\n* If you devel an async app, use ``uaiohttpclient``.\n* If you need support for more HTTP protocol features, use\n ``uaiohttpclient`` and write an async app.\n\nFuture of the modules:\n\n* ``urllib.urequest`` is intended to stay minimal and unlikely will get more\n features (it's suitable for ~80% of possible usage scenarios).\n* ``urequests`` has bloat in its DNA, so likely will slowly grow more features\n to match the upstream module, which will make it even less suitable for\n low-memory targets.\n* ``uurequests`` was snapshotted to address concern of such low-memory systems\n support. It's static, and only critical bugfixes are intended to be applied.\n* ``uaiohttpclient`` may get updated as needed.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pfalcon/micropython-lib", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "micropython-uurequests", "package_url": "https://pypi.org/project/micropython-uurequests/", "platform": "", "project_url": "https://pypi.org/project/micropython-uurequests/", "project_urls": { "Homepage": "https://github.com/pfalcon/micropython-lib" }, "release_url": "https://pypi.org/project/micropython-uurequests/0.8.1/", "requires_dist": null, "requires_python": "", "summary": "uurequests module for MicroPython", "version": "0.8.1" }, "last_serial": 4371561, "releases": { "0.8": [ { "comment_text": "", "digests": { "md5": "6e113c9cf3a01dce1de5461b81a44277", "sha256": "934661b0e638549a10ec1f1ac1be84c17b37d9ddc54af91c9779873f57496e16" }, "downloads": -1, "filename": "micropython-uurequests-0.8.tar.gz", "has_sig": false, "md5_digest": "6e113c9cf3a01dce1de5461b81a44277", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2649, "upload_time": "2018-10-13T09:22:59", "url": "https://files.pythonhosted.org/packages/5d/e0/5f8049bad0414194381f00b13da0fb3c179fae99960de2993ff4fc00f80a/micropython-uurequests-0.8.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "08c7f7126eb6b3d798cb3139c908a5e4", "sha256": "93dcd84cfa8c9f92448f7c3df3955504e4272d2bb0b43927d777839ed22a9e87" }, "downloads": -1, "filename": "micropython-uurequests-0.8.1.tar.gz", "has_sig": false, "md5_digest": "08c7f7126eb6b3d798cb3139c908a5e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2650, "upload_time": "2018-10-13T10:30:12", "url": "https://files.pythonhosted.org/packages/fb/64/cffc1b2d5cfa8464c5e926f830759732525a95332d3924c7fbd0b736974a/micropython-uurequests-0.8.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "08c7f7126eb6b3d798cb3139c908a5e4", "sha256": "93dcd84cfa8c9f92448f7c3df3955504e4272d2bb0b43927d777839ed22a9e87" }, "downloads": -1, "filename": "micropython-uurequests-0.8.1.tar.gz", "has_sig": false, "md5_digest": "08c7f7126eb6b3d798cb3139c908a5e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2650, "upload_time": "2018-10-13T10:30:12", "url": "https://files.pythonhosted.org/packages/fb/64/cffc1b2d5cfa8464c5e926f830759732525a95332d3924c7fbd0b736974a/micropython-uurequests-0.8.1.tar.gz" } ] }