Skip to main content

A simple module for sending data across the internet!

Project description


A simple module for sending data across the internet!

Use cases

  • Multiplayer pygame games (sending objects)
  • Chat server with multiple clients
  • Transferring files over a network
  • Anything else you can think of!


pip install connectIO

Simple Example


from connectIO import Server, threaded

class ExampleServer(Server):

    def __init__(self, ip='', port=5555):
        super(ExampleServer, self).__init__(ip, port)
        self.func = self.threaded_conn

    def threaded_conn(self, conn, addr):
        raddr = conn.getpeername()

        greeting = 'hello client!'
        print(f'Server -> {raddr}: {greeting}')

        self.send(conn, greeting)
        print(f'{raddr} -> Server: {self.recieve(conn)}')

        response = 'great you?'
        print(f'Server -> {raddr}: {response}')

        self.send(conn, response)
        print(f'{raddr} -> Server: {self.recieve(conn)}')

if __name__ == "__main__":


from connectIO import Client

def main():
    client = Client()

    resp1 = client.recieve()
    print(f'From server: {resp1}')

    msg1 = 'hi server! how are you?'
    print(f'To server: {msg1}')

    resp2 = client.recieve()
    print(f'From server: {resp2}')

    msg2 = 'great thanks!'
    print(f'To server: {msg2}')


if __name__ == "__main__":

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 connectIO, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size connectIO-0.0.3-py3-none-any.whl (4.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size connectIO-0.0.3.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page