The odoorpc module defines the ODOO class.

The ODOO class is the entry point to manage Odoo servers. You can use this one to write Python programs that performs a variety of automated jobs that communicate with a Odoo server.

Here’s a sample session using this module:

>>> import odoorpc
>>> odoo = odoorpc.ODOO('localhost', port=8069)  # connect to localhost, default port
>>> odoo.login('my_database', 'admin', 'admin')