/usr/lib/python2.7/dist-packages/OERPLib-0.8.3.egg-info is in python-oerplib 0.8.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | Metadata-Version: 1.1
Name: OERPLib
Version: 0.8.3
Summary: OERPLib is a Python module providing an easy way to pilot your OpenERP and Odoo servers through RPC.
Home-page: http://pythonhosted.org/OERPLib/
Author: ABF Osiell - Sebastien Alix
Author-email: sebastien.alix@osiell.com
License: LGPL v3
Download-URL: http://pypi.python.org/packages/source/O/OERPLib/OERPLib-0.8.3.tar.gz
Description:
=======
OERPLib
=======
**OERPLib** is a Python module providing an easy way to
pilot your **OpenERP** and **Odoo** servers through `RPC`.
Features supported:
- `XML-RPC` and (legacy) `Net-RPC` protocols,
- access to all methods proposed by a model class
(even ``browse``) with an API similar to the server-side API,
- ability to use named parameters with such methods (server >= `6.1`),
- user context automatically sent (server >= `6.1`) providing support
for internationalization,
- browse records,
- execute workflows,
- manage databases,
- reports downloading,
- inspection capabilities (graphical output of relations between models and
dependencies between modules, list ``on_change`` methods from model
views, ...).
How does it work? See below::
import 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)
See the documentation for more details and features.
Supported OpenERP/Odoo server versions
--------------------------------------
`OERPLib` has been tested on `OpenERP` server v5.0, v6.0, v6.1, v7.0 and
Odoo v8.0.
It should work on next versions if `Odoo` keeps a stable API.
Supported Python versions
-------------------------
`OERPLib` support Python versions 2.6, 2.7.
License
-------
This software is made available under the `LGPL v3` license.
Generate the documentation
--------------------------
To generate the documentation, you have to install `Sphinx` documentation
generator::
easy_install -U sphinx
Then, you can use the ``build_doc`` option of the ``setup.py``::
python setup.py build_doc
The generated documentation will be in the ``./doc/build/html`` directory.
Bugs or suggestions
-------------------
Please, feel free to report bugs or suggestions in the `Bug Tracker
<https://github.com/osiell/oerplib/issues>`_!
Changes in this version
-----------------------
Consult the ``CHANGELOG.rst`` file.
Keywords: openerp odoo server client xml-rpc xmlrpc net-rpc netrpc oerplib communication lib library python service web webservice
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|