No project description provided
Project description
SocketWrapper
This project contains two classes: A client, and a server class. The goal is to abstract on the process of setting up clients and servers. You can simply create a client, and a server, feeding both an IP and a port. The objects will use that information to set up sockets, and for the server, bind to a socket.
Both the server and client have error checking, which throw errors in the case of invalid input for the IP or Port.
Table of Contents
Installation
To use the SocketWrapper Package, follow the steps below:
- Import the package using:
pip install SocketWrapper
- Import Client from Client.py:
from SocketWrapper.Client import Client
- Import Server from Server.py
from SocketWrapper.Server import Server
Usage
Once you have installed SocketWrapper, you can use it to create server and client objects. You can do this by following the steps below:
-
new_client = Client(ip, port)
-
new_server = Server(ip, port)
Technologies
SockerWrapper was developed using the following technologies:
- Python
- socket library
- os library
TODO
- Create custom exceptions
- Create default constructors (optional _init_ parameters)
- Create tests
- Add more functionality
- Add more detail to the methods and classes of input and output
License
SocketWrapper is open source software licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for SocketWrapper-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 286358a1f57e98785ac988cf0eab79591c16b17958b5845b11d6fb3137742104 |
|
MD5 | 60f3be918afee56bf54aa51f19e6dbed |
|
BLAKE2b-256 | 6ad340c10355ca48dba3a91266e5af5729f7e309e6519c7a047bb6d959d33fab |