{"id":17526924,"url":"https://github.com/msabramo/requests-unixsocket","last_synced_at":"2025-10-04T11:57:33.871Z","repository":{"id":23759506,"uuid":"27133968","full_name":"msabramo/requests-unixsocket","owner":"msabramo","description":"Use requests to talk HTTP via a UNIX domain socket","archived":false,"fork":false,"pushed_at":"2025-09-22T11:06:52.000Z","size":133,"stargazers_count":214,"open_issues_count":8,"forks_count":30,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-09-22T13:09:21.156Z","etag":null,"topics":["http","python","requests","unix-domain-socket"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msabramo.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"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":"2014-11-25T16:06:59.000Z","updated_at":"2025-09-22T11:06:56.000Z","dependencies_parsed_at":"2025-03-13T00:00:46.980Z","dependency_job_id":"6e5de282-e440-4a0b-a819-7cbe8c5fbf70","html_url":"https://github.com/msabramo/requests-unixsocket","commit_stats":{"total_commits":89,"total_committers":11,"mean_commits":8.090909090909092,"dds":0.5280898876404494,"last_synced_commit":"31bdd069296cff2467e35f95e605a3433a42a264"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/msabramo/requests-unixsocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msabramo%2Frequests-unixsocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msabramo%2Frequests-unixsocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msabramo%2Frequests-unixsocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msabramo%2Frequests-unixsocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msabramo","download_url":"https://codeload.github.com/msabramo/requests-unixsocket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msabramo%2Frequests-unixsocket/sbom","scorecard":{"id":665165,"data":{"date":"2025-08-11","repo":{"name":"github.com/msabramo/requests-unixsocket","commit":"94f5fcfeffc9f1d3e05a18835c41863974f10c4b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Code-Review","score":4,"reason":"Found 4/10 approved changesets -- score normalized to 4","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":"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":"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":"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":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:165: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:204: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:218: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:549: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:589: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:598: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:634: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:643: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:760: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:830: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:836: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:906: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:916: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:669: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:709: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:791: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-cd.yml:800: update your workflow using https://app.stepsecurity.io/secureworkflow/msabramo/requests-unixsocket/ci-cd.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci-cd.yml:234","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of  11 third-party GitHubAction dependencies pinned","Info:   0 out of   1 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/ci-cd.yml:584","Info: jobLevel 'contents' permission set to 'read': .github/workflows/ci-cd.yml:629","Info: jobLevel 'actions' permission set to 'read': .github/workflows/ci-cd.yml:755","Info: jobLevel 'contents' permission set to 'read': .github/workflows/ci-cd.yml:786","Warn: no topLevel permission defined: .github/workflows/ci-cd.yml:1","Warn: no topLevel permission defined: .github/workflows/scheduled-runs.yml: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":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"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":10,"reason":"1 out of the last 1 releases have a total of 2 signed artifacts.","details":["Info: signed release artifact: requests_unixsocket-0.4.1-py3-none-any.whl.sigstore.json: https://github.com/msabramo/requests-unixsocket/releases/tag/v0.4.1","Info: provenance for release artifact: multiple.intoto.jsonl: https://github.com/msabramo/requests-unixsocket/releases/tag/v0.4.1"],"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":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'master'","Warn: could not determine whether codeowners review is allowed","Warn: no status checks found to merge onto branch 'master'","Warn: PRs are not required to make changes on branch 'master'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings"],"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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/ci-cd.yml:600"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 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-21T17:45:44.293Z","repository_id":23759506,"created_at":"2025-08-21T17:45:44.293Z","updated_at":"2025-08-21T17:45:44.293Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278308622,"owners_count":25965654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"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","python","requests","unix-domain-socket"],"created_at":"2024-10-20T15:02:37.968Z","updated_at":"2025-10-04T11:57:33.847Z","avatar_url":"https://github.com/msabramo.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"requests-unixsocket\n===================\n\n.. image:: https://badge.fury.io/py/requests-unixsocket.svg\n    :target: https://badge.fury.io/py/requests-unixsocket\n    :alt: Latest Version on PyPI\n\n.. image:: https://github.com/msabramo/requests-unixsocket/actions/workflows/ci-cd.yml/badge.svg?event=push\n    :target: https://github.com/msabramo/requests-unixsocket/actions/workflows/ci-cd.yml\n\nUse `requests \u003chttp://docs.python-requests.org/\u003e`_ to talk HTTP via a UNIX domain socket\n\nUsage\n-----\n\nExplicit\n++++++++\n\nYou can use it by instantiating a special ``Session`` object:\n\n.. code-block:: python\n\n    import json\n\n    import requests_unixsocket\n\n    session = requests_unixsocket.Session()\n\n    r = session.get('http+unix://%2Fvar%2Frun%2Fdocker.sock/info')\n    registry_config = r.json()['RegistryConfig']\n    print(json.dumps(registry_config, indent=4))\n\n\nImplicit (monkeypatching)\n+++++++++++++++++++++++++\n\nMonkeypatching allows you to use the functionality in this module, while making\nminimal changes to your code. Note that in the above example we had to\ninstantiate a special ``requests_unixsocket.Session`` object and call the\n``get`` method on that object. Calling ``requests.get(url)`` (the easiest way\nto use requests and probably very common), would not work. But we can make it\nwork by doing monkeypatching.\n\nYou can monkeypatch globally:\n\n.. code-block:: python\n\n    import requests_unixsocket\n\n    requests_unixsocket.monkeypatch()\n\n    r = requests.get('http+unix://%2Fvar%2Frun%2Fdocker.sock/info')\n    assert r.status_code == 200\n\nor you can do it temporarily using a context manager:\n\n.. code-block:: python\n\n    import requests_unixsocket\n\n    with requests_unixsocket.monkeypatch():\n        r = requests.get('http+unix://%2Fvar%2Frun%2Fdocker.sock/info')\n        assert r.status_code == 200\n\n\nAbstract namespace sockets\n++++++++++++++++++++++++++\n\nTo connect to an `abstract namespace\nsocket \u003chttps://utcc.utoronto.ca/~cks/space/blog/python/AbstractUnixSocketsAndPeercred\u003e`_\n(Linux only), prefix the name with a NULL byte (i.e.: `\\0`) - e.g.:\n\n.. code-block:: python\n\n    import requests_unixsocket\n\n    session = requests_unixsocket.Session()\n    res = session.get('http+unix://\\0test_socket/get')\n    print(res.text)\n\nFor an example program that illustrates this, see\n``examples/abstract_namespace.py`` in the git repo. Since abstract namespace\nsockets are specific to Linux, the program will only work on Linux.\n\n\nSee also\n--------\n\n- https://github.com/httpie/httpie-unixsocket - a plugin for `HTTPie \u003chttps://httpie.org/\u003e`_ that allows you to interact with UNIX domain sockets\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsabramo%2Frequests-unixsocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsabramo%2Frequests-unixsocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsabramo%2Frequests-unixsocket/lists"}