Skip to content

hamidurrk/distributed-xmlrpc-notebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XML-RPC Notebook

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

XML format

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>

what you need

  • Python 3.10+
  • Internet connection for Wikipedia search

install

python -m pip install -r requirements.txt

run server

python server.py

run client

python client.py

menu options

  1. Add note (topic + note name + text + timestamp)
  2. Get topic contents
  3. Search Wikipedia
  4. Append first Wikipedia result to a topic
  5. Exit

concurrency

The server is threaded and XML writes use a lock, so multiple clients can send requests at the same time.

About

XML RPC Client-Server distributed notebook demo

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages