Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khaouitiabdelhakim/client-server-simulator-python
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.
https://github.com/khaouitiabdelhakim/client-server-simulator-python
client client-server client-side modeling modeling-and-simulation python python-script server server-side simulation
Last synced: 23 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/khaouitiabdelhakim/client-server-simulator-python
- Owner: khaouitiabdelhakim
- Created: 2023-08-19T00:00:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-19T00:01:00.000Z (over 1 year ago)
- Last Synced: 2024-10-31T05:25:09.535Z (2 months ago)
- Topics: client, client-server, client-side, modeling, modeling-and-simulation, python, python-script, server, server-side, simulation
- Language: Python
- Homepage: https://khaouitiapps.web.app/
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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.