{ "info": { "author": "William Forde", "author_email": "willforde@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. image:: https://badge.fury.io/py/urlquick.svg\n :target: https://pypi.python.org/pypi/urlquick\n\n.. image:: https://readthedocs.org/projects/urlquick/badge/?version=stable\n :target: http://urlquick.readthedocs.io/en/stable/?badge=stable\n\n.. image:: https://travis-ci.org/willforde/urlquick.svg?branch=master\n :target: https://travis-ci.org/willforde/urlquick\n\n.. image:: https://coveralls.io/repos/github/willforde/urlquick/badge.svg?branch=master\n :target: https://coveralls.io/github/willforde/urlquick?branch=master\n\n.. image:: https://api.codacy.com/project/badge/Grade/25951f521ebd4534ae64c725e0be9441\n :target: https://www.codacy.com/app/willforde/urlquick?utm_source=github.com&utm_medium=referral&utm_content=willforde/urlquick&utm_campaign=Badge_Grade\n\n.. image:: https://img.shields.io/pypi/pyversions/urlquick.svg\n :target: https://pypi.python.org/pypi/urlquick\n\n.. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg\n :target: https://saythanks.io/to/willforde\n\nUrlquick\n--------\nA light-weight http client with requests like interface. Featuring persistent connections and caching support.\nThis project was originally created for use by Kodi add-ons, but has grown into something more.\nI found, that while requests has a very nice interface, there was a noticeable lag when importing the library.\nThe other option available is to use urllib2, but then you loose the benefit of persistent connections that requests\nhave. Hence the reason for this project.\n\nAll GET, HEAD and POST requests are cached locally for a period of 4 hours. When the cache expires,\nconditional headers are added to a new request e.g. \"Etag\" and \"Last-modified\". Then if the server\nreturns a 304 Not-Modified response, the cache is reused, saving having to re-download the content body.\n\nFeatures\n--------\n* Simple Keep-Alive & Connection Pooling\n* Sessions with limited Cookie Controls\n* International Domains and URLs\n* Automatic Content Decoding\n* Elegant Key/Value Cookies\n* Automatic Decompression\n* Unicode Response Bodies\n* Basic Authentication\n* Connection Timeouts\n* Resource Caching\n\nInstall\n-------\nRun ::\n\n pip install urlquick\n\n-or- ::\n\n pip install git+https://github.com/willforde/urlquick.git\n\nUsage\n-----\n\nUrlquick is similar to the requests library but it only implements most top level methods\nlike GET, POST and PUT. The Session class is also implemented in a more limited form.\nThe response object is fully comparable with the 'requests' response object. # link request object ::\n\n >>> import urlquick\n >>> r = urlquick.get('https://api.github.com/events')\n >>> r.status_code\n 200\n >>> r.headers['content-type']\n 'text/html; charset=utf-8'\n >>> r.encoding\n 'utf-8'\n >>> r.content\n b'[{\"repository\":{\"open_issues\":0,\"url\":\"https://github.com/...\n >>> r.text\n u'[{\"repository\":{\"open_issues\":0,\"url\":\"https://github.com/...\n >>> r.json()\n [{u'repository': {u'open_issues': 0, u'url': 'https://github.com/...\n\n\n\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/willforde/urlquick", "keywords": "url lightweight caching http-client requests", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "urlquick", "package_url": "https://pypi.org/project/urlquick/", "platform": "OS Independent", "project_url": "https://pypi.org/project/urlquick/", "project_urls": { "Homepage": "https://github.com/willforde/urlquick" }, "release_url": "https://pypi.org/project/urlquick/0.9.2/", "requires_dist": [ "htmlement; extra == \"For parsing html content using 'response.parse()'\"" ], "requires_python": "", "summary": "A light-weight http client with requests like interface.Featuring persistent connectionsand caching support.", "version": "0.9.2" }, "last_serial": 3379892, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "8b7e77bb574ff4035b596161fdb34988", "sha256": "e59783e98f75b32d62f596c9168aee2246952c63097af65f4656797591d5f606" }, "downloads": -1, "filename": "urlquick-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8b7e77bb574ff4035b596161fdb34988", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18250, "upload_time": "2017-04-14T14:04:32", "url": "https://files.pythonhosted.org/packages/b4/ac/fa85752c40dafabbd3c6e43567a2d9ab74059d165f4e9bf345c043ace2e3/urlquick-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b028129a382a8116c94c02ac42bc6c1d", "sha256": "b10987d6b5d1d0a16a35a9026c810dbffd7eda7b0c7432c657a8ba3b2becd77a" }, "downloads": -1, "filename": "urlquick-0.1.2.tar.gz", "has_sig": false, "md5_digest": "b028129a382a8116c94c02ac42bc6c1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14971, "upload_time": "2017-04-14T14:04:34", "url": "https://files.pythonhosted.org/packages/24/40/6d757cdef4b91cbc266bcbad2f66bc8f79f9ae02bdce93d3e0cd64905d49/urlquick-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "a7cc28051a2b13d195c5b3bb98d1318b", "sha256": "39f1af282188408a02afa5c40da6be49ff687380ac76b8dcc48de54cae27bc03" }, "downloads": -1, "filename": "urlquick-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a7cc28051a2b13d195c5b3bb98d1318b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18242, "upload_time": "2017-04-26T06:56:43", "url": "https://files.pythonhosted.org/packages/fa/74/b6419c3231f8bc37c25cbced75af284d0bd2aeaf8ab3810cb22d78314271/urlquick-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b120ee211a215fefdcf1f070168903f3", "sha256": "aaf7de13c776b90d460b0a21870d153cd37ccaf836c219b9d898e9f9097be796" }, "downloads": -1, "filename": "urlquick-0.1.3.tar.gz", "has_sig": false, "md5_digest": "b120ee211a215fefdcf1f070168903f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15114, "upload_time": "2017-04-26T06:56:45", "url": "https://files.pythonhosted.org/packages/89/7c/befa20a0026dbc932aa60b75b3a467b5821006f5cf740b56b1f3815666db/urlquick-0.1.3.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "c231f776b661dcf5c86c94648a00a29c", "sha256": "abb8e015ac8e18c748e2930a2e5f034cb8164941e2f0d6568efc03a8fb6f709b" }, "downloads": -1, "filename": "urlquick-0.9.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c231f776b661dcf5c86c94648a00a29c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18962, "upload_time": "2017-08-14T23:06:25", "url": "https://files.pythonhosted.org/packages/1e/1e/1653ae12e6a70e5e697d8415436eeabbf29a056936bfd43c2f292f89a5d9/urlquick-0.9.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fe4066a24b5156a455f3f4df5ef1aac0", "sha256": "4c45a0f5717a06c081f95d303fbb4b58e8c4c5c02ac9b96739351a335b0cecdd" }, "downloads": -1, "filename": "urlquick-0.9.1.tar.gz", "has_sig": false, "md5_digest": "fe4066a24b5156a455f3f4df5ef1aac0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15785, "upload_time": "2017-08-14T23:06:27", "url": "https://files.pythonhosted.org/packages/47/0e/2882fb03bd2153a7627c411e2a431307c6d5480b92486fa39134ca224940/urlquick-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "a56f15ece443d6e6ce8f84f2639ce44d", "sha256": "049271871239b06978d65b5b8a00b6518019fb71850e2a2ec6bc2c9e867e343a" }, "downloads": -1, "filename": "urlquick-0.9.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a56f15ece443d6e6ce8f84f2639ce44d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19492, "upload_time": "2017-12-01T11:43:17", "url": "https://files.pythonhosted.org/packages/22/e2/89cfaecb05048c779870b18ac1fc610d56fee67fef82d3ba53a841b4b97f/urlquick-0.9.2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a56f15ece443d6e6ce8f84f2639ce44d", "sha256": "049271871239b06978d65b5b8a00b6518019fb71850e2a2ec6bc2c9e867e343a" }, "downloads": -1, "filename": "urlquick-0.9.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a56f15ece443d6e6ce8f84f2639ce44d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19492, "upload_time": "2017-12-01T11:43:17", "url": "https://files.pythonhosted.org/packages/22/e2/89cfaecb05048c779870b18ac1fc610d56fee67fef82d3ba53a841b4b97f/urlquick-0.9.2-py2.py3-none-any.whl" } ] }