Setting up a Python client
The Odoo API can be accessed externally using two different protocols: XML-RPC and JSON-RPC. Any external program capable of implementing a client for one of these protocols will be able to interact with an Odoo server. To avoid introducing additional programming languages, we will keep using Python to explore the external API.
Until now, we have been running Python code only on the server. This time, we will use Python on the client side, so it's possible you might need to do some additional setup on your workstation.
To follow the examples in this chapter, you will need to be able to run Python files on your work computer. We will be using Python 3 for this. At this point you should make sure you have Python 3 installed in your workstation. If not, please refer the official website for your platform's installation package at https://www.python.org/downloads/.
For Ubuntu, at this point you probably already have Python 3 installed. If not, you can install it by running...