Odoo RPC CLI
A command-line interface for Odoo, providing quick access to common operations like authentication, searching, creating, updating, and deleting records. It is designed for AI, developers and administrators who prefer working in the terminal.
Installation
Homebrew (tap)
Install odoorpc_cli from the project's Homebrew tap (recommended):
brew tap biszx/tap https://github.com/biszx/homebrew-tap
brew install biszx/tap/odoorpc_cli
Windows
Standalone executable (no Python required): download the odoorpc_cli Windows executable from a release's assets (the repository contains a CI workflow that builds an exe with PyInstaller and uploads it as an artifact). Place the exe on PATH or run it directly.
Installer (recommended): download the Inno Setup installer (odoorpc_cli-X.Y.Z-setup.exe) from a release's assets — it creates shortcuts and an uninstaller for easy setup on Windows.
Python (pip)
Install from PyPI:
pip install odoorpc_cli
Usage
Authenticate and save credentials (interactive):
odoo auth login --host https://odoo.example.com --db demo --username admin --password secret
Search for records:
odoo search read res.partner --domain "[[\"name\", \"ilike\", \"Acme\"]]" --fields name,email
Responses are minified by default. Pass --pretty before the subcommand for indented output:
odoo --pretty search read res.partner --fields name,email
Call a custom model method:
odoo call-method res.partner --method custom_method --args "[]" --kwargs "{}"
Images in html fields
A field of type html (a task description, a chatter body) can carry a pasted screenshot as base64. Reading such a field writes each image to ~/.cache/odoorpc-cli/images/<sha1>.<ext> and returns a file:// path instead of the blob; pass --raw to keep the original base64.
odoo search read project.task --fields description
create and write do the reverse: a src="file:///path/to/image.png" inside an html field is replaced with that file's data URI before the record is sent.
Set $ODOO_IMAGE_DIR to move the cache. Cached images older than 7 days are pruned on the next read.
Contributing
Please open issues and pull requests on the repository. Run tests with pytest.
Metadata
Release files for odoorpc-cli 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| odoorpc_cli-1.3.0.tar.gz | 27.7 kB | Without provenance | Details for odoorpc_cli-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoorpc_cli-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for odoorpc_cli-1.3.0-py3-none-any.whl |
Total release size: 69.0 kB
Release files / odoorpc_cli-1.3.0.tar.gz
| Download URL | odoorpc_cli-1.3.0.tar.gz |
|---|---|
| Size | 27.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d2a1c91d734fc2c109b9193d9935bb7633b373dfb19050b92af1aa709cada27
|
|
BLAKE2b-256 checksum How to use checksums |
bdfde382bf196c3f024eddf225503fcac839393af2e7521060da3a76981ce1ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Release files / odoorpc_cli-1.3.0-py3-none-any.whl
| Download URL | odoorpc_cli-1.3.0-py3-none-any.whl |
|---|---|
| Size | 41.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca7cce8846482795a57ad58e67f92dcf8c5e1759898f5ffd67538b440536558b
|
|
BLAKE2b-256 checksum How to use checksums |
771d6374b3c15aa823a6a71c09a95e73e88a70ca839924ee7ef75a66046c00af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Security for odoorpc-cli 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.