Metadata-Version: 1.1
Name: sockless
Version: 0.8.0
Summary: A nicer API around sockets.
Home-page: http://github.com/toastdriven/sockless/
Author: Daniel Lindsley
Author-email: daniel@toastdriven.com
License: BSD
Description: sockless
        ========
        
        A friendlier interface to `socket`.
        
        Emulates file-like objects.
        
        .. code:: python
        
            import sockless
        
        
            with sockless.open('irc.freenode.net:6665', mode='rw') as sock:
                # Writing.
                sock.write('NICK atestbot\r\n')
                sock.write('USER atestbot bot@aserver.com unused :atestbot\r\n')
                sock.write('JOIN #testbot\r\n')
        
                # Reading lines from a socket.
                for line in sock:
                    if not line:
                        break
        
                    if 'End of /NAMES list' in line:
                        print "Successfully connected & joined. Quitting."
                        break
        
                    print line.strip()
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Topic :: Internet
Classifier: Topic :: System :: Networking
