OERPLib 0.3.0
OpenERP client library which allows to easily interact with an OpenERP server.
Downloads ↓ | Package Documentation
Latest Version: 0.5.1
OERPLib is a client library to OpenERP server. It aims to provide an easy way to remotely pilot an OpenERP server. In addition to supporting create, read, write, unlink and search operations, this library is also able to generate objects which are somewhat similar to the browsable objects available on OpenERP server via the implementation of the browse method, and manipulate them while hiding XML-RPC queries. Retrieve reports and execute workflow queries are also possible.
How does it work? See below:
#!/usr/bin/env python
import oerplib
# Prepare the connection to the OpenERP server
oerp = oerplib.OERP('localhost', 'db_name')
# Login
user = oerp.login('user', 'passwd')
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)
# Or use the 'read' method
# ('create', 'write', 'unlink' and 'search' exist too)
user_data = oerp.read('res.users', user.id)
# Advanced query: browse objects!
for order in oerp.browse('sale.order', [1, 42]):
print(order.name)
for line in order.order_line:
print(line.name)
# Update data through a browsable object
order.name = "NEW ORDER REF"
oerp.write(order)
See the documentation for more details.
Supported OpenERP versions
OERPLib is known to work with OpenERP server v5 and v6.
Generate the documentation
To generate the documentation, you have to install Sphinx documentation generator:
easy_install -U sphinx
Now, you can use the build_sphinx option of the setup.py:
python setup.py build_sphinx
The generated documentation will be in the ./doc/html directory.
Bugs or suggestions
Please, feel free to report bugs or suggestions in the Bug Tracker!
Changes in this version
Consult the CHANGES.txt file.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| OERPLib-0.3.0.tar.gz (md5) | Source | 2011-10-11 | 22KB | 2642 | |
|
oerplib_0.3.0-1_all_squeeze.deb
(md5)
Package for Debian 6.0 Squeeze (compatible Python 2.6.6-3) |
Source | 2011-10-11 | 137KB | 305 | |
- Author: ABF Osiell - Sébastien Alix
- Documentation: OERPLib package documentation
- Home Page: http://www.osiell.com/
- Bug Tracker: https://bugs.launchpad.net/oerplib/+filebug
- Download URL: http://pypi.python.org/packages/source/O/OERPLib/OERPLib-0.3.0.tar.gz
- Keywords: openerp client xml-rpc xml_rpc xmlrpc oerplib communication lib python service web webservice
- License: LGPL v3
- Categories
- Package Index Owner: seba
- DOAP record: OERPLib-0.3.0.xml
