Skip to main content

A nicer API around sockets.

Project description

A friendlier interface to socket.

Emulates file-like objects.

import sockless

with'', mode='rw') as sock:
    # Writing.
    sock.write('NICK atestbot\r\n')
    sock.write('USER atestbot unused :atestbot\r\n')
    sock.write('JOIN #testbot\r\n')

    # Reading lines from a socket.
    for line in sock:
        if not line:

        if 'End of /NAMES list' in line:
            print "Successfully connected & joined. Quitting."

        print line.strip()


  • Tests
  • Docs
  • Python 3 support

Project details

Download files

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

Files for sockless, version 0.9.1
Filename, size File type Python version Upload date Hashes
Filename, size sockless-0.9.1-py2.py3-none-any.whl (5.0 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size sockless-0.9.1.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page