A simple Remote File Management System using RPC implemented in Python
- Python 3.6 or above
- Python libraries: xmlrpc
- Extract the contents of the zip file located in
dist/SmallRPC.zip
- Start the server by running the command:
python server.py
- Run the client application by executing the command:
python client.py
- The client will interact with the server using RPC to perform file management operations.
- The server runs on port 8000 by default. Make sure the port is not being used by any other application.
- The client can be run on any machine in the same network as the server. The client needs to know the IP address of the server to connect to it. The IP address of the server can be changed in the client.py file.
- Starting the client application will connect to the server automatically:
- The client can perform the following operations on the server:
- Create a file:
Creating from text : Just writting text after the command will create a file with the text as content for the file: Creating from a file : Writting a file name with a supported extension ('.txt', '.md') after the command will create a file with the content of the file: - Read a file :
This command will read the content of the file and display it on the console: - Write to a file :
The update command will update the content of the file with the text or file provided: - Delete a file :
- List all files in the server :
- Exit the client :
- Create a file:
- If you have question, open an issue on this repository or contact me at: [email protected]
- Contribution are welcome. Feel free to open a pull request.