{ "info": { "author": "Michel Casabianca", "author_email": "casa@sweetohm.net", "bugtrack_url": null, "classifiers": [], "description": "HTTP 1\n======\n\nHTTP1 is a wrapper around httplib to perform HTTP requests in a single\ncall. For instance, to get PyPI index of packages, you might write:\n\n::\n\n import http1\n\n print http1.request('http://pypi.python.org/simple/').body\n\nWorks on both Python 2 and 3 (was tested on *2.7.10* and *3.4.3*).\n\nrequest() method\n----------------\n\nThis method performs an HTTP request. The signature of the request\nmethod is the following:\n\n::\n\n request(url, params={}, method='GET', body=None, headers={},\n content_type=None, content_length=True, username=None,\n password=None, capitalize_headers=True,\n follow_redirect=True, max_redirect=3)\n\nThe parameters are the following:\n\n- url: the URL call, including protocol and parameters (such as\n *http://www.google.com?foo=1&bar=2*).\n- params: URL parameters as a map, so that *{'foo': 1, 'bar': 2}* will\n result in an URL ending with *?foo=1&bar=2*.\n- method: the HTTP method (such as *GET* or *POST*). Defaults to *GET*.\n- body: the body of the request as a string. Defaults to *None*.\n- headers: request headers as a dictionnary. Defaults to *{}*.\n- content\\_type: the content type header of the request. Defauls to\n *None*.\n- content\\_length: tells if we should add content length headers to the\n request. Defaults to *True*.\n- username: username while performing basic authentication, must be set\n with password.\n- password: password while performing basic authentication, must be set\n with username.\n- capitalize\\_headers: tells if headers should be capitalized (so that\n their names are all like *Content-Type* for instance).\n- follow\\_redirect: tells if http1 should follow redirections (status\n codes *3xx*). Defaults to *True*.\n- max\\_redirect: maximum number of redirections to follow. If there are\n too many redirects, a TooManyRedirectsException is raised. Defaults\n to *3*.\n\nThis method returns the response as a Response object described\nhereafter.\n\nMay raise a *TooManyRedirectsException*.\n\n*NOTE*: to call HTTPS URLs, Python must have been built with SSL\nsupport.\n\nThere are dedicated functions for HTTP methods (*GET*, *HEAD*, *POST*,\n*PUT*, *DELETE*, *CONNECT*, *OPTIONS* and *TRACE*). Thus, to perform a\nhead call for instance, you may write:\n\n::\n\n response = http1.head('http://www.example.com')\n\nWhich is the same as:\n\n::\n\n response = http1.request('http://www.example.com', method='HEAD')\n\nResponse object\n---------------\n\nThis object encapsulates status code (*200*, *404*, as an integer),\nmessage (such as *OK*, *Not Found*, as a string), headers (as a\ndictionnary), and body (as a string).\n\nTooManyRedirectsException\n-------------------------\n\nThis exception is thrown when there have been too many redirects (that\nis a number of refirects greater than *max\\_redirect*).\n\n*Enjoy!*", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/http1/", "keywords": null, "license": "Apache Software License", "maintainer": null, "maintainer_email": null, "name": "http1", "package_url": "https://pypi.org/project/http1/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/http1/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/http1/" }, "release_url": "https://pypi.org/project/http1/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "http1 is an API to perform HTTP requests in a single call", "version": "1.0.1" }, "last_serial": 1767035, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cf0cb21b28d0ae74d7ddc9c30d329296", "sha256": "1c512fc8e95e6c1481ec084ef0332fa208236fad930ce0e5b7b0fc84e0781bec" }, "downloads": -1, "filename": "http1-0.1.0.tar.gz", "has_sig": false, "md5_digest": "cf0cb21b28d0ae74d7ddc9c30d329296", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2610, "upload_time": "2012-03-29T17:42:29", "url": "https://files.pythonhosted.org/packages/21/bb/e0c18e704391cab51644082d80f2fb32400554bd7dba68b0acdfa06427f8/http1-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "087f585dc74b15bb8616df8a63ee0824", "sha256": "8a258f15983fec561b1ed37d71f27b4e4cd5e7ef982da942a2a0e0657524331d" }, "downloads": -1, "filename": "http1-0.1.1.tar.gz", "has_sig": false, "md5_digest": "087f585dc74b15bb8616df8a63ee0824", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2716, "upload_time": "2012-03-30T00:31:28", "url": "https://files.pythonhosted.org/packages/21/f6/d35c033601ce820268b503e444831d72c68b3d6fc5c2403006f209a5498c/http1-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "714bc137d62f6ec8b68f6430e729cb29", "sha256": "38cb0c60e6cfcde4272af6ec4fc0cb84db4e68cb8a4033036043a77286bd278d" }, "downloads": -1, "filename": "http1-0.1.2.tar.gz", "has_sig": false, "md5_digest": "714bc137d62f6ec8b68f6430e729cb29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2705, "upload_time": "2012-03-30T01:15:06", "url": "https://files.pythonhosted.org/packages/24/69/86f0179f03f0a4b8a22318540e567bbfe6d6b45de77a2afe3c71e008f49b/http1-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c7f0d53dc8ed17feed096507ba298c9c", "sha256": "bb64ed271e3fea623b8891508a09f4fad5c54d2a61221a94f4b1fc0a4514c598" }, "downloads": -1, "filename": "http1-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c7f0d53dc8ed17feed096507ba298c9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2778, "upload_time": "2013-07-05T16:12:33", "url": "https://files.pythonhosted.org/packages/58/a3/adac3e3f64e78688eb5c31f25499dfa6b18f913f0fedacd1094465fa142a/http1-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "6fbc1db70d00f11d4cb5ada95c39e31a", "sha256": "18e28a7fa562b439c26530b2b790a3c12f5547062ebf98288b59dfb423bbccf6" }, "downloads": -1, "filename": "http1-0.1.4.tar.gz", "has_sig": false, "md5_digest": "6fbc1db70d00f11d4cb5ada95c39e31a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6786, "upload_time": "2014-04-04T11:01:34", "url": "https://files.pythonhosted.org/packages/5e/49/c75a7f6d7c6ccd435ef240a0db39f45bfc32ae91e9edd58811e0b03db9a0/http1-0.1.4.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "b5a90d288a5a3b595d2d2b42c01e03a5", "sha256": "9aa6c20c94c87fd9d6956f0625852ee4b5fb60405b1d0b4c54aafbedac0ea9a1" }, "downloads": -1, "filename": "http1-0.2.0.tar.gz", "has_sig": false, "md5_digest": "b5a90d288a5a3b595d2d2b42c01e03a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7035, "upload_time": "2014-04-04T22:44:02", "url": "https://files.pythonhosted.org/packages/a0/c6/0106019cc40b171ac696e66535bc70b3a79c34983ec66bc6e4d625668898/http1-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "3d034c5e23b647417998d535f3cac2b7", "sha256": "2969592383096fb165aab1a3b38c2719c28b8a0b2bf26af3a03db0b78ef4def2" }, "downloads": -1, "filename": "http1-0.2.1.tar.gz", "has_sig": false, "md5_digest": "3d034c5e23b647417998d535f3cac2b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7080, "upload_time": "2014-04-05T07:45:17", "url": "https://files.pythonhosted.org/packages/74/65/3f3062e13d4c1e162c7ed127928d9a60630913a5629f5eed3f5be1e6a064/http1-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "7ccb57ed7e214fec8dd894cfb291f7a5", "sha256": "887e6c169686be2b9c239bf8784656d1256c691f5c6919a304c5de652c5343eb" }, "downloads": -1, "filename": "http1-0.3.0.tar.gz", "has_sig": false, "md5_digest": "7ccb57ed7e214fec8dd894cfb291f7a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7462, "upload_time": "2014-04-05T08:48:37", "url": "https://files.pythonhosted.org/packages/a1/4b/02d0f98d83e7f49be05be5d1c4d708e37d2610bf81d97d1cc1f5804f4253/http1-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "94b47fb90f1e9fd0509c5f649e134834", "sha256": "297be4a252cf489f54a9f1ae89739def888f107510cc47f870593dc0a6f3bd41" }, "downloads": -1, "filename": "http1-0.3.1.tar.gz", "has_sig": false, "md5_digest": "94b47fb90f1e9fd0509c5f649e134834", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7539, "upload_time": "2014-05-05T14:05:08", "url": "https://files.pythonhosted.org/packages/e3/c1/d4d3a7b548aefaf60c3a1a2081461feaafd63e7299bcd52692e41ff8d05d/http1-0.3.1.tar.gz" } ], "0.3.2": [], "0.4.0": [ { "comment_text": "", "digests": { "md5": "c2462b2401e3c2a59d8fc9de93aefed2", "sha256": "8492419aa9e642fdbfe9f32d0af1e1ed8bb9486ac03c29a007981ba6eaaa1107" }, "downloads": -1, "filename": "http1-0.4.0.tar.gz", "has_sig": false, "md5_digest": "c2462b2401e3c2a59d8fc9de93aefed2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7709, "upload_time": "2015-04-26T20:24:37", "url": "https://files.pythonhosted.org/packages/28/c2/f808f22bcfe72a35373bd817e324fd9b0f6649b1dcf43be3217dacfb8838/http1-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "8fd042b6dcb7ca83e6ee4b2ffbb3be53", "sha256": "8a8cd1262c49ded0f1283cc31cdf0a308ec1a34f867940c7781964e38c8465ff" }, "downloads": -1, "filename": "http1-0.5.0.tar.gz", "has_sig": false, "md5_digest": "8fd042b6dcb7ca83e6ee4b2ffbb3be53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7984, "upload_time": "2015-07-17T14:00:30", "url": "https://files.pythonhosted.org/packages/21/08/69fb5ec79284171585277f606a46bd3e3981487c053c5e67bb3096943854/http1-0.5.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "da2b688f6ad2e170ea9259fe71bded9c", "sha256": "7b3159acbed6e07e529febdc24df50d2227ff030e4b1b9155a244d5883c6e62f" }, "downloads": -1, "filename": "http1-1.0.1.tar.gz", "has_sig": false, "md5_digest": "da2b688f6ad2e170ea9259fe71bded9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8173, "upload_time": "2015-10-13T16:30:33", "url": "https://files.pythonhosted.org/packages/6b/02/d0625be1d09d910579755998f8f0817c2f1174b2674f05449285c5db3eae/http1-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "da2b688f6ad2e170ea9259fe71bded9c", "sha256": "7b3159acbed6e07e529febdc24df50d2227ff030e4b1b9155a244d5883c6e62f" }, "downloads": -1, "filename": "http1-1.0.1.tar.gz", "has_sig": false, "md5_digest": "da2b688f6ad2e170ea9259fe71bded9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8173, "upload_time": "2015-10-13T16:30:33", "url": "https://files.pythonhosted.org/packages/6b/02/d0625be1d09d910579755998f8f0817c2f1174b2674f05449285c5db3eae/http1-1.0.1.tar.gz" } ] }