Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blankscreen-exe/rpc-client-server
An RPC server and a client made with python and websockets, operable through command-line
https://github.com/blankscreen-exe/rpc-client-server
Last synced: 4 days ago
JSON representation
An RPC server and a client made with python and websockets, operable through command-line
- Host: GitHub
- URL: https://github.com/blankscreen-exe/rpc-client-server
- Owner: Blankscreen-exe
- Created: 2024-01-05T07:07:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-11T19:01:30.000Z (about 1 year ago)
- Last Synced: 2024-11-11T04:30:43.526Z (2 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RPC-client-server
An RPC client which can interact with a synchronous RPC server to initiate function calls.
### File Description
- `rpc_*.py` 👉 contains client/server script.
- `run_*.py` 👉 contains runner code to run corresponding client/server.
- `function_repo.py` 👉 contains functions to be called by the RPC client.
- `instance_repo.py` 👉 contains classes whose methods is to be called by RPC client.### Installation
Write your functions and your classes in their respective `*_repo.py` files.
The `.env` file is already primed so it can be used as it is.
```sh
# activate the environment
pipenv install
pipenv shell# run the server
python3 run_server.py# run the client
python3 run_client.py
```### TODOs:
- Enable functionality for instances