Skip to main content

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:

  1. Import the package using: pip install SocketWrapper
  2. Import Client from Client.py: from SocketWrapper.Client import Client
  3. 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:

  1. new_client = Client(ip, port)

  2. 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

SocketWrapper-0.2.3.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

SocketWrapper-0.2.3-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page