{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/2"}],"enrichment":{"capability":"Extends the requests library to make HTTP calls over UNIX domain sockets instead of TCP, enabling communication with local socket-based services like Docker.","skillfed_tags":["unix-socket","docker-client","http-adapter"],"use_cases":["Query Docker daemon API by connecting to /var/run/docker.sock without spawning a subprocess","Communicate with systemd user services or other system daemons that expose HTTP APIs via socket files","Build container orchestration tools that need direct socket-level access to container runtimes","Test HTTP services running locally that only listen on UNIX sockets in development environments","Interact with Kubernetes kubelet or other Kubernetes components via their socket endpoints"],"what_it_does":"requests-unixsocket is a thin adapter that teaches the requests library to speak HTTP over UNIX domain sockets instead of TCP. It works by registering a custom transport adapter that intercepts http+unix:// URLs and routes them through a local socket connection. The package is primarily used to interact with services that expose APIs only via socket files\u2014most commonly Docker's daemon socket, but also other containerization and system management tools that follow this pattern.\n\nYou can use it two ways: by instantiating a special Session object and calling methods on it, or by monkeypatching the requests module globally (or within a context manager) to make standard requests.get() calls work with socket URLs. The package supports both standard UNIX sockets and Linux abstract namespace sockets, and it requires only requests as a runtime dependency.","worth_installing":"Yes, if you need to make HTTP requests to services listening on UNIX domain sockets. The package is lightweight, actively maintained, has no known vulnerabilities, and integrates seamlessly with the familiar requests API. The main caveat is that license treatment is unclear in the metadata, so verify the actual license in the repository before use in proprietary code."},"id":"requests-unixsocket","links":{"html":"https://skillfed.io/packages/requests-unixsocket","md":"https://skillfed.io/packages/requests-unixsocket.md","pypi":"https://pypi.org/project/requests-unixsocket/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-03-07","license_spdx":null,"license_treatment":"unclear","name":"requests-unixsocket","python_support":"supports_current","summary":"Use requests to talk HTTP via a UNIX domain socket"},"popularity":{"monthly_downloads":2927288,"position":2822,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.4.1"}
