{"id":13610337,"url":"https://github.com/httplib2/httplib2","last_synced_at":"2026-07-10T13:26:00.461Z","repository":{"id":5379896,"uuid":"53002916","full_name":"httplib2/httplib2","owner":"httplib2","description":"Small, fast HTTP client library for Python. Features persistent connections, cache, and Google App Engine support. Originally written by Joe Gregorio, now supported by community.","archived":false,"fork":false,"pushed_at":"2026-06-26T10:10:15.000Z","size":3934,"stargazers_count":509,"open_issues_count":62,"forks_count":188,"subscribers_count":22,"default_branch":"master","last_synced_at":"2026-06-29T23:33:19.114Z","etag":null,"topics":["http","http-client","network","python"],"latest_commit_sha":null,"homepage":"http://httplib2.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/httplib2.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-03-02T22:59:52.000Z","updated_at":"2026-06-26T10:10:19.000Z","dependencies_parsed_at":"2024-06-18T12:23:46.605Z","dependency_job_id":"dbfee945-96d9-41e9-8932-65c2aca77af6","html_url":"https://github.com/httplib2/httplib2","commit_stats":{"total_commits":538,"total_committers":73,"mean_commits":7.36986301369863,"dds":0.6561338289962826,"last_synced_commit":"09eee8a81f552cbaa74f603f2dd9bcc3311ff6d7"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"purl":"pkg:github/httplib2/httplib2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httplib2%2Fhttplib2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httplib2%2Fhttplib2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httplib2%2Fhttplib2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httplib2%2Fhttplib2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/httplib2","download_url":"https://codeload.github.com/httplib2/httplib2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httplib2%2Fhttplib2/sbom","scorecard":{"id":471277,"data":{"date":"2025-08-11","repo":{"name":"github.com/httplib2/httplib2","commit":"1a6ff781792099e9e14d7beb610bd99112b17b07"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":3,"reason":"Found 10/27 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish.yaml:1","Warn: no topLevel permission defined: .github/workflows/style.yaml:1","Warn: no topLevel permission defined: .github/workflows/test.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:99: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:107: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yaml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/style.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/style.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/style.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/style.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/httplib2/httplib2/test.yaml/master?enable=pin","Warn: pipCommand not pinned by hash: script/test:28","Warn: pipCommand not pinned by hash: script/test:36","Warn: pipCommand not pinned by hash: script/test:42","Warn: pipCommand not pinned by hash: .github/workflows/publish.yaml:112","Warn: pipCommand not pinned by hash: .github/workflows/publish.yaml:35","Warn: pipCommand not pinned by hash: .github/workflows/publish.yaml:74","Warn: pipCommand not pinned by hash: .github/workflows/style.yaml:26","Warn: pipCommand not pinned by hash: .github/workflows/test.yaml:42","Warn: pipCommand not pinned by hash: .github/workflows/test.yaml:44","Warn: pipCommand not pinned by hash: .github/workflows/test.yaml:69","Info:   0 out of  16 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of  11 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: OSSFuzz integration found","Info: PythonAtherisFuzzer integration found: tests/fuzz_request.py:2","Info: PythonAtherisFuzzer integration found: tests/fuzz_url.py:2"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-79v4-65xg-pq4g"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T13:56:43.862Z","repository_id":5379896,"created_at":"2025-08-19T13:56:43.862Z","updated_at":"2025-08-19T13:56:43.862Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35110873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","http-client","network","python"],"created_at":"2024-08-01T19:01:43.774Z","updated_at":"2026-07-10T13:26:00.426Z","avatar_url":"https://github.com/httplib2.png","language":"Python","funding_links":[],"categories":["HTTP","HTTP Clients","Python","HTTP Clients [🔝](#readme)","Awesome Python","Programming Languages"],"sub_categories":["HTTP","Python"],"readme":"Introduction\n============\n\nhttplib2 is a comprehensive HTTP client library, httplib2.py supports many\nfeatures left out of other HTTP libraries.\n\nIf you want to help this project by bug report or code change, [contribution guidelines](contributing.md) may contain useful information.\n\n### HTTP and HTTPS\n\nHTTPS support is only available if the socket module was\ncompiled with SSL support.\n\n### Keep-Alive\n\nSupports HTTP 1.1 Keep-Alive, keeping the socket open and\nperforming multiple requests over the same connection if\npossible.\n\n### Authentication\n\nThe following three types of HTTP Authentication are\nsupported. These can be used over both HTTP and HTTPS.\n\n* Digest\n* Basic\n* WSSE\n\n### Caching\n\nThe module can optionally operate with a private cache that\nunderstands the Cache-Control: header and uses both the ETag\nand Last-Modified cache validators.\n\n### All Methods\n\nThe module can handle any HTTP request method, not just GET\nand POST.\n\n### Redirects\n\nAutomatically follows 3XX redirects on GETs.\n\n### Compression\n\nHandles both 'deflate' and 'gzip' types of compression.\n\n### Lost update support\n\nAutomatically adds back ETags into PUT requests to resources\nwe have already cached. This implements Section 3.2 of\nDetecting the Lost Update Problem Using Unreserved Checkout.\n\n### Unit Tested\n\nA large and growing set of unit tests.\n\n\nInstallation\n============\n\n\n    $ pip install httplib2\n\n\nStrings vs bytes\n================\n\nTo successfully use http2lib, you absolutely must understand the following sentence:\n\n**The headers are strings, but the content body is bytes.**\n\n\nUsage\n=====\n\nA simple retrieval:\n\n```python\nimport httplib2\nh = httplib2.Http(\".cache\")\n(resp_headers, content) = h.request(\"http://example.org/\", \"GET\")\n```\n\nThe 'content' is the content retrieved from the URL. The content\nis already decompressed or unzipped if necessary.\n\nTo PUT some content to a server that uses SSL and Basic authentication:\n\n```python\nimport httplib2\nh = httplib2.Http(\".cache\")\nh.add_credentials('name', 'password')\n(resp, content) = h.request(\"https://example.org/chapter/2\",\n                            \"PUT\", body=\"This is text\",\n                            headers={'content-type':'text/plain'} )\n```\n\nUse the Cache-Control: header to control how the caching operates.\n\n```python\nimport httplib2\nh = httplib2.Http(\".cache\")\n(resp, content) = h.request(\"http://bitworking.org/\", \"GET\")\n...\n(resp, content) = h.request(\"http://bitworking.org/\", \"GET\",\n                            headers={'cache-control':'no-cache'})\n```\n\nThe first request will be cached and since this is a request\nto bitworking.org it will be set to be cached for two hours,\nbecause that is how I have my server configured. Any subsequent\nGET to that URI will return the value from the on-disk cache\nand no request will be made to the server. You can use the\nCache-Control: header to change the caches behavior and in\nthis example the second request adds the Cache-Control:\nheader with a value of 'no-cache' which tells the library\nthat the cached copy must not be used when handling this request.\n\nMore example usage can be found at:\n\n * https://github.com/httplib2/httplib2/wiki/Examples\n * https://github.com/httplib2/httplib2/wiki/Examples-Python3\n\n\n### Decompression Limits\n\nTo mitigate denial-of-service risks from maliciously crafted compressed responses, the library enforces configurable limits during decompression. Limits are checked in fixed order: **hard limit** → **safe limit** → **ratio**.\n\n- **hard limit**\n  Absolute maximum decompressed output size (bytes). Exceeding it raises `DecodeLimitError`. Default: `10 GiB`.\n- **safe limit**\n  Output size below which the ratio check is skipped (avoids false positives on small payloads). Default: `10 MiB`.\n- **ratio**\n  Maximum allowed inflation factor (`output_bytes ÷ consumed_input_bytes`). Once output exceeds `safe_limit`, the ratio is enforced. Default: `100`.\n- **chunk size**\n  Internal processing chunk size in bytes (affects granularity of limit checks). Default: `65536` (64 KiB).\n\nConfiguration priority (highest first):\n1. `Http()` constructor arguments: `decode_limit_hard`, `decode_limit_safe`, `decode_limit_ratio`, `decode_limit_chunk`\n2. Environment variables: `httplib2_decode_limit_hard`, `httplib2_decode_limit_safe`, `httplib2_decode_limit_ratio`, `httplib2_decode_limit_chunk` (case-insensitive, uppercase also accepted)\n3. Library defaults (listed above)\n\nExample:\n```python\nh = Http(decode_limit_hard=50_000_000, decode_limit_ratio=50)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttplib2%2Fhttplib2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttplib2%2Fhttplib2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttplib2%2Fhttplib2/lists"}