netty
A simple python library for networking. Not extremely complex, but allows for simple game servers and chat rooms to be hosted.
Documentation
This example will show you how to make a simple chat room with netty.
First, import netty:
import netty
Then, choose a port and make a client and a server:
import netty
PORT = 3000
client = netty.connection.Client('', PORT) # args: IP ('' for local), and port.
server = netty.connection.Server(PORT) # args: port to run the server on.
Now, we have a client and a server, but they aren't doing anything when they get a message. To do this, we need to add a onReceive argument to the client and server.
MORE DOCUMENTATION COMING SOON
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netty-0.1.tar.gz
(5.0 kB
view details)
File details
Details for the file netty-0.1.tar.gz.
File metadata
- Download URL: netty-0.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0452193fc8e5200d792ca64ea31169fbeb7ee1bcec06b7593bdee2643e86af02
|
|
| MD5 |
7c9b7ed8f2264a68e3d9110bdca65d41
|
|
| BLAKE2b-256 |
d89a6f3afbee6c558911d509a2b2638070560ebdfea7b8202c32c82a8076515f
|