oerplib3 1.0.0
Overview
OERPLib3 is a Python module providing an easy way to pilot your OpenERP and Odoo servers through RPC.
It is a fork for python3 of OERPLib project by Sébastien Alix who have not participated to development of this module.
Features
Oerplib3 |
Oerplib |
OdooRPC |
XML-RPC protocols |
XML-RPC and (legacy) Net-RPC protocols |
JSON RPC |
Transfer from Odoo >= 6.1 <= 9.0 to Odoo >= 11.0 |
Transfer from Odoo >= 6.1 <= 9.0 to Odoo >= 6.1 <= 9.0 |
Transfer from Odoo >= 10.0 to Odoo >= 10.0 |
access to all methods proposed by a model class (even browse) |
||
ability to use named parameters with such methods (Odoo >= 6.1) |
||
user context automatically sent (Odoo >= 6.1) providing support for internationalization |
||
browse records |
||
execute workflows |
||
manage databases |
||
reports downloading |
||
inspection capabilities |
Usage
This module work exactly like original OERPLib
import oerplib3 as oerplib
# Prepare the connection to the server
oerp = oerplib.OERP('localhost', protocol='xmlrpc', port=8069)
# Check available databases
print(oerp.db.list())
# Login (the object returned is a browsable record)
user = oerp.login('user', 'passwd', 'db_name')
print(user.name) # name of the user connected
print(user.company_id.name) # the name of its company
# Simple 'raw' query
user_data = oerp.execute('res.users', 'read', [user.id])
print(user_data)
# Use all methods of an OSV class
order_obj = oerp.get('sale.order')
order_ids = order_obj.search([])
for order in order_obj.browse(order_ids):
print(order.name)
products = [line.product_id.name for line in order.order_line]
print(products)
# Update data through a browsable record
user.name = "Brian Jones"
oerp.write_record(user)
Getting started
Prerequisites
Zeroincombenze(R) tools requires:
Linux Centos 7/8 or Debian 9/10/11 or Ubuntu 16/18/20/22/24
python 2.7+, some tools require python 3.7+, best python 3.9+
bash 5.0+
Installation
Stable version via Python Package
pip install oerplib3
Current version via Git
cd $HOME [[ ! -d ./tools ]] && git clone https://github.com/zeroincombenze/tools.git cd ./tools ./install_tools.sh -pUT source $HOME/devel/activate_tools
Upgrade
Stable version via Python Package
pip install --upgrade oerplib3
Current version via Git
cd ./tools ./install_tools.sh -pUT source $HOME/devel/activate_tools
ChangeLog History
1.0.0 (2025-01-04)
[FIX] Python 3.12 porting
0.8.5 (2024-08-21)
[FIX] Python 3.10 porting
0.8.4 (2023-05-06)
[FIX] First porting
FAQ
Why this module was forked from OERPlib?
OERPlib runs just with python2 and the author did not migrate package on python3
Why I should use this module? Was it better to use OdooRPC?
OdooRPC runs on python3 but it does not support Odoo xmlrpc protocol. So, if you have to read data from an old Odoo version database, you have to use OERPlib3.
Credits
Copyright
SHS-AV s.r.l. <https://www.shs-av.com/>
Contributors
Metadata
Release files for oerplib3 1.0.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 |
|---|---|---|---|---|
| oerplib3-1.0.0.tar.gz | 38.8 kB | Without provenance | Details for oerplib3-1.0.0.tar.gz |
Release files / oerplib3-1.0.0.tar.gz
| Download URL | oerplib3-1.0.0.tar.gz |
|---|---|
| Size | 38.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2344a91ec41a7fc52475d906c75bc61265ac1c988c87255e453b7cf315b5058b
|
|
BLAKE2b-256 checksum How to use checksums |
e957c7812ade9a210190af800f646e6beb7c1f058d30f81d9099d0bf51099277
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.13
|
Security for oerplib3 1.0.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.