Odoo Simple Api Wrapper
A clean and lightweight Python connector for Odoo's XML-RPC API.
This package simplifies interactions with Odoo models using Python, so you can authenticate, read, create, update, and delete records easily.
✨ Features
- 🔐 Authentication via XML-RPC
- 📚 CRUD operations on any Odoo model
- 🔁 Generic method caller
- 🧼 Clean and well-documented code
- ✅ Ready for use in production or automation scripts
🛠️ Installation
A. Clone the repository & install locally:
git clone https://github.com/your-user/odoo_connector.git
cd odoo_connector
pip install -e .
🚀 Usage
1. Import and initialize
from odoo_simple_api_wrapper import OdooConnector
odoo = OdooConnector(
url='https://your-odoo-instance.com',
db='your_database_name',
username='admin@example.com',
password='your_password'
)
2. Read records
partners = odoo.read('res.partner', fields=['name', 'email'], limit=5)
for p in partners:
print(p)
3. Create a record
partner_id = odoo.create('res.partner', {
'name': 'Bruce Wayne',
'email': 'batman@gotham.com'
})
print("New Partner ID:", partner_id)
4. Update a record
odoo.write('res.partner', [partner_id], {'phone': '+123456789'})
5. Delete a record
odoo.unlink('res.partner', [partner_id])
6. Call a custom method
has_rights = odoo.call_method(
'res.partner',
'check_access_rights',
['read'],
{'raise_exception': False}
)
print("Has read access:", has_rights)
📦 Project Structure
odoo_connector/
├── odoo_connector/
│ ├── __init__.py
│ └── api.py
├── tests/
│ └── test_connector.py
├── setup.py
├── README.md
└── LICENSE
Metadata
Release files for odoo-simple-api-wrapper 0.1.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 |
|---|---|---|---|---|
| odoo_simple_api_wrapper-0.1.0.tar.gz | 4.1 kB | Without provenance | Details for odoo_simple_api_wrapper-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_simple_api_wrapper-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for odoo_simple_api_wrapper-0.1.0-py3-none-any.whl |
Total release size: 8.5 kB
Release files / odoo_simple_api_wrapper-0.1.0.tar.gz
| Download URL | odoo_simple_api_wrapper-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bd445a6403e16564e95f60e3a5d9e9f5cb2c07ce0e4a61b30df0e424c3e2999
|
|
BLAKE2b-256 checksum How to use checksums |
757960ac096606793340e762cf20dae921e040ffe683fc57dfbc6591f9cb1d50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / odoo_simple_api_wrapper-0.1.0-py3-none-any.whl
| Download URL | odoo_simple_api_wrapper-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9024edf58867df3af15ce9b7dbda6f4d87df9658fb7189ddee171561c5c9bfad
|
|
BLAKE2b-256 checksum How to use checksums |
444f3b4997bbaa3a8258f5ec5cb432e44eccc48a28a3a26cac2ff010ed77dfa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for odoo-simple-api-wrapper 0.1.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.