Code Monkey home page Code Monkey logo

khaouitiabdelhakim / client-server-simulator-python Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1 KB

This Python project demonstrates a simple client-server interaction on localhost. The server listens for client connections and responds with information about various web browsers based on user input.

Home Page: https://khaouitiapps.web.app/

Python 89.44% HTML 10.56%
client client-server client-side modeling modeling-and-simulation python python-script server server-side simulation

client-server-simulator-python's Introduction

Client-Server Simulation on localhost

This Python project demonstrates a simple client-server interaction on localhost. The server listens for client connections and responds with information about various web browsers based on user input.

Prerequisites

  • Python 3.x installed.

Setup

  1. Clone this repository.

  2. Navigate to the project directory.

Running the Server

  1. Open a terminal and navigate to the project directory.

  2. Run the server script:

    python server.py
    

Running the Client

  1. Open a new terminal window.

  2. Run the client script:

    python client.py
    
  3. Enter a browser name when prompted.

Usage

  • Enter a browser name (e.g., "Google Chrome", "Mozilla Firefox", "Microsoft Edge").
  • The server responds with information about the entered browser.
  • Terminate the client with Ctrl+C.

Customization

  • Modify browser names and definitions in server.py.
  • Implement error handling and multi-threading for advanced features.

Contribution

Contributions to enhance the project's functionality, code quality, or documentation are welcome. Fork, make changes, and submit a pull request.

License

This project is licensed under the MIT License.

client-server-simulator-python's People

Contributors

khaouitiabdelhakim avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.