{ "info": { "author": "Jon Wayne Parrott", "author_email": "jonwayne@google.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: MacOS", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Topic :: Internet", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "httplib2shim\n============\n\n|Build Status| |Coverage Status| |PyPI Version|\n\n``httplib2shim`` is a wrapper over ``httplib2`` that uses ``urllib3`` to perform HTTP requests. This library is intended to help existing legacy libraries (and their users) to migrate away from ``httplib2``. It is not intended to be a general purpose replacement for ``httplib2``. It does not support every feature and edge case for ``httplib2``, although contributions are welcome in order to help us cover these cases.\n\nPresently, ``httplib2shim`` passes the test suite for ``httplib2``. A few non-applicable tests were disabled, and it's very possible that the tests do not account for behavior that is depended on by clients.\n\n\nUsage\n-----\n\nIt's recommended to install ``urllib3[secure]`` before installing ``httplib2shim``:\n\n.. code:: bash\n\n pip install urllib3[secure] httplib2shim\n\nUsage is straightforward. You can substitute ``httplib2shim.Http`` anywhere ``httplib2.Http`` is used:\n\n.. code:: python\n\n import httplib2shim\n from oauth2client.client import GoogleCredentials\n\n\n credentials = GoogleCredentials.get_application_default()\n http = httplib2shim.Http()\n credentials.authorize(http)\n\n # http is now authorized with OAuth2 credentials and uses urllib3 under\n # the covers.\n\n\nAlternatively, if you do not control the construction of the ``Http`` object, you can use ``httplib2shim.patch()`` to monkey-patch the ``httplib2.Http`` class to point to ``httplib2shim.Http()``:\n\n.. code:: python\n\n import httplib2shim\n httplib2shim.patch()\n\n from googleapiclient.discovery import build\n from oauth2client.client import GoogleCredentials\n\n credentials = GoogleCredentials.get_application_default()\n\n # build constructs its own httplib2.Http instance.\n service = build('compute', 'v1', credentials=credentials)\n\n # service.http is now a httplib2shim.Http object.\n\nUnsupported Features\n--------------------\n\n* Arguments to the `Http` constructor will be accepted, but may not make a difference. For instance, ``ca_certs`` will have no effect. Instead, pass a ``urllib3.Pool`` instance ``http = httplib2shim.Http(pool=my_pool)``.\n* `Http.add_certificate` is a no-op and will warn.\n* Probably others, pull requests are welcome to complete the functionality.\n\n\nContributing changes\n--------------------\n\n- See `CONTRIBUTING.md`_\n\nLicensing\n---------\n\n- MIT - See `LICENSE`_\n\n.. _LICENSE: https://github.com/GoogleCloudPlatform/httplib2shim/blob/master/LICENSE\n.. _CONTRIBUTING.md: https://github.com/GoogleCloudPlatform/httplib2shim/blob/master/CONTRIBUTING.md\n\n.. |Build Status| image:: https://travis-ci.org/GoogleCloudPlatform/httplib2shim.svg\n :target: https://travis-ci.org/GoogleCloudPlatform/httplib2shim\n.. |Coverage Status| image:: https://coveralls.io/repos/GoogleCloudPlatform/httplib2shim/badge.svg?branch=master&service=github\n :target: https://coveralls.io/github/GoogleCloudPlatform/httplib2shim?branch=master\n.. |PyPI Version| image:: https://img.shields.io/pypi/v/httplib2shim.svg\n :target: https://pypi.python.org/pypi/httplib2shim", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/GoogleCloudPlatform/httplib2shim", "keywords": "httplib2 http urllib3", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "httplib2shim", "package_url": "https://pypi.org/project/httplib2shim/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/httplib2shim/", "project_urls": { "Homepage": "https://github.com/GoogleCloudPlatform/httplib2shim" }, "release_url": "https://pypi.org/project/httplib2shim/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "A wrapper over urllib3 that matches httplib2's interface", "version": "0.0.3" }, "last_serial": 4027658, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "0827b7fc9d173eab979ed44ffc0d9963", "sha256": "8051387db58c5a246eb2d2224ab8bd7ccb3722d3759dad771951059b0de2acd9" }, "downloads": -1, "filename": "httplib2shim-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0827b7fc9d173eab979ed44ffc0d9963", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17109, "upload_time": "2016-02-05T21:43:15", "url": "https://files.pythonhosted.org/packages/c6/8f/587d071b6cabd741ccaa2673be606eb065adc4971864662a2aef08b89fac/httplib2shim-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "2cb645789fec44337a805fd4edeada33", "sha256": "b26d57cbb68065cfabf95f50361c87bf97c01bd3e01e671a51409840954187c8" }, "downloads": -1, "filename": "httplib2shim-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2cb645789fec44337a805fd4edeada33", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 20120, "upload_time": "2017-04-17T17:25:37", "url": "https://files.pythonhosted.org/packages/96/91/02c3abcf6bb9819aba457b39b993529521cc6924d25b0c4f463c6cc4fceb/httplib2shim-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "86db728910f29097bbf348ba09cfe815", "sha256": "c3f364fb6a84b0f51af358175d3fa257d45ba1210dbcdfc7f2d9fabbca012374" }, "downloads": -1, "filename": "httplib2shim-0.0.2.tar.gz", "has_sig": false, "md5_digest": "86db728910f29097bbf348ba09cfe815", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17320, "upload_time": "2017-04-17T17:25:38", "url": "https://files.pythonhosted.org/packages/e8/e7/793f053373dbbde09fb05bea276afdc7253f535e0ee13b89bde4ed1fe375/httplib2shim-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "72b5c32eb2ea9cc2d7e707c72cac4524", "sha256": "7c61daebd93ed7930df9ded4dbf47f87d35a8f29363d6e399fbf9fec930f8d17" }, "downloads": -1, "filename": "httplib2shim-0.0.3.tar.gz", "has_sig": false, "md5_digest": "72b5c32eb2ea9cc2d7e707c72cac4524", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17412, "upload_time": "2017-06-26T16:33:15", "url": "https://files.pythonhosted.org/packages/5e/bf/d2762b70dd184959ac03f1ccbb61bff5b8bbfa9c0b7cc8ed522b963cd198/httplib2shim-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "72b5c32eb2ea9cc2d7e707c72cac4524", "sha256": "7c61daebd93ed7930df9ded4dbf47f87d35a8f29363d6e399fbf9fec930f8d17" }, "downloads": -1, "filename": "httplib2shim-0.0.3.tar.gz", "has_sig": false, "md5_digest": "72b5c32eb2ea9cc2d7e707c72cac4524", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17412, "upload_time": "2017-06-26T16:33:15", "url": "https://files.pythonhosted.org/packages/5e/bf/d2762b70dd184959ac03f1ccbb61bff5b8bbfa9c0b7cc8ed522b963cd198/httplib2shim-0.0.3.tar.gz" } ] }