{"id":23860,"library":"httplib2shim","title":"httplib2shim","description":"A wrapper over urllib3 that matches httplib2's interface, allowing users to replace httplib2 with urllib3 for better performance and compatibility. Version 0.0.3 is current; no longer actively maintained.","status":"maintenance","version":"0.0.3","language":"python","source_language":"en","source_url":"https://github.com/GoogleCloudPlatform/httplib2shim","tags":["httplib2","urllib3","compatibility"],"install":[{"cmd":"pip install httplib2shim","lang":"bash","label":"Default install"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"httplib2shim","correct":"import httplib2shim"},{"note":"","wrong":"","symbol":"Http","correct":"from httplib2shim import Http"}],"quickstart":{"code":"import httplib2shim\n\n# Replace httplib2's Http with shim\nhttp = httplib2shim.Http()\nresponse, content = http.request('https://www.google.com', 'GET')\nprint(response.status)","lang":"python","description":"Basic usage: instantiate Http and make a request."},"warnings":[{"fix":"Test your specific httplib2 usage; fall back to httplib2 if needed.","message":"The shim does not fully implement all httplib2 features (e.g., caching, proxy authentication).","severity":"gotcha","affected_versions":"all"},{"fix":"Consider migrating to urllib3 directly or using httplib2 with its own patches.","message":"This library is no longer actively maintained. Last release was 2021.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `from httplib2shim import Http` or `httplib2shim.Http()` directly – but import works.","cause":"Incorrect import: tried to access Http as attribute of module after `import httplib2shim`.","error":"AttributeError: module 'httplib2shim' has no attribute 'Http'"},{"fix":"Only pass positional args (uri, method) and body; avoid httplib2 extras like headers as keyword args.","cause":"The shim's request method does not accept some httplib2-specific parameters.","error":"TypeError: request() got an unexpected keyword argument '**kwargs'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}