Skip to main content

Versatile tool for Odoo

Project description

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. It carries three modes of use:

  1. with command line arguments

  2. as an interactive shell

  3. as 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 19

  • 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
  ...
>>> #

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odooly-2.6.3.tar.gz (68.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odooly-2.6.3-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file odooly-2.6.3.tar.gz.

File metadata

  • Download URL: odooly-2.6.3.tar.gz
  • Upload date:
  • Size: 68.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for odooly-2.6.3.tar.gz
Algorithm Hash digest
SHA256 7c8571a3974e4581c1738f8289aac3820c6ec083bad769cf14b3e8b675e3af94
MD5 46545497c3b5266fcbd6cbeffae6231a
BLAKE2b-256 8caffab67375604d70c86eb426c0960113b8843c7f4d163d6539bb8943a1b05a

See more details on using hashes here.

File details

Details for the file odooly-2.6.3-py3-none-any.whl.

File metadata

  • Download URL: odooly-2.6.3-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for odooly-2.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4d3c46150b9ec092387477a822f43db393c67f57207226a4107fd3d0d77cb535
MD5 39c0b7bb12460fa642e8dda2c03c1ae7
BLAKE2b-256 93ce5d075ecdfda60d9549595c84aee73644ce323d61a8b6270641c45f84ddad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page