This project demonstrates a simple XML-RPC client-server architecture in Python, secured with SSL. The server exposes remote procedures, and the client communicates with the server to invoke these procedures.
server.py
: XML-RPC server implementation with SSL.client.py
: XML-RPC client implementation.utils.py
: Utility functions used by server and client.requirements.txt
: Python dependencies.server.crt
,server.key
: SSL certificate and key for secure communication.logs/
: Directory for server and client logs.tests/
: Contains test cases.
- Python 3.8+
- Packages listed in
requirements.txt
- Install dependencies:
pip install -r requirements.txt
Start the XML-RPC server:
python server.py both
The server will start and listen for incoming XML-RPC requests over SSL.
In a separate terminal, run:
python client.py add 2 2
The client will connect to the server and perform remote procedure calls.
Run the test suite using pytest:
pytest tests/
MIT License