This is a basic client/server notebook project.
- client asks for input and sends it with XML-RPC
- server saves notes into XML
- server can call Wikipedia search and append a result
The XML file uses this structure:
<data>
<topic name="Animal Things">
<note name="Dogs are better than cats 03">
<text>Dogs respond when you call their name (unlike cats, who just ignore you)</text>
<timestamp>03/16/21 - 14:03:04</timestamp>
</note>
</topic>
</data>- Python 3.10+
- Internet connection for Wikipedia search
python -m pip install -r requirements.txtpython server.pypython client.py- Add note (topic + note name + text + timestamp)
- Get topic contents
- Search Wikipedia
- Append first Wikipedia result to a topic
- Exit
The server is threaded and XML writes use a lock, so multiple clients can send requests at the same time.