{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/4"}],"enrichment":{"capability":"Extends the requests library to make HTTP calls over UNIX domain sockets instead of TCP, supporting both explicit session objects and monkeypatching for minimal code changes.","skillfed_tags":["unix-socket","docker-client","system-integration"],"use_cases":["Query the Docker daemon API by connecting to /var/run/docker.sock without spawning a subprocess","Communicate with system services that expose HTTP-like APIs over UNIX sockets","Build tools that interact with local socket-based services while reusing existing requests-based code","Test HTTP clients against mock services listening on abstract namespace sockets in CI/CD pipelines","Avoid network overhead and port conflicts by using UNIX sockets for inter-process HTTP communication"],"what_it_does":"requests-unixsocket2 is a thin adapter that teaches the requests HTTP library to communicate over UNIX domain sockets instead of TCP connections. This is useful for talking to services that listen on local sockets\u2014like the Docker daemon on /var/run/docker.sock\u2014without needing a separate HTTP client library or lower-level socket code.\n\nYou can use it two ways: instantiate a special Session object and call methods on it, or monkeypatch the requests module globally (or temporarily via context manager) to make standard requests.get() and similar calls work with socket URLs. It supports both regular UNIX sockets and Linux abstract namespace sockets (prefixed with a NULL byte). The package depends only on requests and urllib3, so installation is straightforward.","worth_installing":"Yes, if you need to make HTTP requests to services listening on UNIX domain sockets (Docker, systemd, etc.) and want to reuse the familiar requests API. The low install friction and permissive license make it a straightforward choice. The aging maintenance status is not a blocker for this narrow, stable use case, but verify that the fork's divergence from the original project meets your needs."},"id":"requests-unixsocket2","links":{"html":"https://skillfed.io/packages/requests-unixsocket2","md":"https://skillfed.io/packages/requests-unixsocket2.md","pypi":"https://pypi.org/project/requests-unixsocket2/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-09-03","license_spdx":null,"license_treatment":"permissive","name":"requests-unixsocket2","python_support":"supports_current","summary":"Use requests to talk HTTP via a UNIX domain socket"},"popularity":{"monthly_downloads":513354,"position":6247,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.1"}
