Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Socks5 proxy client for Python

Project Description


Ermes is a socks5 implementation for Python (3.X only), the usage is quite straightforward.

from ermes import Socks5Proxy, Socks5Error
import socket

proxy = Socks5Proxy(("", 1080),
    username="the username no more than 255 chars or None",
    password="the password no more than 255 chars or None",
sock = socket.socket()
# use proxy.connect(sock, address)
# instead of sock.connect(address),
proxy.connect(sock, ("", 80))

# just do anything like a usual socket with `sock`


  • Authentication support is limited, only 0x00 (No auth) and 0x02 (username/password) is supported
  • Only command code 0x01 (TCP/IP stream) is supported
  • No IPv6 support
  • SOCKS5 only
Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Ermes-0.1a.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source Jan 19, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting