Download and install the latest release:
pip install -U odooly
Documentation and tutorial: https://odooly.readthedocs.io/
Overview
Odooly connects to an Odoo instance through HTTP. It makes it easy to browse the application model, and to perform actions on the server. It is both an interactive shell (with pretty-printing and colors) and a client library.
Key features:
provides an API similar to Odoo Model, through Webclient API
supports JSON-2 API with Odoo 19 and more recent
supports external API JSON-RPC as alternative
compatible with Odoo 9 to 20
single file odooly.py, no external dependency
helpers for search, for data model introspection, etc…
simplified syntax for search domain
entire API accessible on the Client.env environment
can be imported and used as a library: from odooly import Client
supports Python 3.8 and more recent
Interactive use
Launch without any configuration. It connects to the Odoo server, local or remote:
~$ odooly https://demo.odoo.com/
Or:
~$ odooly http://127.0.0.1:8069/
Environments can also be declared in odooly.ini:
[DEFAULT] database = odoo username = admin [demo] server = http://localhost:8069/web username = demo password = demo [demo/jsonrpc] server = http://localhost:8069/jsonrpc username = demo password = demo [local] scheme = local options = -c /path/to/odoo-server.conf --without-demo all
Connect to the Odoo server:
~$ odooly --list ~$ odooly --env demo
This is a sample session:
>>> env['res.users']
<Model 'res.users'>
>>> env['res.users'].search_count()
4
>>> crons = env['ir.cron'].with_context(active_test=False).search([])
>>> crons.read('active name')
[{'active': True, 'id': 5, 'name': 'Calendar: Event Reminder'},
{'active': False, 'id': 4, 'name': 'Mail: Fetchmail Service'}]
>>> #
>>> env.modules('delivery')
{'uninstalled': ['delivery', 'website_sale_delivery']}
>>> env.upgrade('base')
1 module(s) selected
42 module(s) to process:
to upgrade account
to upgrade account_chart
to upgrade account_tax_include
to upgrade base
...
>>> #
Release files for Odooly 2.6.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| odooly-2.6.6.tar.gz | 69.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| odooly-2.6.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 102.3 kB
Release files / odooly-2.6.6.tar.gz
| Download URL | odooly-2.6.6.tar.gz |
|---|---|
| Size | 69.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49b2a18d136c5708770356630ef80095211bb01ebc3eae373953166ac84a4aaa
|
|
BLAKE2b-256 checksum How to use checksums |
2e784f2d94db0780c9792b8ceafac90ac7e6bdc6d51479772d4b420075ff2c25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / odooly-2.6.6-py3-none-any.whl
| Download URL | odooly-2.6.6-py3-none-any.whl |
|---|---|
| Size | 32.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d12c43601deb3ec69016ee1d88d0c03da410d673a9b079c650fd729d4c7678d3
|
|
BLAKE2b-256 checksum How to use checksums |
3cfb152513b75b26d2260d6f32ba8817b66c6ca4fd3cf09a63d4d98d38890019
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|