Skip to content

GeovaneDev54/py-simple-network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-simple-network Library

A simple Python library for TCP-based client-server communication.

Installation

Install the library using pip:

pip install py-simple-network

Usage

Server

from py_simple_network import Server

server = Server(ip='127.0.0.1', port=8080, backlog=5, bufsize=1024)
server.run()

Client

from py_simple_network import Client

class MyClient(Client):
    def process(self, data:str):
        print(f'Received: {data}')

client = MyClient(ip='127.0.0.1', port=8080, bufsize=1024)
client.run()
client.send_data('Hello, Server!')

About

A simple Python library for TCP-based client-server communication.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages