Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vishalthehuman/request-response-simulation
The Request Response Simulation project aims to create a system for simulating HTTP operations (GET, PUT, POST, DELETE) on files.
https://github.com/vishalthehuman/request-response-simulation
http-simulator python request request-response request-response-simulation
Last synced: about 14 hours ago
JSON representation
The Request Response Simulation project aims to create a system for simulating HTTP operations (GET, PUT, POST, DELETE) on files.
- Host: GitHub
- URL: https://github.com/vishalthehuman/request-response-simulation
- Owner: VishalTheHuman
- License: mit
- Created: 2024-04-22T13:30:15.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-02T01:48:11.000Z (7 months ago)
- Last Synced: 2024-05-02T17:28:16.175Z (7 months ago)
- Topics: http-simulator, python, request, request-response, request-response-simulation
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Request Response : Simulation
![banner](assets/banner.png)## **Description 📝**
The Request Response Simulation project aims to create a Python-based system for simulating HTTP operations (GET, PUT, POST, DELETE) on files. This project provides a platform to understand and experiment with the fundamentals of web-based file handling through a simulated environment. Users can interact with the system to perform various file operations, mimicking real-world scenarios commonly encountered in web development.## **Features ✨**
- **```Simulated Server:```** Mimics a server environment for storing and managing files.
- **```File Operations:```** Supports GET, PUT, POST, and DELETE methods for file manipulation.
- **```Interactive Interface:```** Offers a user-friendly command-line interface for interacting with the server.
- **```Error Handling:```** Robust error handling to manage invalid requests and server errors.## **How to use ⚙️**
1. Run the **server.py** in one terminal.
**```Optional :```** If you're plan of using two devices change the IP addresses in the code accordingly.2. Run the **client.py** in a new terminal. And select the operation.
## **Operations 🧑💻**
- **```GET :```** Enter the name of file that you want. If the file is present in the files folder, it will send the content to the client. You'll be provided with an option to save the file or not.- **```POST :```** Enter the location of the file that you locally have in your client system for uploading to the server. A new file will created. If a file with same name exists in the server, it'll not upload the new file.
- **```PUT :```** Enter the location of the file that you locally have in your client system for uploading to the server. It'll create a new file if no file with such name exists. Otherwise, it'll overwrite the existing one in the server.
- **```DELETE :```** Enter the name of file that you want to delete. It'll delete it from the server if one such file exists.