Learning project – a client to catalogue books
In this chapter, we will work on a simple client application to manage the Library Book catalogue. It's the Command-Line Interface (CLI) application, using Odoo as the backend. The application features will be very limited, so that we can focus on the technology used to interact with the Odoo server, instead of the implementation details of our particular application.
Our simple application should be able to do the following:
- Search by title and list books
- Add new titles to the catalogue
- Correct a book title
- Remove a book from the catalogue
The application will be a Python script that expects commands to perform. A usage session will look something like this:
$ python3 library.py add "Moby-Dick" $ python3 library.py list "moby" 3 Moby-Dick $ python3 library.py set-title 3 "Moby Dick" $ python3 library.py del 3