Setting up Python on the client machine
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 use Python to explore the external API.
Until now, Python code was only being used on the server side. For the client app, Python code will run on the client, so the workstation may require additional setup.
To follow the examples in this chapter, the system you're using needs to be able to run Python 3 code. If you've followed the same development environment that's been used for the other chapters in this book, this might already be the case. However, if it isn't, we should make sure that Python is installed.
To make sure that Python 3 is installed in the development workstation, run the python3 --version
command in a terminal window...