Metadata-Version: 2.4
Name: py-simple-network
Version: 1.1.0
Summary: A Python library for simple TCP-based client-server communication
Home-page: https://github.com/GeovaneDev54/py-simple-network
Author: GeovaneDev54
Author-email: geovanethecoder@gmail.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENCE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# py-simple-network Library

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

## Installation
Install the library using pip:
```bash
pip install py-simple-network
```

## Usage

### Server
```bash
from py_simple_network import Server

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

### Client
```bash
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!')
```
