Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

socks-uds

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socks-uds

Socks over Unix Domain Socket

  • 1.3
  • PyPI
  • Socket score

Maintainers
1

Socks over Unix Domain Socket

opener = socks.build_opener(socks_path="/var/lib/tor-shared/public.socket")
with opener.open("https://www.google.com/") as fp:
    assert fp.code == 200
    assert fp.read(20) == b"<!doctype html><html"

Features

  • Allows applications to connect to internet with just unix domain socket
  • Works with containers and systemd private network
  • Supports both sync and async usage
  • urllib compatible build_opener
  • Optional httpcore transport for use with libraries like httpx

This is not a feature complete socks proxy. Only client mode is supported. It is designed for use with tor's unix socks socket

  • No support for socks bind
  • No support for udp
  • Only NoAuth and UserPass auth supported
  • Only supports socks5h protocol. Connects to the socks proxy as domain name. However ip string can be passed for domain name with tor

Usage

Please check socks_test.py and Makefile

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc