odoocrm-python
odoocrm is an API wrapper for Odoo CRM written in Python
Installing
pip install odoocrm-python
Usage
from odoocrm.client import Client
client = Client('URL', 'DATABASE', 'USERNAME', 'PASSWORD')
Search partner
response = client.search_partner([[['is_company', '=', True], ['customer', '=', True]]], {'offset': 10, 'limit': 5})
Read partner
response = client.read_partner([1, 2], {'fields': ['name', 'country_id', 'comment']})
Search and Read partner
response = client.search_read_partner([[]], {'fields': ['name', 'country_id', 'comment'], "order": "id asc"})
# Get all fields by not sending 'fields' paramater
Create partner
response = client.create_partner([{'name': "John doe",}])
List fields Partner
response = client.list_fields_partner()
Search partner Tags
response = client.search_partner_tag([[['name', '=', 'tag_name']]], {'offset': 10, 'limit': 5})
Create partner Tag (Category)
response = client.create_partner_tag("tag_name")
Requirements
- requests
Tests
python tests/test_client.py
Metadata
Release files for odoocrm-python 0.1.4
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 |
|---|---|---|---|---|
| odoocrm_python-0.1.4.tar.gz | 3.5 kB | Without provenance | Details for odoocrm_python-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoocrm_python-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for odoocrm_python-0.1.4-py3-none-any.whl |
Total release size: 7.8 kB
Release files / odoocrm_python-0.1.4.tar.gz
| Download URL | odoocrm_python-0.1.4.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79d2cfafaa1bc6cc977b83cb55410d9a9d82f365da8a69ead3a527d4f7bfd916
|
|
BLAKE2b-256 checksum How to use checksums |
6e03f2f12390b23ecb462d3d530718faaffee925ba92cde52cd40bbdf24b23d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / odoocrm_python-0.1.4-py3-none-any.whl
| Download URL | odoocrm_python-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6be75be9f744847a8ba0c0071633e3e190ae19f22928ac2b7029dc27ff89025
|
|
BLAKE2b-256 checksum How to use checksums |
5645d385ea11f8a2888fa48a57192f1a60ad53cba4b06b447dee75d167692081
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for odoocrm-python 0.1.4
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.